|
2 | 2 | { "keys": ["ctrl+shift+a"], "command": "table_editor_align", "context":
|
3 | 3 | [
|
4 | 4 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
5 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 5 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
6 | 6 | { "key": "following_text", "operator": "regex_contains", "operand": "$", "match_all": true }
|
7 | 7 | ]
|
8 | 8 | },
|
9 | 9 | { "keys": ["tab"], "command": "table_editor_next_field", "context":
|
10 | 10 | [
|
11 | 11 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
12 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 12 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
13 | 13 | { "key": "following_text", "operator": "regex_contains", "operand": "$", "match_all": true }
|
14 | 14 | ]
|
15 | 15 | },
|
16 | 16 | { "keys": ["shift+tab"], "command": "table_editor_previous_field", "context":
|
17 | 17 | [
|
18 | 18 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
19 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 19 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
20 | 20 | { "key": "following_text", "operator": "regex_contains", "operand": "$", "match_all": true }
|
21 | 21 | ]
|
22 | 22 | },
|
23 | 23 | { "keys": ["enter"], "command": "table_editor_next_row", "context":
|
24 | 24 | [
|
25 | 25 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
26 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 26 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
27 | 27 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
28 | 28 | ]
|
29 | 29 | },
|
30 | 30 | { "keys": ["alt+enter"], "command": "table_editor_split_column_down", "context":
|
31 | 31 | [
|
32 | 32 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
33 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 33 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
34 | 34 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
35 | 35 | ]
|
36 | 36 | },
|
37 | 37 | { "keys": ["ctrl+j"], "command": "table_editor_join_lines", "context":
|
38 | 38 | [
|
39 | 39 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
40 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 40 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
41 | 41 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
42 | 42 | ]
|
43 | 43 | },
|
44 | 44 | { "keys": ["alt+right"], "command": "table_editor_move_column_right", "context":
|
45 | 45 | [
|
46 | 46 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
47 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 47 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
48 | 48 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
49 | 49 | ]
|
50 | 50 | },
|
51 | 51 | { "keys": ["alt+left"], "command": "table_editor_move_column_left", "context":
|
52 | 52 | [
|
53 | 53 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
54 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 54 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
55 | 55 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
56 | 56 | ]
|
57 | 57 | },
|
58 | 58 | { "keys": ["alt+shift+left"], "command": "table_editor_delete_column", "context":
|
59 | 59 | [
|
60 | 60 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
61 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 61 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
62 | 62 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
63 | 63 | ]
|
64 | 64 | },
|
65 | 65 | { "keys": ["alt+shift+right"], "command": "table_editor_insert_column", "context":
|
66 | 66 | [
|
67 | 67 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
68 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 68 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
69 | 69 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
70 | 70 | ]
|
71 | 71 | },
|
72 | 72 | { "keys": ["alt+shift+up"], "command": "table_editor_kill_row", "context":
|
73 | 73 | [
|
74 | 74 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
75 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 75 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
76 | 76 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
77 | 77 | ]
|
78 | 78 | },
|
79 | 79 | { "keys": ["alt+shift+down"], "command": "table_editor_insert_row", "context":
|
80 | 80 | [
|
81 | 81 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
82 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 82 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
83 | 83 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
84 | 84 | ]
|
85 | 85 | },
|
86 | 86 | { "keys": ["alt+up"], "command": "table_editor_move_row_up", "context":
|
87 | 87 | [
|
88 | 88 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
89 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 89 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
90 | 90 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
91 | 91 | ]
|
92 | 92 | },
|
93 | 93 | { "keys": ["alt+down"], "command": "table_editor_move_row_down", "context":
|
94 | 94 | [
|
95 | 95 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
96 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 96 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
97 | 97 | { "key": "following_text", "operator": "regex_contains", "operand": "[\\|\\+]", "match_all": true }
|
98 | 98 | ]
|
99 | 99 | },
|
100 | 100 | { "keys": ["ctrl+k","-"], "command": "table_editor_insert_single_hline", "context":
|
101 | 101 | [
|
102 | 102 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
103 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 103 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
104 | 104 | { "key": "following_text", "operator": "regex_contains", "operand": "$", "match_all": true }
|
105 | 105 | ]
|
106 | 106 | },
|
107 | 107 | { "keys": ["ctrl+k","="], "command": "table_editor_insert_double_hline", "context":
|
108 | 108 | [
|
109 | 109 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
110 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 110 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
111 | 111 | { "key": "following_text", "operator": "regex_contains", "operand": "$", "match_all": true }
|
112 | 112 | ]
|
113 | 113 | },
|
114 | 114 | { "keys": ["ctrl+k","enter"], "command": "table_editor_hline_and_move", "context":
|
115 | 115 | [
|
116 | 116 | { "key": "setting.enable_table_editor", "operator": "equal", "operand": true, "match_all": true },
|
117 |
| - { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*[\\|\\+]", "match_all": true }, |
| 117 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\||\\+(---|===))", "match_all": true }, |
118 | 118 | { "key": "following_text", "operator": "regex_contains", "operand": "$", "match_all": true }
|
119 | 119 | ]
|
120 | 120 | },
|
|
0 commit comments