|
10 | 10 | {"key": "setting.is_widget", "operator": "equal", "operand": false} |
11 | 11 | ] |
12 | 12 | }, |
13 | | - { "keys": ["super+alt+j"], "command": "multi_find_all" } |
| 13 | + { "keys": ["super+alt+j"], "command": "multi_find_all" }, |
| 14 | + { "keys": ["super+alt+d"], "command": "selection_fields", "args": {"mode": "smart"} }, |
| 15 | + { "keys": ["escape"], "command": "selection_fields", |
| 16 | + "args": {"mode": "pop"}, |
| 17 | + "context": |
| 18 | + [ |
| 19 | + { "key": "is_selection_field" }, |
| 20 | + { "key": "selection_fields_escape_enabled" }, |
| 21 | + // set the default precedence to be less than snippet fields |
| 22 | + { "key": "has_next_field", "operator": "equal", "operand": false }, |
| 23 | + { "key": "has_prev_field", "operator": "equal", "operand": false }, |
| 24 | + { "key": "panel_visible", "operator": "equal", "operand": false }, |
| 25 | + { "key": "overlay_visible", "operator": "equal", "operand": false }, |
| 26 | + // usually we would use popup_visible, but this is ST3 only |
| 27 | + { "key": "meu_popup_visible_proxy", "operator": "equal", "operand": false }, |
| 28 | + { "key": "auto_complete_visible", "operator": "equal", "operand": false } |
| 29 | + ] |
| 30 | + }, |
| 31 | + { "keys": ["shift+escape"], "command": "selection_fields", |
| 32 | + "args": {"mode": "remove"}, |
| 33 | + "context": |
| 34 | + [ |
| 35 | + { "key": "is_selection_field" }, |
| 36 | + { "key": "selection_fields_escape_enabled" } |
| 37 | + ] |
| 38 | + }, |
| 39 | + { "keys": ["tab"], "command": "selection_fields", |
| 40 | + "args": {"mode": "smart"}, |
| 41 | + "context": |
| 42 | + [ |
| 43 | + { "key": "is_selection_field" }, |
| 44 | + { "key": "selection_fields_tab_enabled" }, |
| 45 | + // set the default precedence to be less than snippet fields |
| 46 | + { "key": "has_next_field", "operator": "equal", "operand": false }, |
| 47 | + { "key": "auto_complete_visible", "operator": "equal", "operand": false } |
| 48 | + ] |
| 49 | + }, |
| 50 | + { "keys": ["shift+tab"], "command": "selection_fields", |
| 51 | + "args": {"mode": "cycle", "jump_forward": false }, |
| 52 | + "context": |
| 53 | + [ |
| 54 | + { "key": "is_selection_field" }, |
| 55 | + { "key": "selection_fields_tab_enabled" }, |
| 56 | + // set the default precedence to be less than snippet fields |
| 57 | + { "key": "has_prev_field", "operator": "equal", "operand": false } |
| 58 | + ] |
| 59 | + } |
14 | 60 | ] |
0 commit comments