Skip to content

Instantly share code, notes, and snippets.

@takashi
Created January 16, 2013 12:42
Show Gist options
  • Save takashi/4546876 to your computer and use it in GitHub Desktop.
Save takashi/4546876 to your computer and use it in GitHub Desktop.
sublime-keybinding
[
// how to move in the filer with hjkl
{ "keys": ["j"], "command": "move", "args": {"by": "lines", "forward": true}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["k"], "command": "move", "args": {"by": "lines", "forward": false}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["l"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["h"], "command": "move", "args": {"by": "characters", "forward": false}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{"keys": ["ctrl+r"], "command": "reveal_in_side_bar"},
{ "keys": ["ctrl+minus"], "command": "jump_back" },
{ "keys": ["ctrl+shift+minus"], "command": "jump_forward" },
// pane
{ "keys": ["ctrl+k", "k"], "command": "new_pane" },
{ "keys": ["super+k", "super+shift+up"], "command": "new_pane", "args": {"move": false} },
{ "keys": ["ctrl+k", "j"], "command": "close_pane" },
{ "keys": ["ctrl+k", "h"], "command": "focus_neighboring_group", "args": {"forward": false} },
{ "keys": ["ctrl+k", "l"], "command": "focus_neighboring_group" }
]
@zzztuzzz
Copy link

THX!!

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