|
1 | 1 | [ |
2 | | - { "keys": ["up"], "command": "repl_view_previous", |
| 2 | + { "keys": ["up"], "command": "hol_repl_view_previous", |
3 | 3 | "context": |
4 | 4 | [ |
5 | 5 | { "key": "setting.history_arrows", "operator": "equal", "operand": true }, |
6 | 6 | { "key": "setting.repl", "operator": "equal", "operand": true }, |
7 | 7 | { "key": "auto_complete_visible", "operator": "equal", "operand": false } |
8 | 8 | ] |
9 | 9 | }, |
10 | | - { "keys": ["ctrl+p"], "command": "repl_view_previous", |
| 10 | + { "keys": ["ctrl+p"], "command": "hol_repl_view_previous", |
11 | 11 | "context": |
12 | 12 | [ |
13 | 13 | { "key": "setting.history_arrows", "operator": "equal", "operand": false }, |
14 | 14 | { "key": "setting.repl", "operator": "equal", "operand": true } |
15 | 15 | ] |
16 | 16 | }, |
17 | | - { "keys": ["down"], "command": "repl_view_next", |
| 17 | + { "keys": ["down"], "command": "hol_repl_view_next", |
18 | 18 | "context": |
19 | 19 | [ |
20 | 20 | { "key": "setting.history_arrows", "operator": "equal", "operand": true }, |
21 | 21 | { "key": "setting.repl", "operator": "equal", "operand": true }, |
22 | 22 | { "key": "auto_complete_visible", "operator": "equal", "operand": false } |
23 | 23 | ] |
24 | 24 | }, |
25 | | - { "keys": ["ctrl+n"], "command": "repl_view_next", |
| 25 | + { "keys": ["ctrl+n"], "command": "hol_repl_view_next", |
26 | 26 | "context": |
27 | 27 | [ |
28 | 28 | { "key": "setting.history_arrows", "operator": "equal", "operand": false }, |
29 | 29 | { "key": "setting.repl", "operator": "equal", "operand": true } |
30 | 30 | ] |
31 | 31 | }, |
32 | | - { "keys": ["enter"], "command": "repl_enter", "args": {}, |
| 32 | + { "keys": ["enter"], "command": "hol_repl_enter", "args": {}, |
33 | 33 | "context": |
34 | 34 | [ |
35 | 35 | { "key": "setting.repl", "operator": "equal", "operand": true }, |
36 | 36 | { "key": "auto_complete_visible", "operator": "equal", "operand": false } |
37 | 37 | ] |
38 | 38 | }, |
39 | | - { "keys": ["enter"], "command": "repl_enter", "args": {}, |
| 39 | + { "keys": ["enter"], "command": "hol_repl_enter", "args": {}, |
40 | 40 | "context": |
41 | 41 | [ |
42 | 42 | { "key": "setting.repl", "operator": "equal", "operand": true }, |
43 | 43 | { "key": "setting.auto_complete_commit_on_tab", "operand": true } |
44 | 44 | ] |
45 | 45 | }, |
46 | | - { "keys": ["escape"], "command": "repl_escape", "args": {}, |
| 46 | + { "keys": ["escape"], "command": "hol_repl_escape", "args": {}, |
47 | 47 | "context": |
48 | 48 | [ |
49 | 49 | { "key": "auto_complete_visible", "operator": "equal", "operand": false }, |
50 | 50 | { "key": "setting.repl", "operator": "equal", "operand": true } |
51 | 51 | ] |
52 | 52 | }, |
53 | | - { "keys": ["backspace"], "command": "repl_backspace", "args": {}, |
| 53 | + { "keys": ["backspace"], "command": "hol_repl_backspace", "args": {}, |
54 | 54 | "context": |
55 | 55 | [ |
56 | 56 | { "key": "setting.repl", "operator": "equal", "operand": true }, |
57 | 57 | { "key": "setting.repl_sublime2", "operator": "equal", "operand": true }, |
58 | 58 | { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true } |
59 | 59 | ] |
60 | 60 | }, |
61 | | - { "keys": ["ctrl+backspace"], "command": "repl_ctrl_backspace", "args": {}, |
| 61 | + { "keys": ["ctrl+backspace"], "command": "hol_repl_ctrl_backspace", "args": {}, |
62 | 62 | "context": |
63 | 63 | [ |
64 | 64 | { "key": "setting.repl", "operator": "equal", "operand": true }, |
65 | 65 | { "key": "setting.repl_sublime2", "operator": "equal", "operand": true }, |
66 | 66 | { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true } |
67 | 67 | ] |
68 | 68 | }, |
69 | | - { "keys": ["super+backspace"], "command": "repl_super_backspace", "args": {}, |
| 69 | + { "keys": ["super+backspace"], "command": "hol_repl_super_backspace", "args": {}, |
70 | 70 | "context": |
71 | 71 | [ |
72 | 72 | { "key": "setting.repl", "operator": "equal", "operand": true }, |
73 | 73 | { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true } |
74 | 74 | ] |
75 | 75 | }, |
76 | | - { "keys": ["alt+backspace"], "command": "repl_ctrl_backspace", "args": {}, |
| 76 | + { "keys": ["alt+backspace"], "command": "hol_repl_ctrl_backspace", "args": {}, |
77 | 77 | "context": |
78 | 78 | [ |
79 | 79 | { "key": "setting.repl", "operator": "equal", "operand": true }, |
80 | 80 | { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true } |
81 | 81 | ] |
82 | 82 | }, |
83 | | - { "keys": ["left"], "command": "repl_left", "args": {}, |
| 83 | + { "keys": ["left"], "command": "hol_repl_left", "args": {}, |
84 | 84 | "context": |
85 | 85 | [ |
86 | 86 | { "key": "setting.repl", "operator": "equal", "operand": true } |
87 | 87 | ] |
88 | 88 | }, |
89 | | - { "keys": ["home"], "command": "repl_home", "args": {}, |
| 89 | + { "keys": ["home"], "command": "hol_repl_home", "args": {}, |
90 | 90 | "context": |
91 | 91 | [ |
92 | 92 | { "key": "setting.repl", "operator": "equal", "operand": true } |
93 | 93 | ] |
94 | 94 | }, |
95 | | - { "keys": ["ctrl+a"], "command": "repl_home", "args": {}, |
| 95 | + { "keys": ["ctrl+a"], "command": "hol_repl_home", "args": {}, |
96 | 96 | "context": |
97 | 97 | [ |
98 | 98 | { "key": "setting.repl", "operator": "equal", "operand": true } |
99 | 99 | ] |
100 | 100 | }, |
101 | | - { "keys": ["shift+left"], "command": "repl_shift_left", "args": {}, |
| 101 | + { "keys": ["shift+left"], "command": "hol_repl_shift_left", "args": {}, |
102 | 102 | "context": |
103 | 103 | [ |
104 | 104 | { "key": "setting.repl", "operator": "equal", "operand": true } |
105 | 105 | ] |
106 | 106 | }, |
107 | | - { "keys": ["shift+home"], "command": "repl_shift_home", "args": {}, |
| 107 | + { "keys": ["shift+home"], "command": "hol_repl_shift_home", "args": {}, |
108 | 108 | "context": |
109 | 109 | [ |
110 | 110 | { "key": "setting.repl", "operator": "equal", "operand": true } |
111 | 111 | ] |
112 | 112 | }, |
113 | | - { "keys": ["ctrl+l"], "command": "repl_clear", |
| 113 | + { "keys": ["ctrl+l"], "command": "hol_repl_clear", |
114 | 114 | "context": |
115 | 115 | [ |
116 | 116 | { "key": "setting.repl", "operator": "equal", "operand": true } |
117 | 117 | ] |
118 | 118 | }, |
119 | | - { "keys": ["shift+ctrl+c"], "command": "subprocess_repl_send_signal", "args": {"signal": 2}, // sigint |
| 119 | + { "keys": ["shift+ctrl+c"], "command": "hol_subprocess_repl_send_signal", "args": {"signal": 2}, // sigint |
120 | 120 | "context": |
121 | 121 | [ |
122 | 122 | { "key": "setting.repl", "operator": "equal", "operand": true } |
123 | 123 | ] |
124 | 124 | }, |
| 125 | + { "keys": ["ctrl+,", "q", "h"], "command": "hol_repl_transfer_current", "args": {"scope": "selection", "prepend":"HOL_Interactive.toggle_quietdec();\n", "append":"\nHOL_Interactive.toggle_quietdec();"}}, |
| 126 | + { "keys": ["ctrl+,", "q", "l"], "command": "hol_repl_transfer_current", "args": {"scope": "lines", "prepend":"HOL_Interactive.toggle_quietdec();\n", "append":"\nHOL_Interactive.toggle_quietdec();"}}, |
| 127 | + |
| 128 | + { "keys": ["ctrl+,", "h"], "command": "hol_repl_transfer_current", "args": {"scope": "selection"}}, |
| 129 | + { "keys": ["ctrl+,", "g"], "command": "hol_repl_transfer_current", "args": {"scope": "selection", "prepend": "g(", "append":");"}}, |
| 130 | + { "keys": ["ctrl+,", "s", "g"], "command": "hol_repl_transfer_current", "args": {"scope": "selection", "prepend": "e((fn q => BasicProvers.byA(q,ALL_TAC)) ", "append":");"}}, |
| 131 | + { "keys": ["ctrl+,", "s", "b"], "command": "hol_repl_transfer_current", "args": {"scope": "selection", "prepend": "e(Tactical.Q_TAC Tactic.SUFF_TAC ", "append":");"}}, |
| 132 | + { "keys": ["ctrl+,", "e"], "command": "hol_repl_transfer_current", "args": {"scope": "selection", "prepend": "e(", "append":");"}}, |
| 133 | + |
| 134 | + { "keys": ["ctrl+,", "l", "h"], "command": "hol_repl_transfer_current", "args": {"scope": "lines"}}, |
| 135 | + { "keys": ["ctrl+,", "l", "g"], "command": "hol_repl_transfer_current", "args": {"scope": "lines", "prepend": "g(", "append":");"}}, |
| 136 | + { "keys": ["ctrl+,", "l", "s", "g"], "command": "hol_repl_transfer_current", "args": {"scope": "lines", "prepend": "e((fn q => BasicProvers.byA(q,ALL_TAC)) ", "append":");"}}, |
| 137 | + { "keys": ["ctrl+,", "l", "s", "b"], "command": "hol_repl_transfer_current", "args": {"scope": "lines", "prepend": "e(Tactical.Q_TAC Tactic.SUFF_TAC ", "append":");"}}, |
| 138 | + { "keys": ["ctrl+,", "l", "e"], "command": "hol_repl_transfer_current", "args": {"scope": "lines", "prepend": "e(", "append":");"}}, |
| 139 | + |
| 140 | + { "keys": ["ctrl+,", "t"], "command": "hol_repl_transfer_current", "args": {"scope": "file"}}, |
| 141 | + |
| 142 | + { "keys": ["ctrl+,", "p"], "command": "hol_repl_transfer_current", "args": {"scope": "empty", "prepend": "p();"}}, |
| 143 | + { "keys": ["ctrl+,", "b"], "command": "hol_repl_transfer_current", "args": {"scope": "empty", "prepend": "b();"}}, |
| 144 | + { "keys": ["ctrl+,", "r"], "command": "hol_repl_transfer_current", "args": {"scope": "empty", "prepend": "restart();"}}, |
| 145 | + |
| 146 | + { "keys": ["ctrl+,", "f", "y"], "command": "hol_repl_transfer_current", "args": {"scope": "empty", "prepend": "show_types := (not (!show_types));"}}, |
| 147 | + { "keys": ["ctrl+,", "f", "a"], "command": "hol_repl_transfer_current", "args": {"scope": "empty", "prepend": "show_assums := (not (!show_assums));"}}, |
| 148 | + { "keys": ["ctrl+,", "f", "t"], "command": "hol_repl_transfer_current", "args": {"scope": "empty", "prepend": "set_trace \"Goalstack.print_goal_at_top\" (1 - current_trace \"Goalstack.print_goal_at_top\");"}}, |
| 149 | + { "keys": ["ctrl+,", "f", "f"], "command": "hol_repl_transfer_current", "args": {"scope": "empty", "prepend": "set_trace \"Goalstack.print_goal_fvs\" (1 - current_trace \"Goalstack.print_goal_fvs\");"}} |
125 | 150 |
|
126 | 151 | ] |
0 commit comments