about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* zet.tlv: refine the initial UX some moreKartik K. Agaram2022-02-101-0/+47
| | | | | | | | | | | | | | | | | | | | Conundrum: I want the app to provide some sample data for people to interact with. However, I also want them to be able to delete it to make it their own. BUT I'm not yet convinced the app should allow deletion in general. Besides, deleting stuff robustly and reliably is a whole other level of programming. Solution: Make people edit the app to clear the initial sample zettels. This has the "beneficial" side-effect of getting them editing apps on Teliva.
* zet.tlv: copy in sample zettelsKartik K. Agaram2022-02-101-4/+4
|
* zet.tlv: saving/loading to/from diskKartik K. Agaram2022-02-101-0/+76
|
* zet.tlvKartik K. Agaram2022-02-101-0/+131
|
* clean up top-level Makefile targetsKartik K. Agaram2022-02-101-2/+2
|
* zet.tlv: resizing zettel card sizesKartik K. Agaram2022-02-101-0/+124
|
* zet.tlv: creating new zettelsKartik K. Agaram2022-02-091-0/+211
|
* zet.tlv: bugfixes to editor cursor handlingKartik K. Agaram2022-02-091-5/+4
|
* .Kartik K. Agaram2022-02-091-2/+2
|
* flesh out sandboxing in Readme a tadKartik K. Agaram2022-02-091-3/+4
|
* update keyboard shortcuts in screenshots and docsKartik K. Agaram2022-02-093-3/+3
|
* standardize key order in .tlv filesKartik K. Agaram2022-02-095-40/+57
| | | | This will eliminate some spurious git diffs I keep having to clean up.
* zet.tlv: simpler UI, simpler editorKartik K. Agaram2022-02-091-0/+184
|
* bugfix in rendering non-top zettelsKartik K. Agaram2022-02-081-1/+1
|
* Lua gotcha: iterating over strings yields stringsKartik K. Agaram2022-02-082-4/+4
|
* zet.tlv: expand editor to accomodate more textKartik K. Agaram2022-02-081-7/+12
| | | | | Still won't show up in view mode for now. Soon we'll be able to adjust zettel dimensions.
* typoKartik K. Agaram2022-02-081-1/+1
|
* zet.tlv: editing a single zettelKartik K. Agaram2022-02-081-7/+307
|
* gemini.tlv: consistent menuKartik K. Agaram2022-02-081-2/+2
|
* zet.tlv: clean up historyKartik K. Agaram2022-02-071-2590/+17
|
* move most Teliva menus to the rightKartik K. Agaram2022-02-072-6/+8
| | | | | | | | | | The problem I'm running into is that apps might want to perform their own editing. So I can't take up prime estate like the ctrl-e hotkey or a menu name of 'edit'. I'm still prioritizing rendering Teliva's edit and permissions menu. If the window is too narrow the app's settings will be overwritten and Teliva's hotkeys will be preferentially displayed. Seems safer.
* more Readme polishKartik K. Agaram2022-02-071-5/+8
|
* remove dropped functions from docsKartik K. Agaram2022-02-073-731/+5
|
* question raised during FOSDEM '22Kartik K. Agaram2022-02-071-0/+2
| | | | https://fosdem.org/2022/schedule/event/lastmilesandboxing
* lisp.tlv: clean up historyKartik K. Agaram2022-02-071-309/+26
| | | | Also a minor edit in doc:main.
* some more dead codeKartik K. Agaram2022-02-061-23/+0
|
* in fact, loadlib.c is all dead code nowKartik K. Agaram2022-02-062-299/+1
| | | | Now we can be sure apps can't call `require`.
* now all our supported platforms are POSIXKartik K. Agaram2022-02-062-14/+5
|
* drop all support for loading dynamic librariesKartik K. Agaram2022-02-062-338/+7
|
* drop module 'package'Kartik K. Agaram2022-02-064-49/+0
| | | | | | | Just like with `require`, we don't we don't know how to sandbox it. (Though we still have `require` because standard libraries outside apps need it. I need to make sure apps can't invoke `require`..)
* drop some more untested platformsKartik K. Agaram2022-02-061-16/+1
|
* drop USE_LINUX and similar definesKartik K. Agaram2022-02-062-15/+4
| | | | | How many levels of macros do we need. Also stop lying that we're using Linux in BSD.
* drop MinGWKartik K. Agaram2022-02-061-6/+1
| | | | | | | | I've never tested with it, and it is likely broken after all my changes to base Lua 5.1. Might as well be transparent about that. If you care about this platform, please let me know: http://akkartik.name/contact
* unused #defineKartik K. Agaram2022-02-061-1/+0
|
* more thoughts on sandboxingKartik K. Agaram2022-02-051-0/+8
|
* experimental app: zettelkastenKartik K. Agaram2022-02-041-0/+2963
| | | | | | | | | | | | | | | | | | | | https://merveilles.town/@akkartik/107742821323590471 What we have so far: a representation (see 'zettels') parent/child next/prev sibling (todo: misc cross-links) ability to render zettels in multiple columns based on 'view_settings' all zettels render with same size alternate backgrounds between zettels for legibility skip rendering duplicates (if we ever hit cycles) a highlighted 'current zettel' ability to move current zettel by screen location (arrow keys) by network structure (h/j/k/l) Still can't edit zettels or load/save from/to disk.
* don't perturb cursor when drawing menuKartik K. Agaram2022-02-041-0/+3
|
* fix a couple of warningsKartik K. Agaram2022-02-031-0/+3
| | | | | It's not clear to me where my Linux gets strlcpy and strlcat from ¯\_(ツ)_/¯
* prose typos and editsKartik K. Agaram2022-02-031-3/+2
|
* fix a bug in kiloKartik K. Agaram2022-02-031-1/+1
| | | | Submitted upstream at https://github.com/antirez/kilo/pull/81.
* drop io.lines()Kartik K. Agaram2022-02-022-40/+5
| | | | | | | | | | | | | | | | | I'd already dropped the variant without a filename. But even the variant with a filename is very easy to use in a way that is confusing to use in the presence of sandboxing: * call io.lines() * Sandboxing saves an error, io.lines() returns nil * Caller (usually a loop) raises an error. * We show the error and not the sandboxing failure. * Worse, there's no way to adjust permissions from within Teliva, because we can't ever get to that menu while there's an error. Best solution I can come up with: encourage a separate step for translating filename to file handle. That way it's more obvious that we need to check for errors.
* tweak an entry in the audit logKartik K. Agaram2022-02-021-1/+1
|
* sandbox: no way to run arbitrary Lua code stringsKartik K. Agaram2022-02-021-96/+0
|
* include keys typed into audit logKartik K. Agaram2022-02-013-0/+18
| | | | | This will help people cross-correlate when the app performs specific calls.
* new potential threat vectorKartik K. Agaram2022-02-011-0/+3
|
* file permissions: decide based on calling functionKartik K. Agaram2022-02-014-15/+30
|
* copy realpath() from FreeBSD repoKartik K. Agaram2022-01-302-1/+245
| | | | | To sandbox apps robustly, we're going to need to always work with canonical absolute paths.
* try to get by with one feature macroKartik K. Agaram2022-01-295-11/+1
| | | | | | | | | | | | | | | | | I fucking hate feature macros. Egregious discharge of our division-of-labor-obsessed society. People should be able to introduce names. People should be able to give up names to lower levels of abstraction when they encounter conflicts. Feature macros seem to exist[1] to support more than two levels of abstraction. You try to build, one of your libraries fails to build because of a conflict between it and one level down. You don't want to modify this library. Just fucking https://catern.com/change_code.html already. But no, I have to litter my code with feature macros even though I just want the abstraction the original library provides. [1] https://man7.org/linux/man-pages/man7/feature_test_macros.7.html https://lwn.net/Articles/590381
* new library: luafilesystem (lfs)Kartik K. Agaram2022-01-297-1/+1425
| | | | | | https://github.com/keplerproject/luafilesystem The new commander.tlv app demonstrates it working.
* fixup! redo lua vs proseKartik K. Agaram2022-01-291-15/+17
| | | | Forgot to include some hunks.
92763d2e ^
a905ce18 ^
6b830277 ^
a905ce18 ^
0b2a1a1b ^
0de1ff9b ^
89d3b9fc ^

0de1ff9b ^
71178b36 ^








00170984 ^
89d3b9fc ^
0b2a1a1b ^
6b830277 ^
89d3b9fc ^
45ba6f1f ^


6bad38c2 ^
45ba6f1f ^



89d3b9fc ^
45ba6f1f ^
6b830277 ^
45ba6f1f ^
89d3b9fc ^
0de1ff9b ^
89d3b9fc ^

71178b36 ^








6b830277 ^
0b2a1a1b ^
89d3b9fc ^
6b830277 ^

89d3b9fc ^

6b830277 ^

89d3b9fc ^




4bd06a5d ^
95c48a0f ^
4bd06a5d ^
6b830277 ^
4bd06a5d ^




6b830277 ^
4bd06a5d ^




00170984 ^
6b830277 ^
89d3b9fc ^


a519d25e ^
0b2a1a1b ^
a519d25e ^
0b2a1a1b ^
a519d25e ^
89d3b9fc ^
0b2a1a1b ^
89d3b9fc ^
0b2a1a1b ^
89d3b9fc ^

0b2a1a1b ^

b9b5d6a5 ^

0b2a1a1b ^
a720ef26 ^
6b830277 ^
0b2a1a1b ^
89d3b9fc ^

6bad38c2 ^
89d3b9fc ^
6b830277 ^











0b2a1a1b ^
89d3b9fc ^
6b830277 ^











0b2a1a1b ^
6bad38c2 ^
89d3b9fc ^
527e739a ^
0b2a1a1b ^
89d3b9fc ^



00170984 ^
6b830277 ^
af95c82f ^
a720ef26 ^

927af868 ^
af95c82f ^

a720ef26 ^
f377e032 ^
d6e92f62 ^
4c6cfcdc ^



af95c82f ^
4c6cfcdc ^
d6e92f62 ^
6b830277 ^
0b2a1a1b ^
a720ef26 ^

af95c82f ^
a720ef26 ^

af95c82f ^

af95c82f ^
a720ef26 ^
af95c82f ^

00170984 ^
6b830277 ^
af95c82f ^
a720ef26 ^

af95c82f ^


4c6cfcdc ^
f377e032 ^
d6e92f62 ^
4c6cfcdc ^


af95c82f ^
4c6cfcdc ^
d6e92f62 ^
6b830277 ^
0b2a1a1b ^
a720ef26 ^

af95c82f ^
a720ef26 ^

af95c82f ^



a720ef26 ^
af95c82f ^

00170984 ^
6b830277 ^
f9b8da1a ^
f377e032 ^
f9b8da1a ^

e99a0e11 ^
4c6cfcdc ^
f9b8da1a ^
e99a0e11 ^

4c6cfcdc ^

f9b8da1a ^

0b2a1a1b ^
6b830277 ^
0b2a1a1b ^
f9b8da1a ^
e99a0e11 ^
f9b8da1a ^
9b3517c2 ^



d6e92f62 ^
f9b8da1a ^
9b3517c2 ^
f9b8da1a ^

9b3517c2 ^

f9b8da1a ^





af95c82f ^
00170984 ^
6b830277 ^















































89d3b9fc ^
b5e01065 ^



89d3b9fc ^
b5e01065 ^


6bad38c2 ^
89d3b9fc ^
b5e01065 ^
6bad38c2 ^
89d3b9fc ^


f5711001 ^
0c985110 ^
f5711001 ^






b5e01065 ^

f5711001 ^



b5e01065 ^

f5711001 ^

89d3b9fc ^

b5e01065 ^
6b830277 ^
89d3b9fc ^

b5e01065 ^
89d3b9fc ^
b934ad54 ^
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
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479