Skip to content

Instantly share code, notes, and snippets.

@axsuul
Created May 28, 2014 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axsuul/a633318a8859e880db1d to your computer and use it in GitHub Desktop.
Save axsuul/a633318a8859e880db1d to your computer and use it in GitHub Desktop.
[
{ "keys": ["super+h"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["super+l"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["super+k"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["super+j"], "command": "move", "args": {"by": "lines", "forward": true} },
{ "keys": ["super+shift+h"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
{ "keys": ["super+shift+l"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
{ "keys": ["super+shift+k"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
{ "keys": ["super+shift+j"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
{ "keys": ["super+ctrl+h"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["super+ctrl+l"], "command": "move", "args": {"by": "word_ends", "forward": true} },
{ "keys": ["super+shift+ctrl+h"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
{ "keys": ["super+shift+ctrl+l"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} },
{ "keys": ["super+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },
{ "keys": ["super+6"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["super+4"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["super+shift+6"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["super+shift+4"], "command": "move_to", "args": {"to": "eol", "extend": true} },
// swap keys up and down bitch!
{ "keys": ["super+ctrl+k"], "command": "swap_line_up" },
{ "keys": ["super+ctrl+j"], "command": "swap_line_down" },
// undo
{ "keys": ["super+u"], "command": "soft_undo" },
{ "keys": ["super+ctrl+u"], "command": "soft_redo" },
{ "keys": ["super+e"], "command": "expand_selection", "args": {"to": "word"} },
{ "keys": ["super+e"], "command": "find_under_expand", "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
// { "keys": ["super+p", "super+e"], "command": "find_under_expand_skip" },
{ "keys": ["super+shift+e"], "command": "expand_selection", "args": {"to": "scope"} },
{ "keys": ["super+d"], "command": "duplicate_line" },
{ "keys": ["super+shift+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
// alignment
{ "keys": ["super+ctrl+shift+a"], "command": "alignment" },
// find and replace shit
{ "keys": ["super+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["super+shift+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["super+shift+f"], "command": "show_panel", "args": {"panel": "replace"} },
{ "keys": ["super+shift+ctrl+f"], "command": "show_panel", "args": {"panel": "find_in_files"} },
// TODO: { "keys": ["super+;"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },
// ruby only
// hash rocket
{
"keys": ["super+."],
"command": "run_macro_file",
"args": { "file": "Packages/User/Generic/HashRocket.sublime-macro" }
},
// skinny arrow
{
"keys": ["super+shift+."],
"command": "run_macro_file",
"args": { "file": "Packages/User/Generic/SkinnyArrow.sublime-macro" }
},
// custom rspec focus toggler
{ "keys": ["super+shift+o"], "command": "toggle_rspec_focus" },
// bookmarks
{ "keys": ["f3"], "command": "next_bookmark" },
{ "keys": ["shift+f3"], "command": "prev_bookmark" },
{ "keys": ["super+f3"], "command": "toggle_bookmark" },
{ "keys": ["super+shift+f3"], "command": "clear_bookmarks" },
{ "keys": ["ctrl+f3"], "command": "select_all_bookmarks" },
{ "keys": ["f5"], "command": "refresh_folder_list"}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment