Home Download Buy Blog Forum Support

Invert Selection!?

Invert Selection!?

Postby notionwork on Wed Nov 21, 2012 9:08 pm

When I search for invert selection for Sublime Text 2 in Google I find Sublime Text 2's list of commands, one of which is invertSelection. When I create a keyboard shortcut for that command, it does not work. I've also tried invert_selection. What am I missing here?

Here's my binding:

Code: Select all
   { "keys": ["ctrl+alt+i"], "command": "invertSelections"},
Last edited by notionwork on Wed Nov 21, 2012 9:23 pm, edited 1 time in total.
notionwork
 
Posts: 3
Joined: Wed Nov 21, 2012 9:05 pm

Re: Invert Selection!?

Postby AGS on Wed Nov 21, 2012 9:23 pm

Are you thinking about the
Code: Select all
reverse
command?

I am not familiar with any
Code: Select all
invert
command.
AGS
 
Posts: 32
Joined: Mon Aug 20, 2012 5:58 pm

Re: Invert Selection!?

Postby notionwork on Wed Nov 21, 2012 9:28 pm

It is listed here under invertSelection at this link:

http://www.sublimetext.com/docs/commands

Basically I want to be able to select a portion of the code, and hit a key, and then Sublime Text will deselect my current selection, and select everything that was not in my selection previously. Just like the command states...
notionwork
 
Posts: 3
Joined: Wed Nov 21, 2012 9:05 pm

Re: Invert Selection!?

Postby adzenith on Wed Nov 21, 2012 10:38 pm

Those docs are out of date... I don't know if Sublime Text 2 has an invert command. One would be really easy to write, though.
adzenith
 
Posts: 1216
Joined: Mon Oct 19, 2009 9:12 pm

Re: Invert Selection!?

Postby notionwork on Wed Nov 21, 2012 10:48 pm

That's funny. It must have become deprecated. Someone should put a notice up that those may not be valid commands listed....
notionwork
 
Posts: 3
Joined: Wed Nov 21, 2012 9:05 pm

Re: Invert Selection!?

Postby adzenith on Thu Nov 22, 2012 2:49 am

Those commands are all from Sublime Text 1, which is why they don't work.
adzenith
 
Posts: 1216
Joined: Mon Oct 19, 2009 9:12 pm

Re: Invert Selection!?

Postby bizoo on Thu Nov 22, 2012 7:05 am

adzenith wrote:Those commands are all from Sublime Text 1, which is why they don't work.

If only there was a similar commands list for ST2 :cry:
bizoo
 
Posts: 883
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Invert Selection!?

Postby sarevofaona on Sun Mar 31, 2013 12:16 pm

I, too, wanted to find an "invert_selection" (and "clear_selection") command and kept coming back to the ST1 command list. How can we be expected to create custom key bindings if there's no list of available commands for ST2? Could someone point me at such a list?
--
Sarev of Aona
Sublime Newbie ;)
sarevofaona
 
Posts: 8
Joined: Sun Mar 31, 2013 12:08 pm

Re: Invert Selection!?

Postby quodlibet on Sun Mar 31, 2013 1:46 pm

Jon added inverted selection to ST3. Get it while it's hot :)
quodlibet
 
Posts: 531
Joined: Sat Jun 18, 2011 5:53 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 25 guests