In the ST1 documentation, it’s stated that regexes may be used when creating keybindings: http://www.sublimetext.com/docs/key-bindings
I’d like a “select n lines”, where ‘n’ is the number of lines to select. Is that possible to do that in ST2?
Based on the code from the documentation (first line), I tried to translate it to JSON, but I’m getting errors when I’m trying save (neither lines work):
// <binding key="alt+d,/[0-9]+/,w" command="times $1 deleteWord right"/>
{ "keys": "super+alt+l", "/\d\+/"], "command": "times $1 expand_selection", "args": {"to": "line"} },
{ "keys": "super+alt+l", "/\d+/"], "command": "times $1 expand_selection", "args": {"to": "line"} }