-
Notifications
You must be signed in to change notification settings - Fork 10
/
Default.sublime-keymap
36 lines (36 loc) · 1.87 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
[
{ "keys": ["'"], "command": "toggle_quotes", "args": { "key": "'" }, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "text", "operator" : "regex_contains", "operand": "^(\".*\"|`.*`)$", "match_all": true}
]
},
{ "keys": ["\""], "command": "toggle_quotes", "args": { "key": "\"" }, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "text", "operator" : "regex_contains", "operand": "^('.*'|`.*`)$", "match_all": true}
]
},
{ "keys": ["`"], "command": "toggle_quotes", "args": { "key": "`" }, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "text", "operator" : "regex_contains", "operand": "^(\".*\"|'.*')$", "match_all": true}
]
},
{ "keys": ["ctrl+'"], "command": "toggle_quotes", "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["ctrl+'"], "command": "toggle_quotes", "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true, "match_all": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "string", "match_all": true}
]
}
]