Skip to content

Instantly share code, notes, and snippets.

@FrankFang
Last active December 23, 2015 09:59
Show Gist options
  • Save FrankFang/6618667 to your computer and use it in GitHub Desktop.
Save FrankFang/6618667 to your computer and use it in GitHub Desktop.
sublime keymap
[
{ "keys": ["super+shift+g"], "command": "exec", "args": { "cmd": ["ls"]} },
{ "keys": ["super+k", "super+b"], "command": "toggle_side_bar" },
{ "keys": ["super+k", "super+v"], "command": "paste_from_history" },
// { "keys": ["super+k", "super+d"], "command": "find_under_expand_skip" },
{ "keys": ["super+shift+d"], "command": "find_under_expand_skip" },
/* pane */
{ "keys": ["super+k", "super+up"], "command": "new_pane" },
{ "keys": ["super+k", "super+shift+up"], "command": "new_pane", "args": {"move": false} },
{ "keys": ["super+k", "super+down"], "command": "close_pane" },
{ "keys": ["super+k", "super+left"], "command": "focus_neighboring_group", "args": {"forward": false} },
{ "keys": ["super+k", "super+right"], "command": "focus_neighboring_group" },
{ "keys": ["super+k", "super+shift+left"], "command": "move_to_neighboring_group", "args": {"forward": false} },
{ "keys": ["super+k", "super+shift+right"], "command": "move_to_neighboring_group" },
// { "keys": ["super+k", "super+u"], "command": "upper_case" },
{ "keys": ["super+ctrl+alt+shift+backspace"], "command": "upper_case" },
// { "keys": ["super+k", "super+l"], "command": "lower_case" },
{ "keys": ["super+ctrl+alt+shift+backspace"], "command": "lower_case" },
{ "keys": ["super+k", "super+space"], "command": "set_mark" },
{ "keys": ["super+k", "super+a"], "command": "select_to_mark" },
{ "keys": ["super+k", "super+w"], "command": "delete_to_mark" },
{ "keys": ["super+k", "super+x"], "command": "swap_with_mark" },
{ "keys": ["super+k", "super+g"], "command": "clear_bookmarks", "args": {"name": "mark"} },
/* fold */
{ "keys": ["super+minus"], "command": "fold" },
{ "keys": ["super+equals"], "command": "unfold" },
{ "keys": ["super+k", "super+1"], "command": "fold_by_level", "args": {"level": 1} },
{ "keys": ["super+k", "super+2"], "command": "fold_by_level", "args": {"level": 2} },
{ "keys": ["super+k", "super+3"], "command": "fold_by_level", "args": {"level": 3} },
{ "keys": ["super+k", "super+4"], "command": "fold_by_level", "args": {"level": 4} },
{ "keys": ["super+k", "super+5"], "command": "fold_by_level", "args": {"level": 5} },
{ "keys": ["super+k", "super+6"], "command": "fold_by_level", "args": {"level": 6} },
{ "keys": ["super+k", "super+7"], "command": "fold_by_level", "args": {"level": 7} },
{ "keys": ["super+k", "super+8"], "command": "fold_by_level", "args": {"level": 8} },
{ "keys": ["super+k", "super+9"], "command": "fold_by_level", "args": {"level": 9} },
{ "keys": ["super+k", "super+0"], "command": "unfold_all" },
{ "keys": ["super+k", "super+j"], "command": "unfold_all" },
{ "keys": ["super+k", "super+t"], "command": "fold_tag_attributes" },
// { "keys": ["super+alt+o"], "command": "toggle_overwrite" },
{ "keys": ["super+ctrl+alt+shift+backspace"], "command": "toggle_overwrite" },
{ "keys": ["super+_"], "command": "decrease_font_size" },
{ "keys": ["super+plus"], "command": "increase_font_size" },
/* copy & yank */
// { "keys": ["super+k", "super+y"], "command": "yank" },
{ "keys": ["super+ctrl+alt+shift+backspace"], "command": "yank" },
// { "keys": ["super+k", "super+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} },
{ "keys": ["super+ctrl+alt+shift+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} },
// { "keys": ["super+k", "super+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"} },
{ "keys": ["super+ctrl+alt+shift+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"} },
// { "keys": ["super+k", "super+c"], "command": "show_at_center" },
{ "keys": ["super+ctrl+alt+shift+backspace"], "command": "show_at_center" },
{ "keys": ["f7"], "command": "build" },
// { "keys": ["super+b"], "command": "build" },
{ "keys": ["super+ctrl+alt+shift+backspace"], "command": "build" },
// { "keys": ["super+shift+b"], "command": "build", "args": {"variant": "Run"} }
{ "keys": ["super+ctrl+alt+shift+backspace"], "command": "build", "args": {"variant": "Run"} },
/* nav */
{ "keys": ["super+shift+["], "command": "prev_view" },
{ "keys": ["super+shift+]"], "command": "next_view" },
{ "keys": ["super+alt+left"], "command": "prev_view" },
{ "keys": ["super+ctrl+k"], "command": "prev_view" },
{ "keys": ["super+alt+right"], "command": "next_view" },
{ "keys": ["super+ctrl+j"], "command": "next_view" },
{ "keys": ["super+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["ctrl+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["f12"], "command": "goto_definition" },
// { "keys": ["super+alt+down"], "command": "goto_definition" },
{ "keys": ["super+ctrl+alt+shift+backspace"], "command": "goto_definition" },
{ "keys": ["super+shift+r"], "command": "goto_symbol_in_project" },
{ "keys": ["ctrl+minus"], "command": "jump_back" },
{ "keys": ["ctrl+backspace"], "command": "jump_back" },
{ "keys": ["ctrl+shift+minus"], "command": "jump_forward" },
{ "keys": ["ctrl+shift+backspace"], "command": "jump_forward" },
{
"keys": [
"alt+tab"
],
"args": {
"action": "expand_abbreviation"
},
"command": "run_emmet_action",
"context": [
{
"key": "emmet_action_enabled.expand_abbreviation"
}
]
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment