about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-06 18:39:46 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-06 18:39:46 -0700
commitc112b8fadf86f908c71a63b88dcdb0d374c4eb6f (patch)
treee5c2d3e14e8f1acdcd4e792e8e9033700a63f8c7
parent73fefa7d0961d3831da6c8b2eb7b1b05e3614a69 (diff)
downloadtext.love-c112b8fadf86f908c71a63b88dcdb0d374c4eb6f.tar.gz
switch shortcuts for bifold text
I've been running out of ctrl+ shortcuts, and I just remembered my
original idea to keep ctrl+ for drawings/mouse operations and alt+ for
everything else.
-rw-r--r--commands.lua6
-rw-r--r--source_edit.lua4
2 files changed, 5 insertions, 5 deletions
diff --git a/commands.lua b/commands.lua
index 730fffc..be9c9bf 100644
--- a/commands.lua
+++ b/commands.lua
@@ -24,11 +24,11 @@ function source.draw_menu_bar()
       add_hotkey_to_menu('ctrl+l: show log browser')
     end
     if Editor_state.expanded then
-      add_hotkey_to_menu('ctrl+b: collapse debug prints')
+      add_hotkey_to_menu('alt+b: collapse debug prints')
     else
-      add_hotkey_to_menu('ctrl+b: expand debug prints')
+      add_hotkey_to_menu('alt+b: expand debug prints')
     end
-    add_hotkey_to_menu('ctrl+i: create/edit debug print')
+    add_hotkey_to_menu('alt+d: create/edit debug print')
     add_hotkey_to_menu('ctrl+f: find in file')
     add_hotkey_to_menu('alt+left alt+right: prev/next word')
   elseif Focus == 'log_browser' then
diff --git a/source_edit.lua b/source_edit.lua
index 88d5e76..a65537d 100644
--- a/source_edit.lua
+++ b/source_edit.lua
@@ -347,7 +347,7 @@ function edit.keychord_pressed(State, chord, key)
     }
     assert(State.search_text == nil)
   -- bifold text
-  elseif chord == 'C-b' then
+  elseif chord == 'M-b' then
     State.expanded = not State.expanded
     Text.redraw_all(State)
     if not State.expanded then
@@ -356,7 +356,7 @@ function edit.keychord_pressed(State, chord, key)
       end
       edit.eradicate_locations_after_the_fold(State)
     end
-  elseif chord == 'C-i' then
+  elseif chord == 'M-d' then
     if State.cursor1.posB == nil then
       local before = snapshot(State, State.cursor1.line)
       if State.lines[State.cursor1.line].dataB == nil then
19 +0200 sanitized other stuff' href='/acidbong/suckless/dwm/commit/event.c?id=c09bf8da071e05e2c1d714f0d31d41fe944bc11b'>c09bf8d ^
dc5d967 ^
c09bf8d ^
1173723 ^

77f8c07 ^
dc5d967 ^
c09bf8d ^


77f8c07 ^
c09bf8d ^





e6cbe9c ^
1173723 ^

c53980c ^
c09bf8d ^










c09bf8d ^
c53980c ^
dc5d967 ^
c09bf8d ^
1173723 ^

77f8c07 ^
c09bf8d ^

1173723 ^
c09bf8d ^
77f8c07 ^
c09bf8d ^





e6cbe9c ^
1173723 ^



8af1d97 ^



c53980c ^
c09bf8d ^






29355bd ^

b9da4b0 ^

29355bd ^

b9da4b0 ^
dc5d967 ^
b9da4b0 ^
29355bd ^
901b3ed ^


b355755 ^
901b3ed ^




29355bd ^
901b3ed ^

b01a51a ^
901b3ed ^

b01a51a ^
901b3ed ^
29355bd ^

6458d72 ^
7b5638f ^
b9da4b0 ^



0c7bcc2 ^
c53980c ^


b9da4b0 ^

dfd84f9 ^
b9da4b0 ^

0c7bcc2 ^
c53980c ^


b9da4b0 ^





439e15d ^

dc5d967 ^
439e15d ^
95e8d12 ^
439e15d ^
95e8d12 ^
439e15d ^
b9da4b0 ^
2e836ec ^
6a39a49 ^







2e836ec ^
95e8d12 ^
2e836ec ^
95e8d12 ^




















6a39a49 ^
b098c94 ^



95e8d12 ^









6a39a49 ^
95e8d12 ^
439e15d ^




439e15d ^


26e134b ^

439e15d ^




439e15d ^
dc5d967 ^
439e15d ^
7b5638f ^
439e15d ^

1d85225 ^
3399650 ^
dfd84f9 ^
da2bbd3 ^
439e15d ^


439e15d ^

83d2390 ^
dc5d967 ^
439e15d ^

59b4a5e ^
c0705ee ^
dba2306 ^
c0705ee ^
439e15d ^



adaa28a ^

0464e42 ^
adaa28a ^

dc5d967 ^
adaa28a ^


3af6434 ^

adaa28a ^















439e15d ^

439e15d ^
dc5d967 ^
439e15d ^









0053620 ^

439e15d ^




439e15d ^
dc5d967 ^

439e15d ^



3399650 ^
c09bf8d ^
dba2306 ^
b1701ad ^

3399650 ^


66da153 ^
901b3ed ^
66da153 ^
3399650 ^

c0705ee ^
3399650 ^

c09bf8d ^
c0705ee ^

3399650 ^

439e15d ^




439e15d ^


0053620 ^

439e15d ^
adaa28a ^
bf35794 ^
adaa28a ^
















0464e42 ^
adaa28a ^




3af6434 ^
adaa28a ^


3af6434 ^





a73a882 ^

3af6434 ^

a73a882 ^

adaa28a ^

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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379