forked from grassator/ExtremeCSS.tmbundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefault.sublime-keymap
66 lines (61 loc) · 2.91 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
[
{
"keys": ["ctrl+shift+d"],
"command": "run_macro_file",
"args": {"file": "Packages/ExtremeCSS/Duplicate Selector.sublime-macro"},
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.css" },
{ "key": "selector", "operator": "equal", "operand": "meta.property-list.css" }
]
},
// This customization for auto-pairing is necessary to make
// (s)css/stylus color snippets work like expected
{ "keys": ["("], "command": "insert", "args": {"characters": "("}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "has_next_field", "operator": "equal", "operand": true },
{ "key": "selector", "operator": "equal", "operand": "source.css" }
]
},
{ "keys": ["backspace"], "command": "left_delete", "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\($", "match_all": true },
{ "key": "has_next_field", "operator": "equal", "operand": true },
{ "key": "selector", "operator": "equal", "operand": "source.css" }
]
},
{ "keys": ["("], "command": "insert", "args": {"characters": "("}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "has_next_field", "operator": "equal", "operand": true },
{ "key": "selector", "operator": "equal", "operand": "source.scss" }
]
},
{ "keys": ["backspace"], "command": "left_delete", "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\($", "match_all": true },
{ "key": "has_next_field", "operator": "equal", "operand": true },
{ "key": "selector", "operator": "equal", "operand": "source.scss" }
]
},
{ "keys": ["("], "command": "insert", "args": {"characters": "("}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "has_next_field", "operator": "equal", "operand": true },
{ "key": "selector", "operator": "equal", "operand": "source.stylus" }
]
},
{ "keys": ["backspace"], "command": "left_delete", "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\($", "match_all": true },
{ "key": "has_next_field", "operator": "equal", "operand": true },
{ "key": "selector", "operator": "equal", "operand": "source.stylus" }
]
}
]