-
Notifications
You must be signed in to change notification settings - Fork 0
/
Default (OSX).sublime-keymap
56 lines (55 loc) · 3.55 KB
/
Default (OSX).sublime-keymap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[
//willbond alignment
{ "keys": ["super+shift+a"], "command": "alignment" },
// scroll to and highlight the file on the left nav
{ "keys": ["shift+super+r"], "command": "reveal_in_side_bar" },
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+super+v"], "command": "paste" },
// auto_match_enabled is annoying me when it eats my endbrackets
{ "keys": [")"], "command": "insert", "args": {"characters": ")"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\)", "match_all": true }
]
},
// Undo tab close / recently closed tabs https://www.sublimetext.com/forum/viewtopic.php?f=4&t=2542
{ "keys": ["shift+super+t"], "command": "open_recent_file", "args": {"index" : 0} },
// open the file in finder
{ "keys": ["shift+super+o"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} },
// open the terminal for file
{ "keys": ["shift+ctrl+option+super+t"], "command": "open_terminal" },
// open current selection from find results
{ "keys": ["super+enter"], "command": "prev_result" },
// copy filepath relative to project
{ "keys": ["command+shift+c"], "command": "copy_relative_path" },
// ctags
{ "keys": ["shift+ctrl+up"], "command": "jump_prev" },
{ "keys": ["shift+ctrl+down"], "command": "navigate_to_definition" },
// gitguttter binding to my userkey aka the space cadey key http://stevelosh.com/blog/2012/10/a-modern-space-cadet/
// { "keys": ["shift+ctrl+option+super+j"], "command": "git_gutter_next_change" },
// { "keys": ["shift+ctrl+option+super+k"], "command": "git_gutter_prev_change" },
// { "keys": ["super+shift+option+c", "v"], "command": "git_gutter_show_compare" },
// { "keys": ["super+shift+option+c", "h"], "command": "git_gutter_compare_head" },
// { "keys": ["super+shift+option+c", "o"], "command": "git_gutter_compare_origin" },
// { "keys": ["super+shift+option+c", "c"], "command": "git_gutter_compare_commit" },
// { "keys": ["super+shift+option+c", "b"], "command": "git_gutter_compare_branch" },
// { "keys": ["super+shift+option+c", "t"], "command": "git_gutter_compare_tag" },
// gitgutter
// { "keys": ["super+shift+option+j"], "command": "git_gutter_next_change" },
// { "keys": ["super+shift+option+k"], "command": "git_gutter_prev_change" },
// { "keys": ["super+shift+option+c", "super+d"], "command": "git_gutter_diff_popup" },
// { "keys": ["super+shift+option+c", "v"], "command": "git_gutter_show_compare" },
// { "keys": ["super+shift+option+c", "h"], "command": "git_gutter_compare_head" },
// { "keys": ["super+shift+option+c", "o"], "command": "git_gutter_compare_origin" },
// { "keys": ["super+shift+option+c", "c"], "command": "git_gutter_compare_commit" },
// { "keys": ["super+shift+option+c", "f"], "command": "git_gutter_compare_file_commit" },
// { "keys": ["super+shift+option+c", "b"], "command": "git_gutter_compare_branch" },
// { "keys": ["super+shift+option+c", "t"], "command": "git_gutter_compare_tag" },
// rubytest
{ "keys": ["super+alt+t"], "command": "run_all_ruby_test" }, // test file
{ "keys": ["super+alt+r"], "command": "run_single_ruby_test" }, // single test
{ "keys": ["super+alt+e"], "command": "run_last_ruby_test" }, // test last test file
{ "keys": ["super+alt+x"], "command": "show_test_panel" } // show test panel
]