Sublime Forum

Key binding and command for expanding selection from any point of the line to the end of the line/tag?

#1

Hello there,
I’m using ST3 build 3207
what will be the key binding and command for expanding selection from any point of the line to the end of the line/tag??
Thanks

0 Likes

#2

These sorts of cursor movements are generally done via the move and move_to commands. In this particular case, the command is move_to with arguments {"to": "eol", "extend": true} for the case of moving to the end of the line. I’m not aware offhand of a key binding that jumps to the end of an arbitrary tag.

In any case, the default binding for the above is Shift+End on Windows and Linux and Shift+Command+Right on MacOS (though this does not appear in the default key bindings and appears to be something that Sublime knows to do automatically on MacOS).

0 Likes