about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
* some dead codeKartik K. Agaram2022-03-051-59/+0
|
* reliably exit on confirmationKartik K. Agaram2022-03-051-1/+5
| | | | | | | Until now you had to press ctrl-x twice in rapid succession to exit if an app turned on non-blocking keyboard with nodelay(true). This became particularly noticeable after the previous change to anagrams.tlv, which could no longer exit.
* fixup! no further confirmation once editing commencesKartik K. Agaram2022-03-051-0/+1
|
* anagrams.tlv: slightly more responsiveKartik K. Agaram2022-03-052-1/+31
| | | | | | | Now we cancel screen-painting if any key is pressed. However it looks like just computing the list of anagrams can take a long time.
* include caller in sandboxing messagesKartik K. Agaram2022-03-041-1/+1
|
* simplify permissions model for file operationsKartik K. Agaram2022-03-032-5/+5
| | | | | We don't care to distinguish modes like "rw" or "a+". An app is permitted to perform either just reads or both reads and writes.
* clearer copy for confirmation dialogKartik K. Agaram2022-03-031-1/+1
|
* basic support for testing writes to screenKartik K. Agaram2022-03-031-0/+73
|
* more unobtrusive skip messageKartik K. Agaram2022-03-031-1/+1
| | | | In particular, the periods looked like passing tests.
* no further confirmation once editing commencesKartik K. Agaram2022-03-031-1/+3
|
* ask for confirmation on _any_ teliva shortcutKartik K. Agaram2022-03-031-22/+33
| | | | | This feels more intrusive. Let's see how we like it. Will I start having ctrl-x ctrl-x in my muscle memory?
* experiment: drop -WshadowKartik K. Agaram2022-03-033-5/+5
| | | | | I'm totally fine with lexical scope in other languages. Why does it feel like such a big deal in C?
* fake keyboard constructorKartik K. Agaram2022-03-021-0/+34
|
* distinguish between window global and argKartik K. Agaram2022-03-0212-110/+110
|
* always ask for confirmation on exitKartik K. Agaram2022-03-011-2/+18
| | | | | Let's see if we can live with this rather than some way to let apps indicate if they want confirmation or not..
* zet.tlv: hotkeys are not alternativesKartik K. Agaram2022-02-271-18/+18
| | | | | In any case, I want the convention to be '|' for alternation. '/' is more likely to be a real hotkey.
* zet.tlv: streamline historyKartik K. Agaram2022-02-271-3029/+0
|
* starting to make Teliva apps more testableKartik K. Agaram2022-02-2712-129/+129
| | | | | | | | | | Tasteful apps should only perform side-effects through 'window' arguments rather than the 'curses' module directly. It's ok however to read constants like curses.A_NORMAL or curses.stdscr(). There are some limitations, unfortunately. Ncurses wasn't designed with testability in mind. For example, there's no way to curs_set or assume_default_colors without the 'curses' module. Oh well.
* always run unit tests for channels and tasksKartik K. Agaram2022-02-261-216/+210
|
* import https://github.com/majek/lua-channelsKartik K. Agaram2022-02-264-2/+1044
| | | | Also a little test program to demo channels in action.
* duplicate keypress on failing testKartik K. Agaram2022-02-261-1/+0
|
* readme tweakKartik K. Agaram2022-02-261-6/+7
|
* a little program for kids: anagrams of namesKartik K. Agaram2022-02-212-2/+398
|
* delete curses primitives to read whole linesKartik K. Agaram2022-02-213-77/+8
| | | | | | | | They make it seem like you can use them to create simple REPL apps, but you can't, because standard Teliva shortcuts won't work. I _could_ make them work by emulating them using getch(), but that feels like an unnecessary abstraction for now.
* stop letting apps change directoryKartik K. Agaram2022-02-202-2/+3
| | | | | | | | | | | | | | I introduced this ability when I packaged up the lfs directory, but it can enable apps to circumvent sandboxing rules in some situations. If you can socially engineer someone to allow reading a file called 'passwd' in the current directory, you can now change directory to /etc and read something sensitive. Protecting against stuff like this gets subtle. It's easy for people to create policies that aren't robust to changing directories. Requiring absolute paths is also pretty unfriendly. So the whole notion of current directory is perhaps implicit state that is confusing to manage. Fix it in the context of a single session.
* rewrite the section on Teliva's dependenciesKartik K. Agaram2022-02-191-3/+17
|
* Readme: move some sections around to flow betterKartik K. Agaram2022-02-191-26/+20
|
* starting a few Readme tweaksKartik K. Agaram2022-02-191-4/+0
| | | | For starters, drop some redundant prose here.
* bring back pcall and xpcallKartik K. Agaram2022-02-181-0/+24
| | | | They aren't evaluating strings after all.
* show app blurb in screenshotKartik K. Agaram2022-02-171-0/+0
|
* 'doc:blurb': a place to briefly describe an appKartik K. Agaram2022-02-179-1/+79
| | | | | | This is for what the app does, as opposed to 'doc:main', which is also intended to include commentary about the internal organization of the app.
* fix a conflicting keyboard shortcutKartik K. Agaram2022-02-171-2/+2
|
* disable non-portable ASan flagsKartik K. Agaram2022-02-161-2/+2
|
* fix chesstv.tlv after we introduced sandboxingKartik K. Agaram2022-02-121-0/+23
|
* zet.tlv: new shortcuts, mostly for the editorKartik K. Agaram2022-02-121-0/+3447
|
* zet.tlv: some more editor shortcutsKartik K. Agaram2022-02-122-2/+438
|
* stop aborting if audit log fills upKartik K. Agaram2022-02-121-10/+32
| | | | | | | | | | | | When I started logging getch() events (which are just to help the reader orient on the log), this suddenly became more urgent. Now the log is larger, and it's also a circular buffer that rolls back to the start when it fills up. The next failure mode will be if we see the buffer filled up with just getch() calls, reducing visibility over real file and network operations. In which case we'll need to start coalescing getch() events.
* zet.tlv: yet another bugfixKartik K. Agaram2022-02-111-0/+141
| | | | Need for tests growing more acute..
* fix build on Mac OSKartik K. Agaram2022-02-102-0/+3
|
* zet.tlv: fix a couple more bugsKartik K. Agaram2022-02-101-0/+81
| | | | This snapshot was demoed at https://archive.org/details/akkartik-teliva-2022-02-10
* zet.tlv: cross-linksKartik K. Agaram2022-02-101-0/+820
| | | | | | | | | | | | | | We also made render dynamic, showing zettels in the first place it encounters them in depth-first order. Open question: how to show a collapsed outline view with the data model I'm experimenting with. Not even clear 'outline' has meaning in the presence of cross-links. Outliners privilege one view of the network. Zettelkasten also does so; changing child/sibling relationships is a lot of work. However, reading between the links it seems to try to provide an escape hatch for rethinking connections using cross-links. I'm trying to lean into that -- at the cost of providing outlines. We'll see if this is a good trade-off.
* hacky support for caller main in file permissionsKartik K. Agaram2022-02-101-0/+2
|
* fixup! clean up top-level Makefile targetsKartik K. Agaram2022-02-101-0/+1
|
* allow Teliva to show its sandboxing messageKartik K. Agaram2022-02-101-2/+4
|
* 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
|