-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDefault (OSX).sublime-keymap
More file actions
54 lines (54 loc) · 2.58 KB
/
Default (OSX).sublime-keymap
File metadata and controls
54 lines (54 loc) · 2.58 KB
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
[
// // Bunch Key Bindings
// Start file lists
// { "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n- "}, "context":
// [
// { "key": "selector", "operator": "equal", "operand": "entity.name.function.app.bunch", "match_all": true },
// { "key": "preceding_text", "operator": "regex_contains", "operand": "^(\\s*(!!)?[@%]?)\\S.*", "match_all": true },
// { "key": "auto_complete_visible", "operator": "equal", "operand": false }
// ]
// },
// // Extend file lists
// { "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n- "}, "context":
// [
// { "key": "selector", "operator": "equal", "operand": "source.bunch", "match_all": true },
// { "key": "preceding_text", "operator": "regex_contains", "operand": "^(\\s*(-)\\s+)\\S.*", "match_all": true },
// { "key": "auto_complete_visible", "operator": "equal", "operand": false }
// ]
// },
// // Remove empty file item
// { "keys": ["enter"], "command": "run_macro_file", "args": {"file": "Packages/Bunch/macros/Remove Empty File Item.sublime-macro"}, "context":
// [
// { "key": "selector", "operator": "equal", "operand": "source.bunch", "match_all": true },
// { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*-\\s*$", "match_all": true },
// { "key": "following_text", "operator": "regex_contains", "operand": "^\\s*$", "match_all": true },
// { "key": "auto_complete_visible", "operator": "equal", "operand": false }
// ]
// },
// // Auto complete commands when entering parens
// {
// "keys": ["("],
// "command": "chained_actions",
// "args": {
// "actions":["insert_snippet","auto_complete"],
// "args":[{"contents": "(${0:$SELECTION})"},{}]
// },
// "context": [
// {"key": "selector", "operator": "equal", "operand": "text.bunch"},
// {"key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*$", "match_all": true }
// ]
// },
// // Auto complete fragment ids from embedded snippets
// {
// "keys": ["#"],
// "command": "chained_actions",
// "args": {
// "actions":["insert_snippet","auto_complete"],
// "args":[{"contents": "#${0:$SELECTION}"},{}]
// },
// "context": [
// {"key": "selector", "operator": "equal", "operand": "entity.name.file.bunch"},
// {"key": "preceding_text", "operator": "regex_contains", "operand": "<\\S+", "match_all": true }
// ]
// }
]