[wingide-users] Backing up one indent level while entering code?John Ehresman email@example.com
20 Dec 2001 11:47:24 -0500
It looks like the problem with rebinding Shift-Tab is that the GUI toolkit we're using (gtk) translates this to 'ISO_Left_Tab'. If you bind ISO_Left_Tab to outdent-region in your keymap.normal file, Wing will outdent the line. We're changing the default keymaps to use this symbol and may treat Tab & ISO_Left_Tab as the same key in a future release. In the future, we also may imitate the Python emacs mode and outdent one level if the backspace key is pressed when the cursor is at the end of the indentation (at the first non-whitespace character). Hope this helps, John On Thu, 2001-12-20 at 09:26, Gary Bishop wrote: > Wing IDE looks great! Just what I was looking for. > > But I'm trying to figure out how to best use it. I've got indent width set to > 4 and I use spaces only for indentation. I'm in "normal" editor mode. > > Say I'm typing an if statement in python > > if foo: > bar() > else: > > Of course the else needs to move back to the margin. Backspace only moves me > back 1 space. I can type Ctrl-less to move back one level but that is tough to > type... The manual talks about Shift-tab inserting a backward tab but it seems > to just insert a normal tab. > > I tried rebinding Shift-tab to 'outdent-region' but this doesn't seem to work. > I copied keymap.normal and changed the entry associated with Shift-tab. I set > gui.keymap to point to the new file and restarted Wing. The > Source->indentation menu now shows that Shift-tab is bound to outdent-region. > > *BUT*, Shift-tab still appears to insert a tab. Ctrl-less still works. > > What's up? My goal is an easy to type sequence for moving back one level in > indentation. What do other people use?
Run by Mailman v 2.0.8
Copyright (c) 2000-2002, Archaeopteryx Software, Inc.