-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDefault.sublime-keymap
90 lines (90 loc) · 1.79 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
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
[
{
"keys": ["enter"],
"command": "insert_snippet",
"args": {
"contents": "\n\t$0\n"
},
"context": [
{
"key": "setting.auto_indent",
"operator": "equal",
"operand": true
},
{
"key": "auto_complete_visible",
"operator": "equal",
"operand": false
},
{
"key": "selection_empty",
"operator": "equal",
"operand": true,
"match_all": true,
},
{
"key": "preceding_text",
"operator": "regex_contains",
"operand": "[([`]$"
},
{
"key": "following_text",
"operator": "regex_contains",
"operand": "^[)\\]`]",
},
{
"key": "selector",
"operator": "equal",
"operand": "source.es & (meta.brace.square.js | meta.brace.round.js | string.interpolated.es)",
"match_all": true,
}
]
},
{
"keys": ["primary+'"],
"command": "toggle_nested_syntax",
"args": {},
"context": [
{
"key": "auto_complete_visible",
"operator": "equal",
"operand": false
},
{
"key": "selector",
"operator": "equal",
"operand": "source.es & (string.interpolated.es | meta.interpolation.syntax)",
"match_all": true,
},
{
"key": "num_selections",
"operator": "equal",
"operand": 1
},
]
},
{
"keys": ["primary+'"],
"command": "insert_nested_syntax",
"args": {},
"context": [
{
"key": "auto_complete_visible",
"operator": "equal",
"operand": false
},
{
"key": "selector",
"operator": "equal",
"operand": "source.es & (meta.whitespace.es | punctuation.definition.arguments.end.es | punctuation.definition.array.end.es | invalid.illegal.token.es) - string.interpolated.es - meta.interpolation.syntax",
"match_all": true,
},
{
"key": "selection_empty",
"operator": "equal",
"operand": true,
"match_all": true,
}
]
}
]