aronwoost / sublime-expand-region

Like “Expand Selection to Scope”. But better!

Home Page:https://github.com/aronwoost/sublime-expand-region

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

De-expand command

antoine-gallix opened this issue · comments

Hello,
I really enjoy this module but as a previous user of this function under Emacs, one thing is still missing in this SublimeText implementation : the possibility to undo one level of expansion.

Example
expand > select word
expand > select enclosing quotes
expand > select enclosing parenthesis
we want to come back to quotes
de-expand > select enclosed quotes :: missing feature here

Antoine

Mega +1 here... this is a crucial aspect of ExpandRegion in emacs. Perhaps this could be tied into the Sublime Text soft undo?

With Sublime Text's "expand selection to scope", you can "soft undo" to undo the previous selection expansion. Attempting to soft undo this plugin's expand region simply deselects everything.

👍

I'll make this prio 1.

Its there!

Put it on a shortcut:

{ "keys": ["your_fancy_shortcut"], "command": "expand_region", "args": {"debug": true, "undo": true}},

The all suck anyways. I'll make it work on soft undo.

Please let me know if there are problems, especially on ST3 and with non-ascii characters in buffer.

Note: Does not work on multiple selections yet.