-
Notifications
You must be signed in to change notification settings - Fork 0
/
Default (OSX).sublime-keymap
157 lines (143 loc) · 4.11 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[
{ "keys": ["ctrl+shift+."], "command": "erb", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.ruby, text.html.erb, text.haml, source.yaml, source.css, source.scss, source.js, source.coffee" }
]
},
{"keys": ["ctrl+shift+r"], "command": "set_file_type",
"args": {"syntax": "Packages/Ruby/Ruby.tmLanguage"}
},
// Change default Alignment keyboard shortcut
{ "keys": ["super+ctrl+shift+a"], "command": "alignment" },
// Key bindings for Sublime built in case transform commands
{ "keys": ["super+alt+t"], "command": "title_case" },
{ "keys": ["super+alt+u"], "command": "upper_case" },
{ "keys": ["super+alt+l"], "command": "lower_case" },
// The following key binding require SideBarEnhancements plugin to work
// This allows to duplicate, rename, move, delete the current file with a simple shortcut
{ "keys": ["super+ctrl+shift+d"], "command": "side_bar_duplicate" },
{ "keys": ["super+ctrl+shift+r"], "command": "side_bar_rename" },
{ "keys": ["super+ctrl+shift+m"], "command": "side_bar_move" },
{ "keys": ["super+ctrl+shift+x"], "command": "side_bar_delete" },
// Key bindings for Sublime built in layout commands
// increases size of left pane
{
"keys": ["super+alt+shift+right"],
"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]]
}
},
// increases size of right pane
{
"keys": ["super+alt+shift+left"],
"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]]
}
},
// The following key binding require BracketHighlighter plugin to work
// Select text inside brackets or quotes
{
"keys": ["ctrl+super+s"],
"command": "bh_key",
"args":
{
"lines" : true,
"plugin":
{
"type": ["__all__"],
"command": "bh_modules.bracketselect"
}
}
},
// Select text inside brackets or quotes including brackets or quotes
{
"keys": ["ctrl+shift+super+s"],
"command": "bh_key",
"args":
{
"lines" : true,
"plugin":
{
"type": ["__all__"],
"command": "bh_modules.bracketselect",
"args": {"always_include_brackets": true}
}
}
},
// Go to left bracket or quote
{
"keys": ["ctrl+super+left"],
"command": "bh_key",
"args":
{
"lines" : true,
"plugin":
{
"type": ["__all__"],
"command": "bh_modules.bracketselect",
"args": {"select": "left"}
}
}
},
// Go to right bracket or quote
{
"keys": ["ctrl+super+right"],
"command": "bh_key",
"args":
{
"lines" : true,
"plugin":
{
"type": ["__all__"],
"command": "bh_modules.bracketselect",
"args": {"select": "right"}
}
}
},
// Remove brackets or quotes
{
"keys": ["ctrl+super+r"],
"command": "bh_remove_brackets"
},
// Convert single quote string to double quoted string and vice versa
// Will handle escaping or unescaping quotes within the string
{
"keys": ["ctrl+super+'"],
"command": "bh_key",
"args":
{
"lines" : true,
"plugin":
{
"type": ["single_quote", "double_quote", "py_single_quote", "py_double_quote"],
"command": "bh_modules.swapquotes"
}
}
},
// Swap brackets with another type
{
"keys": ["ctrl+super+9"],
"command": "swap_brackets"
},
// The following key binding require TrailingSpaces plugin to work
{ "keys": ["ctrl+super+t"], "command": "delete_trailing_spaces" },
// The following key binding require Ruby Block Converter plugin to work
// Switch braces to do end block
{
"keys": ["ctrl+shift+]"],
"command": "brace_to_do_end"
},
// Switch do end block to braces
{
"keys": ["ctrl+shift+["],
"command": "do_end_to_brace"
}
]