Skip to content

Instantly share code, notes, and snippets.

@thiagoghisi
Created August 27, 2014 18:49
Show Gist options
  • Save thiagoghisi/549760962ab485cf0bd1 to your computer and use it in GitHub Desktop.
Save thiagoghisi/549760962ab485cf0bd1 to your computer and use it in GitHub Desktop.
Default sublime-keymap
[
// Sublime AutoComplete
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+alt+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
// Sublime GoTo
{ "keys": ["super+alt+down"], "command": "goto_definition" },
// Sublime Navigation
{ "keys": ["super+alt+left"], "command": "jump_back" },
{ "keys": ["super+alt+right"], "command": "jump_forward" },
// Sublime GoTo Symbols
{ "keys": ["super+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["super+shift+r"], "command": "goto_symbol_in_project" },
// Sublime GoTo Line number
{ "keys": ["ctrl+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
// Sublime GoTo Files
{ "keys": ["super+t"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["super+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
// SublimeCodeIntel AutoComplete
{ "keys": ["super+alt+ctrl+space"],"command": "code_intel_auto_complete" },
// SublimeCodeIntel GoTo
{ "keys": ["super+alt+ctrl+down"], "command": "goto_python_definition"},
{ "keys": ["super+alt+ctrl+up"], "command": "back_to_python_definition"},
// Toggle WhoCalled
{ "keys": ["super+alt+l"], "command": "who_called", "args": {"mode": "def"} },
{ "keys": ["super+alt+shift+l"], "command": "who_called", "args": {"mode": "call"} },
// Moving between Symbols
{ "keys": ["ctrl+shift+["], "command": "move_by_symbols", "args": {"forward": false}},
{ "keys": ["ctrl+shift+]"], "command": "move_by_symbols", "args": {"forward": true}},
// Moving between brackets
{ "keys": ["ctrl+m"], "command": "move_to", "args": {"to": "brackets"} },
// Moving between Lines
{ "keys": ["ctrl+alt+up"], "command": "scroll_lines", "args": {"amount": 5.0} },
{ "keys": ["ctrl+alt+down"], "command": "scroll_lines", "args": {"amount": -5.0} },
// SFTP Plugin
{ "keys": ["super+alt+ctrl+u"], "command": "sftp_upload_file" },
{ "keys": ["super+alt+ctrl+o"], "command": "sftp_upload_open_files" },
// Text Editing
{ "keys": ["super+shift+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+shift+d"], "command": "duplicate_line" },
{ "keys": ["super+shift+j"], "command": "join_lines" },
{ "keys": ["super+ctrl+up"], "command": "swap_line_up" },
{ "keys": ["super+ctrl+down"], "command": "swap_line_down" },
{ "keys": ["f5"], "command": "sort_lines", "args": {"case_sensitive": false} },
{ "keys": ["ctrl+f5"], "command": "sort_lines", "args": {"case_sensitive": true} },
{ "keys": ["ctrl+backspace"], "command": "delete_word", "args": { "forward": false, "sub_words": true } },
{ "keys": ["ctrl+delete"], "command": "delete_word", "args": { "forward": true, "sub_words": true } },
{ "keys": ["super+shift+u"], "command": "upper_case" },
{ "keys": ["super+shift+l"], "command": "lower_case" },
// Selecting
{ "keys": ["super+a"], "command": "select_all" },
// Expand Selection
{ "keys": ["ctrl+shift+space"], "command": "expand_selection", "args": {"to": "scope"} },
{ "keys": ["ctrl+shift+l"], "command": "expand_selection", "args": {"to": "line"} },
{ "keys": ["ctrl+shift+m"], "command": "expand_selection", "args": {"to": "brackets"} },
{ "keys": ["super+alt+ctrl+l"], "command": "split_selection_into_lines" },
// Find/Replace
{ "keys": ["super+d"], "command": "find_under_expand" },
{ "keys": ["super+k", "super+d"], "command": "find_under_expand_skip" },
{ "keys": ["super+ctrl+g"], "command": "find_all_under" },
{ "keys": ["super+alt+g"], "command": "find_under" },
{ "keys": ["super+alt+shift+g"], "command": "find_under_prev" },
{ "keys": ["super+shift+f"], "command": "show_panel", "args": {"panel": "find_in_files"} },
{ "keys": ["f4"], "command": "next_result" },
{ "keys": ["shift+f4"], "command": "prev_result" },
{ "keys": ["super+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false} },
{ "keys": ["super+shift+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse": true} },
{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },
{ "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
{ "keys": ["super+alt+e"], "command": "replace_next" },
{ "keys": ["super+g"], "command": "find_next" },
{ "keys": ["super+shift+g"], "command": "find_prev" },
{ "keys": ["super+e"], "command": "slurp_find_string" },
{ "keys": ["super+shift+e"], "command": "slurp_replace_string" },
// TODO: Figure out what it does
{ "keys": ["super+alt+p"], "command": "show_scope_name" },
{ "keys": ["ctrl+shift+p"], "command": "show_scope_name" },
// Toggles SideBar, FullScreen and Distraction Free mode
{ "keys": ["super+k", "super+b"], "command": "toggle_side_bar" },
{ "keys": ["super+ctrl+f"], "command": "toggle_full_screen" },
{ "keys": ["super+ctrl+shift+f"], "command": "toggle_distraction_free" },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment