-
-
Notifications
You must be signed in to change notification settings - Fork 245
/
Example.sublime-keymap
executable file
·214 lines (214 loc) · 5.4 KB
/
Example.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
[
// Toggle Global Enable
{
"keys": ["ctrl+alt+super+e"],
"command": "bh_toggle_enable"
},
// Search to end of file for bracket
{
"keys": ["ctrl+alt+super+b"],
"command": "bh_key",
"args":
{
"lines" : true
}
},
// Go to left bracket
{
"keys": ["ctrl+alt+super+up"],
"command": "bh_key",
"args":
{
"no_outside_adj": null,
"no_block_mode": null,
"lines" : true,
"plugin":
{
"command": "bh_modules.bracketselect",
"args": {"select": "left"}
}
}
},
// Go to right bracket
{
"keys": ["ctrl+alt+super+down"],
"command": "bh_key",
"args":
{
"no_outside_adj": null,
"no_block_mode": null,
"lines" : true,
"plugin":
{
"command": "bh_modules.bracketselect",
"args": {"select": "right"}
}
}
},
// Select to left bracket
{
"keys": ["ctrl+alt+shift+super+up"],
"command": "bh_key",
"args":
{
"no_outside_adj": null,
"no_block_mode": null,
"lines" : true,
"plugin":
{
"command": "bh_modules.bracketselect",
"args": {"select": "left", "extend": true}
}
}
},
// Select to right bracket
{
"keys": ["ctrl+alt+shift+super+down"],
"command": "bh_key",
"args":
{
"no_outside_adj": null,
"no_block_mode": null,
"lines" : true,
"plugin":
{
"command": "bh_modules.bracketselect",
"args": {"select": "right", "extend": true}
}
}
},
// Remove brackets
{
"keys": ["ctrl+alt+super+r"],
"command": "bh_remove_brackets"
},
// Toggle string escape mode for sub bracket search in strings
{
"keys": ["ctrl+alt+super+x"],
"command": "bh_toggle_string_escape_mode"
},
// Jump to matching bracket
{
"keys": ["ctrl+m"],
"command": "bh_key",
"args": {
"plugin": {
"args": {"select": "right", "alternate": true},
"command": "bh_modules.bracketselect"
},
"lines": true,
"no_outside_adj": null
}
},
// Select text between brackets
{
"no_outside_adj": null,
"keys": ["ctrl+alt+super+s"],
"command": "bh_key",
"args":
{
"lines" : true,
"plugin":
{
"command": "bh_modules.bracketselect"
}
}
},
// Select text including brackets
{
"keys": ["ctrl+alt+super+d"],
"command": "bh_key",
"args":
{
"no_outside_adj": null,
"lines" : true,
"plugin":
{
"command": "bh_modules.bracketselect",
"args": {"always_include_brackets": true}
}
}
},
// Select tag name of HTML/XML tag (both opening name and closing)
{
"keys": ["ctrl+alt+super+t"],
"command": "bh_key",
"args":
{
"plugin":
{
"type": ["cfml", "html", "angle"],
"command": "bh_modules.tagnameselect"
}
}
},
// Select the attribute to the right of the cursor (will wrap inside the tag)
{
"keys": ["ctrl+alt+super+right"],
"command": "bh_key",
"args":
{
"plugin":
{
"type": ["cfml", "html", "angle"],
"command": "bh_modules.tagattrselect",
"args": {"direction": "right"}
}
}
},
// Select the attribute to the left of the cursor (will wrap inside the tag)
{
"keys": ["ctrl+alt+super+left"],
"command": "bh_key",
"args":
{
"plugin":
{
"type": ["cfml", "html", "angle"],
"command": "bh_modules.tagattrselect",
"args": {"direction": "left"}
}
}
},
// Convert single quote string to double quoted string and vice versa
// Will handle escaping or unescaping quotes within the string
{
"keys": ["ctrl+alt+super+q"],
"command": "bh_key",
"args":
{
"lines" : true,
"plugin":
{
"type": ["single_quote", "double_quote", "py_single_quote", "py_double_quote"],
"command": "bh_modules.swapquotes"
}
}
},
// Fold contents between brackets
{
"keys": ["ctrl+alt+super+["],
"command": "bh_key",
"args":
{
"plugin": {
"command" : "bh_modules.foldbracket"
}
}
},
// Swap brackets with another type
{
"keys": ["ctrl+alt+super+e"],
"command": "swap_brackets"
},
// Surround selection with brackets from quick panel
{
"keys": ["ctrl+alt+super+w"],
"command": "wrap_brackets"
},
// Toggle high visibility mode
{
"keys": ["ctrl+alt+super+v"],
"command": "bh_toggle_high_visibility"
}
]