Home Download Buy Blog Forum Support

Keyboard version of CMD+Click for multiple selects?

Keyboard version of CMD+Click for multiple selects?

Postby Phunky on Wed Jun 27, 2012 9:55 am

Pretty sure i'm just being retarded but is there a keyboard alternative to CMD+Select for multiple cursor placement?
Phunky
 
Posts: 35
Joined: Mon Feb 07, 2011 5:02 pm

Re: Keyboard version of CMD+Click for multiple selects?

Postby sublimator on Wed Jun 27, 2012 10:01 am

For heterogeneous selections ?
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Keyboard version of CMD+Click for multiple selects?

Postby Phunky on Wed Jun 27, 2012 1:07 pm

Just for multiple selections, should state that I meant CMD+Mouse Click when I said select :)
Phunky
 
Posts: 35
Joined: Mon Feb 07, 2011 5:02 pm

Re: Keyboard version of CMD+Click for multiple selects?

Postby sublimator on Wed Jun 27, 2012 3:36 pm

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.
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Keyboard version of CMD+Click for multiple selects?

Postby adzenith on Wed Jun 27, 2012 5:12 pm

I just discovered this plugin:
https://github.com/colinta/SublimeMarkAndMove
I recommend it.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Keyboard version of CMD+Click for multiple selects?

Postby sublimator on Thu Jun 28, 2012 1:55 am

SublimeMarkAndMove


Looks handy for prefixing and stuff. Painting in tabstops :)
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Keyboard version of CMD+Click for multiple selects?

Postby Phunky on Thu Jun 28, 2012 9:45 am

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


Cheers, this seems to be just what I was after - just thought there might be a keyboard short cut already in place.
Phunky
 
Posts: 35
Joined: Mon Feb 07, 2011 5:02 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 29 guests