diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-12-18 09:45:13 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-12-18 09:45:13 -0800 |
commit | 59f223e7cb244867507a0c1f4471be1ce38bde60 (patch) | |
tree | 0debc065addf407966ca27d1315c32a3d642e80d /src/ltable.c | |
parent | d818efb7c824ffcfe7e62384cd70ef1b7aa098a8 (diff) | |
download | teliva-59f223e7cb244867507a0c1f4471be1ce38bde60.tar.gz |
toot-toot: save prose somewhere
This is still quite klunky. Don't expect toot-toot to be a complete text editor. In particular, it'll happily lose toot data if you try to edit the app while editing a toot. Teliva is paranoid about avoiding data loss, but toot-toot.tlv is not. Mostly I just want toot-toot to interact with the clipboard. The only reason save exists is that copying directly from within the app inserts spurious line breaks. So now I'm saving to file, then `cat`ing file, then copying each toot out. I initially tried to use ctrl-s for the save hotkey, but that conflicts with terminal flow-control, and it's not obvious how ncurses manages IXON. And I don't want to go around ncurses and do something that's very likely to be unportable. Even ctrl-w, I worry that there are terminals out there that will close tab or something stupid like that. Feature wish list: - a hook to execute after exit. Just calling os.exit() doesn't work because the screen still clears any final prints when Teliva exits. Not sure how to handle this. Ncurses doesn't seem to have anything beyond endwin() for cleaning up after itself. - a hook to execute before exit, for things like asking for confirmation/save - a place for 'flash' notification messages, like that the file was saved
Diffstat (limited to 'src/ltable.c')
0 files changed, 0 insertions, 0 deletions