Skip to content

Instantly share code, notes, and snippets.

@lmdemanuel
Last active March 16, 2016 16:34
Show Gist options
  • Save lmdemanuel/624c232810e23be32300 to your computer and use it in GitHub Desktop.
Save lmdemanuel/624c232810e23be32300 to your computer and use it in GitHub Desktop.
Sublime Text 3 - User keybindings "a la Xcode"
[
{ "keys": ["super+0"], "command": "toggle_side_bar" },
{ "keys": ["super+shift+o"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["super+shift+y"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
{
"keys": ["super+enter"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
{
"keys": ["super+alt+enter"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
// Advanced new file
{ "keys": ["super+ctrl+n"], "command": "advanced_new_file_new"},
{ "keys": ["ctrl+super+alt+n"], "command": "advanced_new_file_new", "args": {"is_python": true}},
// Django TDD
{
"keys": ["super+alt+u","super+alt+."], "command": "run_python_test",
"context": [
{"key": "selector", "operator": "equal", "operand": "source.python"}
]
},
{
"keys": ["super+alt+u","super+alt+t"], "command": "run_python_project_tests",
"context": [
{"key": "selector", "operator": "equal", "operand": "source.python"}
]
},
{ "keys": ["super+{"], "command": "prev_view" },
{ "keys": ["super+}"], "command": "next_view" },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment