Skip to content

Instantly share code, notes, and snippets.

@sike
Created September 26, 2012 10:13
Show Gist options
  • Save sike/3787172 to your computer and use it in GitHub Desktop.
Save sike/3787172 to your computer and use it in GitHub Desktop.
Sublime : User Keymap
[
// { "keys": ["ctrl+d"], "command": "find_under_expand" },
{ "keys": ["ctrl+s"], "command": "find_under_expand" },
{ "keys": ["alt+s"], "command": "toggle_side_bar" },
// { "keys": ["ctrl+u"], "command": "soft_undo" },
{
"keys": ["super+alt+left"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.66, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
{
"keys": ["super+alt+right"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
{ "keys": ["ctrl+1"], "command": "focus_group", "args": { "group": 0 } },
{ "keys": ["ctrl+2"], "command": "focus_group", "args": { "group": 1 } },
{ "keys": ["ctrl+3"], "command": "focus_group", "args": { "group": 2 } },
{ "keys": ["ctrl+4"], "command": "focus_group", "args": { "group": 3 } },
{ "keys": ["escape"], "command": "alternative_autocomplete", "context":
[
{ "key": "num_selections", "operator": "equal", "operand": 1 },
{ "key": "overlay_visible", "operator": "equal", "operand": false },
{ "key": "panel_visible", "operator": "equal", "operand": false }
]
},
{ "keys": ["shift+escape"], "command": "alternative_autocomplete", "args": {"cycle": "previous"}, "context":
[
{ "key": "num_selections", "operator": "equal", "operand": 1 },
{ "key": "overlay_visible", "operator": "equal", "operand": false },
{ "key": "panel_visible", "operator": "equal", "operand": false }
]
},
{ "keys": ["ctrl+d"], "command": "complete","context": [{ "key": "selector", "operator": "equal", "operand": "text.todo" }] },
{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse":true} },
{ "keys": ["super+shift+f"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse":false} },
{ "keys": ["super+i"], "command": "show_panel", "args": {"panel": "find"} },
{ "keys": ["ctrl+c"], "command": "expand_selection", "args": {"to": "scope"} },
// { "keys": ["escape"], "command": "exit_insert_mode",
// "context":
// [
// { "key": "setting.command_mode", "operand": false },
// { "key": "setting.is_widget", "operand": false },
// { "key": "setting.vintage_ctrl_keys" }
// ]
// },
// { "keys": ["escape"], "command": "exit_visual_mode",
// "context":
// [
// { "key": "setting.command_mode"},
// { "key": "num_selections", "operand": 1},
// { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": false },
// { "key": "setting.vintage_ctrl_keys" }
// ]
// },
// { "keys": ["escape"], "command": "vi_cancel_current_action",
// "context":
// [
// { "key": "setting.command_mode" },
// { "key": "vi_has_input_state" },
// { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": false },
// { "key": "setting.vintage_ctrl_keys" }
// ]
// }
{ "keys": ["ctrl+o"],
"command": "side_bar_open_in_browser",
"args":{"paths":[], "type":"production"}
}
/*
{ "keys": ["tab"], "command": "alternative_autocomplete", "args": {"default": "\t"}, "context":
[
{ "key": "num_selections", "operator": "equal", "operand": 1 }
]
},
{ "keys": ["shift+tab"], "command": "alternative_autocomplete", "args": {"cycle": "previous"}, "context":
[
{ "key": "num_selections", "operator": "equal", "operand": 1 }
]
},
{ "keys": ["tab"], "command": "indent", "context":
[
{ "key": "text", "operator": "regex_contains", "operand": "\n" }
]
},
{ "keys": ["shift+tab"], "command": "unindent", "context":
[
{ "key": "text", "operator": "regex_contains", "operand": "\n" }
]
}*/
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment