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