Author Topic: [un]indent-selection via [Shift-]Tab?  (Read 5432 times)

pdebonte

  • Community Member
  • Posts: 43
  • Hero Points: 1
[un]indent-selection via [Shift-]Tab?
« on: July 01, 2010, 10:07:23 PM »
Hi,

Many IDEs that I've used in the past (e.g. IAR Embedded Workbench, Visual Studio 2005 Express) change the binding of Tab and Shift-Tab to indent or unindent a block if it is selected, or simply tab if there is no active selection.  Can SlickEdit do this?  I have mapped Shift-Tab to unindent-selection in the default mode, but mapping Tab to indent-selection in the default mode seems like a bad idea to me. :/

Thanks,
-Pete

MartyL

  • Senior Community Member
  • Posts: 166
  • Hero Points: 29
  • Synergex
Re: [un]indent-selection via [Shift-]Tab?
« Reply #1 on: July 01, 2010, 10:16:59 PM »
The default bindings for Tab and Shift+Tab in CUA emulation already have this functionality.

Bind tab to: move-text-tab
Bind shift+tab to: move-text-backtab

pdebonte

  • Community Member
  • Posts: 43
  • Hero Points: 1
Re: [un]indent-selection via [Shift-]Tab?
« Reply #2 on: July 02, 2010, 03:24:54 PM »
Thanks Marty.

I'm beginning to think that Vim emulation is just too buggy and may be the core of my troubles.  I deleted all bindings for Tab and created a single (default) binding to move-text-tab, and it still didn't work.  Switch to CUA and as you said, it just works.  I give up, I'm reverting to CUA Emulation.

Thanks again,
-Pete
« Last Edit: July 06, 2010, 02:46:05 PM by pdebonte »