Commit Graph

708 Commits

Author SHA1 Message Date
Kartik K. Agaram b36927e35c rewrite the section on Teliva's dependencies 2022-02-19 09:13:52 -08:00
Kartik K. Agaram 557774af42 Readme: move some sections around to flow better 2022-02-19 09:11:40 -08:00
Kartik K. Agaram eb53603b06 starting a few Readme tweaks
For starters, drop some redundant prose here.
2022-02-19 09:10:29 -08:00
Kartik K. Agaram b8cba84d20 bring back pcall and xpcall
They aren't evaluating strings after all.
2022-02-18 18:00:58 -08:00
Kartik K. Agaram 24db182620 show app blurb in screenshot 2022-02-17 20:47:19 -08:00
Kartik K. Agaram 9421ea7151 'doc:blurb': a place to briefly describe an app
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.
2022-02-17 20:16:36 -08:00
Kartik K. Agaram 0e19efeb2e fix a conflicting keyboard shortcut 2022-02-17 19:44:26 -08:00
Kartik K. Agaram 272d7532dc disable non-portable ASan flags 2022-02-16 20:53:53 -08:00
Kartik K. Agaram 27a99111ee fix chesstv.tlv after we introduced sandboxing 2022-02-12 18:58:24 -08:00
Kartik K. Agaram 3db03840e1 zet.tlv: new shortcuts, mostly for the editor 2022-02-12 17:59:30 -08:00
Kartik K. Agaram 5e200cf96a zet.tlv: some more editor shortcuts 2022-02-12 15:56:12 -08:00
Kartik K. Agaram 6a485ae4b4 stop aborting if audit log fills up
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.
2022-02-12 15:45:04 -08:00
Kartik K. Agaram bbd47aaa5b zet.tlv: yet another bugfix
Need for tests growing more acute..
2022-02-11 10:40:24 -08:00
Kartik K. Agaram 2d3cad5945 fix build on Mac OS 2022-02-10 23:42:09 -08:00
Kartik K. Agaram d7436f047d zet.tlv: fix a couple more bugs
This snapshot was demoed at https://archive.org/details/akkartik-teliva-2022-02-10
2022-02-10 23:40:51 -08:00
Kartik K. Agaram c55956bf96 zet.tlv: cross-links
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.
2022-02-10 21:33:21 -08:00
Kartik K. Agaram feb10708ae hacky support for caller main in file permissions 2022-02-10 16:40:40 -08:00
Kartik K. Agaram c1e4b84222 fixup! clean up top-level Makefile targets 2022-02-10 16:40:22 -08:00
Kartik K. Agaram 76984aa90f allow Teliva to show its sandboxing message 2022-02-10 16:30:00 -08:00
Kartik K. Agaram b0cc9a7451 zet.tlv: refine the initial UX some more
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.
2022-02-10 08:00:47 -08:00
Kartik K. Agaram c4402edc5b zet.tlv: copy in sample zettels 2022-02-10 07:40:04 -08:00
Kartik K. Agaram 1a40bc7f5f zet.tlv: saving/loading to/from disk 2022-02-10 07:35:54 -08:00
Kartik K. Agaram 10dab7ae17 zet.tlv 2022-02-10 07:35:28 -08:00
Kartik K. Agaram 31127a9152 clean up top-level Makefile targets 2022-02-10 06:53:22 -08:00
Kartik K. Agaram 5cab1c042d zet.tlv: resizing zettel card sizes 2022-02-10 00:04:12 -08:00
Kartik K. Agaram e827379950 zet.tlv: creating new zettels 2022-02-09 23:49:59 -08:00
Kartik K. Agaram cf521f9904 zet.tlv: bugfixes to editor cursor handling 2022-02-09 23:41:36 -08:00
Kartik K. Agaram 7786462a8d . 2022-02-09 23:27:26 -08:00
Kartik K. Agaram 38b15e8086 flesh out sandboxing in Readme a tad 2022-02-09 14:47:01 -08:00
Kartik K. Agaram 29d4555d04 update keyboard shortcuts in screenshots and docs 2022-02-09 14:39:31 -08:00
Kartik K. Agaram e552571b1e standardize key order in .tlv files
This will eliminate some spurious git diffs I keep having to clean up.
2022-02-09 09:18:05 -08:00
Kartik K. Agaram b328ffc5e5 zet.tlv: simpler UI, simpler editor 2022-02-09 08:31:20 -08:00
Kartik K. Agaram c3422e101f bugfix in rendering non-top zettels 2022-02-08 19:20:13 -08:00
Kartik K. Agaram e397220f9d Lua gotcha: iterating over strings yields strings 2022-02-08 19:19:08 -08:00
Kartik K. Agaram 33ab842ffd zet.tlv: expand editor to accomodate more text
Still won't show up in view mode for now. Soon we'll be able to adjust
zettel dimensions.
2022-02-08 18:40:59 -08:00
Kartik K. Agaram 3180e3e4fb typo 2022-02-08 18:30:02 -08:00
Kartik K. Agaram fb251c2819 zet.tlv: editing a single zettel 2022-02-08 00:28:20 -08:00
Kartik K. Agaram a8fb6d4002 gemini.tlv: consistent menu 2022-02-08 00:28:04 -08:00
Kartik K. Agaram b639f8e68c zet.tlv: clean up history 2022-02-07 23:17:03 -08:00
Kartik K. Agaram 504573a0de move most Teliva menus to the right
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.
2022-02-07 22:54:17 -08:00
Kartik K. Agaram 0d16c7c690 more Readme polish 2022-02-07 22:32:06 -08:00
Kartik K. Agaram 6d2dce51db remove dropped functions from docs 2022-02-07 22:22:57 -08:00
Kartik K. Agaram 57d4710f98 question raised during FOSDEM '22
https://fosdem.org/2022/schedule/event/lastmilesandboxing
2022-02-07 21:52:04 -08:00
Kartik K. Agaram 7122a06466 lisp.tlv: clean up history
Also a minor edit in doc:main.
2022-02-07 16:22:04 -08:00
Kartik K. Agaram 21a3200c6a some more dead code 2022-02-06 13:48:46 -08:00
Kartik K. Agaram 3cfb8f7812 in fact, loadlib.c is all dead code now
Now we can be sure apps can't call `require`.
2022-02-06 13:34:16 -08:00
Kartik K. Agaram 63e3ba62c2 now all our supported platforms are POSIX 2022-02-06 13:30:32 -08:00
Kartik K. Agaram 6860a02396 drop all support for loading dynamic libraries 2022-02-06 13:29:38 -08:00
Kartik K. Agaram 8a9efc1b91 drop module 'package'
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`..)
2022-02-06 13:12:46 -08:00
Kartik K. Agaram b79d6be383 drop some more untested platforms 2022-02-06 13:08:46 -08:00