Skip to content

Instantly share code, notes, and snippets.

@s1carii
Last active March 18, 2019 15:57
Show Gist options
  • Save s1carii/c1ffaf07d87be297ae45f6c88062da41 to your computer and use it in GitHub Desktop.
Save s1carii/c1ffaf07d87be297ae45f6c88062da41 to your computer and use it in GitHub Desktop.
Make home and end behave "normally" in Sublime Text on Mac
[ // 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