Sublime Forum

Keyboard version of CMD+Click for multiple selects?

#1

Pretty sure iā€™m just being retarded but is there a keyboard alternative to CMD+Select for multiple cursor placement?

0 Likes

#2

For heterogeneous selections ?

0 Likes

#3

Just for multiple selections, should state that I meant CMD+Mouse Click when I said select :smile:

0 Likes

#4

Iā€™m guessing you know about ctrl+d/cmd+d and are wanting to make arbitrary selections via the keyboard?

I wrote a plugin back in the days called AutoSelect, which adds a sticky selection mode.

Itā€™s an EventListener which implements the on_selection_modified hook.

When modal, any non caret selection, ie one that contains text, will stick as you create selections.

At the end you hit a command to merge all the selections.

What if you want to store empty selections? Thereā€™s facility for that too but itā€™s not automatic, you have to manually mark the selections.

Thereā€™s no bindings set up there, so youā€™ll have to set em up yourself. Thereā€™s a template in the source code.

0 Likes

#5

I just discovered this plugin:
github.com/colinta/SublimeMarkAndMove
I recommend it.

0 Likes

#6

Looks handy for prefixing and stuff. Painting in tabstops :smile:

0 Likes

#7

[quote=ā€œadzenithā€]I just discovered this plugin:
github.com/colinta/SublimeMarkAndMove
I recommend it.[/quote]

Cheers, this seems to be just what I was after - just thought there might be a keyboard short cut already in place.

0 Likes