Friday, July 25, 2014

Sublime Text on MAC -


Go to end of line/begin of line, and select to end of line, begin of line defaults were driving me crazy. I wan home to move to begin of line, and end to go to end of line - not begin/end of document. Same deal for shift+home and shift+end - I want to select to begin/end of line.

Here's how to "fix" it - just add this to the keymaps.
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },

No comments: