Sublime Forum

Expand to Subword

#1

It would be nice to add option to expand selection to sub word? I have been using { "keys": ["ctrl+t"], "command": "expand_selection", "args": {"to": "word"} , but when I change word to subword or sub_word nothing is happening.

0 Likes

#2

It’s not built-in, but’s it’s in my plugin.

It’s implemented as one of the functionalities in my plugin Expand and Edit.

Install it via Package Control, or from it GitHub repo.

It won’t introduce any keyboard shortcuts automatically.

You just need to put in something like

{ "keys": ["alt+d"], "command": "expand_selection_to_subword" },

to your keymap file like Default (OSX).sublime-keymap.

That’s it.

2 Likes