Last active
March 18, 2019 15:57
-
-
Save s1carii/c1ffaf07d87be297ae45f6c88062da41 to your computer and use it in GitHub Desktop.
Make home and end behave "normally" in Sublime Text on Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ // Make home and end behave "normally": | |
{ // Go to the beginning of the current line | |
"keys": ["home"], | |
"command": "move_to", | |
"args": {"to": "bol"} | |
}, | |
{ // Highlight to the beginning of the current line | |
"keys": ["shift+home"], | |
"command": "move_to", | |
"args": {"to": "bol", "extend": true} | |
}, | |
{ // Go to the end of the current line | |
"keys": ["end"], | |
"command": "move_to", | |
"args": {"to": "eol"} | |
}, | |
{ // Hightlight to the end of the current line | |
"keys": ["shift+end"], | |
"command": "move_to", | |
"args": {"to": "eol", "extend": true} | |
}, | |
{ // Go to the beginning of the current file | |
"keys": ["ctrl+home"], | |
"command": "move_to", | |
"args": {"to": "bof"} | |
}, | |
{ // Highlight to the beginning of the current file | |
"keys": ["ctrl+shift+home"], | |
"command": "move_to", | |
"args": {"to": "bof", "extend": true} | |
}, | |
{ // Go to the end of the current file | |
"keys": ["ctrl+end"], | |
"command": "move_to", | |
"args": {"to": "eof"} | |
}, | |
{ // Highlight to the end of the current file | |
"keys": ["ctrl+shift+end"], | |
"command": "move_to", | |
"args": {"to": "eof", "extend": true} | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment