kek / sublime-expand-selection-to-quotes

Sublime Text plugin to expand selection to surrounding quotes
107 stars 13 forks source link

OSX keybinding #2

Closed unphased closed 11 years ago

unphased commented 11 years ago

I would advise that Super+Shift+Q is not ideal as it's quite easy to trigger Super+Q which quits the program.

I think it might make more sense to make all the OSX expand_selection shortcuts to use ctrl rather than super (only the matching brackets remains ctrl+m by default). However it is tempting to use the q key for "quote" so this is a bit of a dilemma, honestly.

kek commented 11 years ago

Thanks! Yes, and it also conflicts with a system shortcut (Log out).

How useful is this plugin really? After I wrote it, I discovered that "expand selection to scope" and "expand selection to brackets" do almost the same thing in most cases (except maybe for plaintext files). Is it worth keeping/updating it?

unphased commented 11 years ago

So I stumbled upon this plugin while trying to do this: http://www.sublimetext.com/forum/viewtopic.php?f=4&t=11772&p=46388#p46388

Basically I find myself flipping string quotes all too often. Pretty much never switch bracket types, but it wouldn't hurt if the system could support that. Sometimes editing nested expressions can benefit from a far less painful way to keep the braces/brackets matching.

I am looking through your code now. Depending on how much extra stuff my solution ends up I may merge it in with your plugin. But its scope is a good bit wider than yours.

kek commented 11 years ago

I have changed the default keybinding to Ctrl+'. That seems to not be bound by default on any of the platforms.