+3

More control over multiple selection

Jamie Webb 13 years ago updated by robertcollier4 12 years ago 1
Multiple selection is neat, but operating it can sometimes be troublesome. I'd love to be able to do the following, which to best of my knowledge is not possible now:

  • Add cursors with the keyboard. I guess this is hard in general, and we have ctrl-d, but it would be nice to at least have 'extend cursor down one line', i.e. rough equivalent of shift-right-drag.
  • Remove cursors, i.e. ctrl-clicking on an existing cursor should remove it rather than doing nothing.
  • Undo a ctrl-d. E.g. I wanted to select every instance of a local variable. I hit ctrl-d 11 times rather than 10, and end up selecting the same name in a different function. Currently I have to start again.
  • Also, I think ctrl-d might be better with its own word-selection behaviour rather than using the setting from ctrl-f. Specifically, it should restrict matches to whole words iff the initial selection is a whole word. 
+2

http://www.sublimetext.com/docs/2/multiple_selection_with_the_keyboard.html 

To add the next occurrence of the current word to the selection, use Quick Add Next, which is bound to Ctrl+D on Windows and Linux, orCommand+D on OS X.
Again, if you go too far, use Undo Selection (Ctrl+U, or Command+U on OS X) to step backwards.