Skip to content

Instantly share code, notes, and snippets.

@damienstanton
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save damienstanton/d5b2efd5e052cd02d1ab to your computer and use it in GitHub Desktop.

Select an option

Save damienstanton/d5b2efd5e052cd02d1ab to your computer and use it in GitHub Desktop.
Sublime Keymap
[
// Fix some weirdness with advanced new file
// -----------------------------------------
{ "keys": ["super+alt+n"], "command": "advanced_new_file_new"},
{ "keys": ["shift+super+alt+n"], "command": "advanced_new_file_new", "args": {"is_python": true}},
// Make the sidebar behave more Vimlike
{ "keys": ["h"], "command": "move", "args": {"by": "characters", "forward": false}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "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"} ]
},
// ****************************
// Main Customizations Are Here
// ****************************
{ "keys": ["ctrl+shift+t"], "command": "toggle_tabs"},
// Not sure?
{
"keys": ["tab"],
"command": "insert",
"args": {"characters": "\t"},
"context": [{
"key": "setting.anf_panel"
}]
},
// Don't complete single quotes in Clojure files
// ---------------------------------------------
{ "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "source.clojure"}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment