Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mnme/5235936 to your computer and use it in GitHub Desktop.

Select an option

Save mnme/5235936 to your computer and use it in GitHub Desktop.
Sublime Text 2 and 3: fix for OSX home/end keys, with selection support and command (super) key
{ "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": ["super+end"], "command": "move_to", "args": {"to": "eof"} },
{ "keys": ["super+home"], "command": "move_to", "args": {"to": "bof"} },
{ "keys": ["super+shift+end"], "command": "move_to", "args": {"to": "eof", "extend": true} },
{ "keys": ["super+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true } },
@Dayjo

Dayjo commented Jun 11, 2013

Copy link
Copy Markdown

Can confirm that this works just great on Sublime Text 3 :)

@FlatMapIO

Copy link
Copy Markdown

Can't save. syntax error.

@jimmykuo

jimmykuo commented Jul 1, 2013

Copy link
Copy Markdown

it works great.
syntax is fine. don't forget the last comma (,)

@velipso

velipso commented Sep 30, 2017

Copy link
Copy Markdown

sweet jesus thank you, this was driving me nuts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment