-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Default (OSX).sublime-keymap
225 lines (206 loc) · 6.01 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
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
215
216
217
218
219
220
221
222
223
224
225
[
// This is a sample keymap for all available Emmet actions like
// Increment/Decrement number, Balance, Select Item etc.
// Copy and uncomment actions you want to use into your keybindings file on the right.
// Read more about Sublime Text key binding: https://www.sublimetext.com/docs/3/key_bindings.html
// Expand abbreviation anywhere
// {
// "keys": ["ctrl+e"],
// "command": "emmet_expand_abbreviation"
// },
// Enter abbreviation mode: explicitly enter abbreviation anywhere
// with interactive preview
// {
// "keys": ["ctrl+."],
// "command": "emmet_enter_abbreviation"
// },
// Wrap with Abbreviation
// {
// "keys": ["ctrl+w"],
// "command": "emmet_wrap_with_abbreviation",
// "context": [{"key": "setting.is_widget", "operand": false }]
// },
// Balance Outward
// {
// "keys": ["ctrl+d"],
// "command": "emmet_balance",
// "args": { "direction": "outward" }
// },
// Balance Inward
// {
// "keys": ["ctrl+j"],
// "command": "emmet_balance",
// "args": { "direction": "inward" }
// },
// Go to Matching Tag/Tag Pair
// {
// "keys": ["ctrl+shift+t"],
// "command": "emmet_go_to_tag_pair"
// },
// Remove Tag
// {
// "keys": ["super+'"],
// "command": "emmet_remove_tag"
// },
// Split/Join Tag
// {
// "keys": ["shift+super+'"],
// "command": "emmet_split_join_tag"
// },
// Go to Next Edit Point
// {
// "keys": ["ctrl+alt+right"],
// "command": "emmet_go_to_edit_point"
// },
// Go to Previous Edit Point
// {
// "keys": ["ctrl+alt+left"],
// "command": "emmet_go_to_edit_point",
// "args": { "previous": true }
// },
// Select Next Item
// {
// "keys": ["shift+super+."],
// "command": "emmet_select_item"
// },
// Select Previous Item
// {
// "keys": ["shift+super+,"],
// "command": "emmet_select_item",
// "args": { "previous": true }
// },
// Evaluate Math Expression
// {
// "keys": ["shift+super+y"],
// "command": "emmet_evaluate_math"
// },
// Increment/Decrement Number
// {
// "keys": ["ctrl+up"],
// "command": "emmet_increment_number",
// "args": { "delta": 1 }
// },
// {
// "keys": ["ctrl+down"],
// "command": "emmet_increment_number",
// "args": { "delta": -1 }
// },
// {
// "keys": ["alt+up"],
// "command": "emmet_increment_number",
// "args": { "delta": 0.1 }
// },
// {
// "keys": ["alt+down"],
// "command": "emmet_increment_number",
// "args": { "delta": -0.1 }
// },
// {
// "keys": ["shift+alt+up"],
// "command": "emmet_increment_number",
// "args": { "delta": 10 }
// },
// {
// "keys": ["shift+alt+down"],
// "command": "emmet_increment_number",
// "args": { "delta": -10 }
// },
// Update Image Size
// {
// "keys": ["shift+ctrl+i"],
// "command": "emmet_update_image_size"
// },
// Convert data:URL
// {
// "keys": ["shift+ctrl+d"],
// "command": "emmet_convert_data_url"
// }
// Rename Tag
// {
// "keys": ["super+shift+k"],
// "command": "emmet_rename_tag"
// },
// Tab key handler for single cursor
{
"keys": ["tab"],
"command": "emmet_expand_abbreviation",
"args": { "tab": true },
"context": [
{ "key": "emmet_abbreviation" },
{ "key": "emmet_tab_expand" },
{ "key": "num_selections", "operand": 1 }
]
},
// Tab key handler for multiple cursors
{
"keys": ["tab"],
"command": "emmet_expand_abbreviation",
"context": [
{ "key": "emmet_activation_scope" },
{ "key": "emmet_multicursor_tab_expand" },
{ "key": "num_selections", "operator": "not_equal", "operand": 1 }
]
},
{
"keys": ["enter"],
"command": "emmet_expand_abbreviation",
"context": [
{ "key": "has_emmet_forced_abbreviation_mark" },
{ "key": "emmet_abbreviation" }
]
},
{
"keys": ["shift+tab"],
"command": "next_field",
"context": [
{ "key": "has_next_field" },
{ "key": "emmet_abbreviation" },
{ "key": "emmet_tab_expand" }
]
},
{
"keys": ["escape"],
"command": "emmet_clear_abbreviation_marker",
"context": [
{ "key": "has_emmet_abbreviation_mark" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }
]
},
{
"keys": ["escape"],
"command": "emmet_hide_tag_preview",
"context": [
{ "key": "emmet_tag_preview" }
]
},
{
"keys": ["#"],
"args": { "attribute": "id" },
"command": "emmet_insert_attribute",
"context": [{
"operand": "text.html meta.tag -string -punctuation.definition.tag.begin.html -meta.scope.between-tag-pair.html -source -meta.tag.template.value.twig",
"operator": "equal",
"match_all": true,
"key": "selector"
}, {
"operator": "equal",
"operand": true,
"key": "emmet_auto_id_class"
}]
},
{
"keys": ["."],
"args": { "attribute": "class" },
"command": "emmet_insert_attribute",
"context": [{
"operand": "text.html meta.tag -string -punctuation.definition.tag.begin.html -meta.scope.between-tag-pair.html -source -meta.tag.template.value.twig",
"operator": "equal",
"match_all": true,
"key": "selector"
}, {
"operator": "equal",
"operand": true,
"key": "emmet_auto_id_class"
}]
}
]