forked from thatsIch/sublime-rainmeter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Default (Windows).sublime-keymap
57 lines (54 loc) · 2.25 KB
/
Default (Windows).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
[
{
"keys": ["ctrl+shift+c"],"command": "rainmeter_color_pick"
},
{ "keys": ["ctrl+alt+i"], "command": "rainmeter_indent",
"context":
[
{"key": "selector", "operator": "equal", "operand": "source.rainmeter"}
]
},
{ "keys": ["ctrl+alt+o"], "command": "rainmeter_open_paths",
"context":
[
{"key": "selector", "operator": "equal", "operand": "source.rainmeter"}
]
},
//continue comment lines
{
"keys": ["enter"], "command": "insert", "args":{"characters": "\n;"},
"context":
[
{"key": "selector", "operator": "equal", "operand": "source.rainmeter"},
{"key": "auto_complete_visible", "operator": "equal", "operand": false},
{"key": "setting.rainmeter_continue_comments", "operator": "equal", "operand": true},
{"key": "selection_empty", "operator": "equal", "operand": true, "match_all": true},
{"key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*;[^;]?", "match_all": true}
]
},
//continue folding comment lines
{
"keys": ["enter"], "command": "insert", "args":{"characters": "\n;;"},
"context":
[
{"key": "selector", "operator": "equal", "operand": "source.rainmeter"},
{"key": "auto_complete_visible", "operator": "equal", "operand": false},
{"key": "setting.rainmeter_continue_comments", "operator": "equal", "operand": true},
{"key": "selection_empty", "operator": "equal", "operand": true, "match_all": true},
{"key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*;;", "match_all": true}
]
},
//indent line after section header
{
"keys": ["enter"], "command": "insert", "args":{"characters": "\n\t"},
"context":
[
{"key": "selector", "operator": "equal", "operand": "source.rainmeter"},
{"key": "auto_complete_visible", "operator": "equal", "operand": false},
{"key": "setting.auto_indent", "operator": "equal", "operand": true},
{"key": "setting.smart_indent", "operator": "equal", "operand": true},
{"key": "selection_empty", "operator": "equal", "operand": true, "match_all": true},
{"key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*\\[\\s*[^\\[\\]\\s]*\\s*\\]\\s*$", "match_all": true}
]
}
]