Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save antoniofrignani/9246c1fb912d332849c3 to your computer and use it in GitHub Desktop.
Save antoniofrignani/9246c1fb912d332849c3 to your computer and use it in GitHub Desktop.
Keymap to simulate home/end keyboard keys functionality on OSX as if it was Windows. Also includes ctrl and shift behaviors.
[
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } },
{ "keys": ["ctrl+home"], "command": "move_to", "args": {"to": "bof"} },
{ "keys": ["ctrl+end"], "command": "move_to", "args": {"to": "eof"} },
{ "keys": ["ctrl+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true} },
{ "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