Skip to content

Instantly share code, notes, and snippets.

@gu-fan
Last active December 15, 2015 20:39
Show Gist options
  • Save gu-fan/5319492 to your computer and use it in GitHub Desktop.
Save gu-fan/5319492 to your computer and use it in GitHub Desktop.
[
// cursor movement
{ "keys": ["alt+h"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["alt+l"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["alt+k"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["alt+j"], "command": "move", "args": {"by": "lines", "forward": true} },
{ "keys": ["alt+w"], "command": "left_delete" },
// selection
{ "keys": ["ctrl+l"], "command": "expand_selection", "args": {"to": "line"} },
{ "keys": ["ctrl+shift+space"], "command": "expand_selection", "args": {"to": "scope"} },
{ "keys": ["ctrl+shift+m"], "command": "expand_selection", "args": {"to": "brackets"} },
{ "keys": ["ctrl+m"], "command": "move_to", "args": {"to": "brackets"} },
{ "keys": ["ctrl+shift+j"], "command": "expand_selection", "args": {"to": "indentation"} },
{ "keys": ["ctrl+shift+a"], "command": "expand_selection", "args": {"to": "tag"} },
// window management
{ "keys": ["ctrl+w","ctrl+w"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+w","ctrl+e"], "command": "prev_view_in_stack" },
{ "keys": ["ctrl+w","ctrl+q"], "command": "close_file" },
// show panels
{ "keys": ["ctrl+w","1"], "command": "toggle_menu" },
{ "keys": ["ctrl+w","2"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+w","3"], "command": "toggle_full_screen" },
{ "keys": ["ctrl+w","4"], "command": "toggle_distraction_free" },
{ "keys": ["ctrl+w","5"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
// end for ignore the ,
{ "keys": ["ctrl+z"], "command": "undo" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment