Skip to content

Instantly share code, notes, and snippets.

@cschleiden
Created August 8, 2019 18:22
Show Gist options
  • Save cschleiden/bc7095605a3b0c8fb8c26cc738fd02b4 to your computer and use it in GitHub Desktop.
Save cschleiden/bc7095605a3b0c8fb8c26cc738fd02b4 to your computer and use it in GitHub Desktop.
Sublime Text Emacs-like key bindings
[
{ "keys": ["alt+b"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["alt+f"], "command": "move", "args": {"by": "word_ends", "forward": true} },
{"keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} },
{"keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} },
{"keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false} },
{"keys": ["ctrl+n"], "command": "move", "args": {"by": "lines", "forward": true} },
{"keys": ["alt+d"], "command": "sbp_move_then_delete", "args": {"move_cmd": "sbp_move_word", "direction": 1}},
{"keys": ["alt+backspace"], "command": "sbp_move_then_delete", "args": {"move_cmd": "sbp_move_word", "direction": -1}},
{"keys": ["ctrl+d"], "command": "right_delete"},
{"keys": ["ctrl+a"], "command": "move_to", "args": {"to": "hardbol", "extend": false }},
{"keys": ["ctrl+e"], "command": "move_to", "args": {"to": "hardeol", "extend": false }},
{ "keys": ["ctrl+alt+d"], "command": "plain_tasks_complete","context": [{ "key": "selector", "operator": "equal", "operand": "text.todo" }] },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment