-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathDefault.sublime-keymap
44 lines (44 loc) · 1.62 KB
/
Default.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
[
{
// Wrap selection as a variable substitution.
// Keeps the variable selected so that you can also press double-quotes
// (") and it will wrap it in double quotes.
"keys": ["$"], "command": "insert_snippet",
"args":
{
"contents": "${1:\\${$SELECTION\\}}"
},
"context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "source.cmake meta.function-call.arguments" }
]
},
{
// Wrap selection as a generator expression with an argument selection.
"keys": ["ctrl+shift+,"], "command": "insert_snippet",
"args":
{
"contents": "\\$<$SELECTION:${1:argument}>"
},
"context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "source.cmake meta.function-call.arguments" }
]
},
{
// Wrap selection as a generator expression without an argument.
"keys": ["ctrl+shift+."], "command": "insert_snippet",
"args":
{
"contents": "\\$<$SELECTION>"
},
"context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "source.cmake meta.function-call.arguments" }
]
}
]