-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathExample.sublime-keymap
36 lines (36 loc) · 1.68 KB
/
Example.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
[
// Add alt+up/down for SmartCursor
{ "keys": ["alt+up"], "command": "smart_cursor", "args": {"cmd": "move", "by": "lines", "forward": false}, "context":
[
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operator": "equal", "operand": false },
{ "key": "panel_has_focus", "operator": "equal", "operand": false }
]
},
{ "keys": ["alt+down"], "command": "smart_cursor", "args": {"cmd": "move", "by": "lines", "forward": true}, "context":
[
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operator": "equal", "operand": false },
{ "key": "panel_has_focus", "operator": "equal", "operand": false }
]
},
// Replace standard up/down with SmartCursor
{ "keys": ["up"], "command": "smart_cursor", "args": {"cmd": "move", "by": "lines", "forward": false}, "context":
[
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operator": "equal", "operand": false },
{ "key": "panel_has_focus", "operator": "equal", "operand": false }
]
},
{ "keys": ["down"], "command": "smart_cursor", "args": {"cmd": "move", "by": "lines", "forward": true}, "context":
[
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operator": "equal", "operand": false },
{ "key": "panel_has_focus", "operator": "equal", "operand": false }
]
}
]