Commit Graph

484 Commits

Author SHA1 Message Date
Kartik K. Agaram
41803e4afc use header everywhere 2021-11-28 11:11:30 -08:00
Kartik K. Agaram
c015ffe40a unused variable 2021-11-28 11:10:34 -08:00
Kartik K. Agaram
2f3c800a49 standardize filenames that teliva strews on disk
We still need a proper story for file system side effects. But it's not
time yet for sandboxing considerations. Soon, but not yet.
2021-11-28 10:54:25 -08:00
Kartik K. Agaram
2b8b811175 restore editor state from snapshot 2021-11-28 10:50:13 -08:00
Kartik K. Agaram
d3d8c13828 make look_up_definition more composable 2021-11-28 10:44:40 -08:00
Kartik K. Agaram
6388bc08c4 save a snapshot of editor state across restarts
We're not using this yet.

I agonized over this decision for several weeks. Is Teliva's need to
restart with execve an utter hack or a good thing? I'm leaning towards
the latter. Constantly exercising the initial flow makes Teliva more
crash-only. We can build Steve Yegge's idea of immortality (http://steve-yegge.blogspot.com/2007/01/pinocchio-problem.html)
out of crash-only primitives, just by making reboots instantaneous. But
focusing directly on immortality tends to compromise crash-only by
exercising it more rarely.

One other issue this brings up: loading these Lua tables from disk is a
vector for arbitrary code execution. I need to fix these when I get to
sandboxing.
2021-11-28 10:44:40 -08:00
Kartik K. Agaram
13bfb7308a more salient concept of 'views' 2021-11-28 09:48:04 -08:00
Kartik K. Agaram
1ac98e28e6 fix backspace on Mac
I'm deliberately restricting this incompatibility to the editor
environment for now.
2021-11-28 08:50:47 -08:00
Kartik K. Agaram
75ded7a918 editor hotkeys: sol/eol
I'm growing attached to ^e, so mildly breaking with convention there.
Perhaps this is a bad idea.
2021-11-28 08:44:37 -08:00
Kartik K. Agaram
dff7a5226f a starting point for new apps 2021-11-27 21:08:05 -08:00
Kartik K. Agaram
a09da47b2a tour: add some images 2021-11-27 12:18:23 -08:00
Kartik K. Agaram
ef0b205c08 more friendly 2021-11-27 10:10:31 -08:00
Kartik K. Agaram
58e3f287a0 don't distract the tour with things we don't have 2021-11-27 10:09:19 -08:00
Kartik K. Agaram
c557baac96 . 2021-11-27 10:02:25 -08:00
Kartik K. Agaram
a51d50aa30 . 2021-11-27 10:00:51 -08:00
Kartik K. Agaram
8fe7040ee3 tour: split the first task into 3 2021-11-27 09:56:23 -08:00
Kartik K. Agaram
e061b963db tour: better links for task 1 2021-11-27 09:24:57 -08:00
Kartik K. Agaram
107af65f3c pass some CFLAGS at least to libcurses
My Makefiles are an utter mess. Unclear how to reconcile staying close
to upstream with being clean in isolation.
2021-11-27 09:24:00 -08:00
Kartik K. Agaram
3d98d7c188 . 2021-11-27 09:18:06 -08:00
Kartik K. Agaram
295c99c2d9 . 2021-11-27 09:00:38 -08:00
Kartik K. Agaram
c41313d969 start a guided tour 2021-11-27 08:59:09 -08:00
Kartik K. Agaram
bbeef0b49f . 2021-11-27 08:42:37 -08:00
Kartik K. Agaram
ae2d3e377e clarify what Teliva is 2021-11-27 08:16:42 -08:00
Kartik K. Agaram
7d71663f1a one final issue building on Mac OS X 2021-11-27 08:10:18 -08:00
Kartik K. Agaram
7814c1c98a now building on OpenBSD
Still emitting a bunch of warnings on OpenBSD, though.
2021-11-27 07:58:58 -08:00
Kartik K. Agaram
8a36b2583c select C99 in luasec
I can't select C99 in luasocket, because I don't know how to include
the definition of struct timespec. All this fucking complexity. But
hopefully things will build on OpenBSD now.
2021-11-27 07:28:12 -08:00
Kartik K. Agaram
3fee59527a select C99 standard 2021-11-27 07:18:24 -08:00
Kartik K. Agaram
fd4ca45ae5 clean up luasocket build file
Teliva is never intended to be "installed" somewhere. Just work inside
its directory and separately share the .tlv files you create. (Though I
don't yet have a good flow for starting a new .tlv file.)
2021-11-27 06:57:38 -08:00
Kartik K. Agaram
c558d2c565 . 2021-11-27 00:42:15 -08:00
Kartik K. Agaram
ff43b5bae1 fix build on Mac 2021-11-27 00:41:17 -08:00
Kartik K. Agaram
83050ec38e starting to test compilation on Mac and BSD.
For starters, put Linux-specific stuff in a Linux-specific target.

By not resetting MYCFLAGS and MYLDFLAGS, I'm unnecessarily passing in
-DLUA_USE_LINUX. But that'll make it easier to get things running on Mac
and BSD.
2021-11-27 00:34:49 -08:00
Kartik K. Agaram
1e911f95ef bugfix: emit legal Lua representation 2021-11-26 22:03:47 -08:00
Kartik K. Agaram
31816db0cc . 2021-11-26 21:56:22 -08:00
Kartik K. Agaram
662d1cf202 support space/backspace in recent changes view 2021-11-26 21:54:45 -08:00
Kartik K. Agaram
2426fe7a79 standardize indent 2021-11-26 21:50:53 -08:00
Kartik K. Agaram
7e86f6d123 colorize comments in recent changes 2021-11-26 21:48:31 -08:00
Kartik K. Agaram
e2a53858a0 support notes on edits
Unlike both conventional version control and wiki history, I'm planning
to always allow modifying commit messages.
2021-11-26 21:43:31 -08:00
Kartik K. Agaram
6b6fe7ce72 periodic cleanup of warnings 2021-11-26 21:22:20 -08:00
Kartik K. Agaram
db7202ccfd . 2021-11-26 21:20:23 -08:00
Kartik K. Agaram
35fe28a36f . 2021-11-26 21:19:41 -08:00
Kartik K. Agaram
0c211dec77 don't mislead immediately after undo 2021-11-26 20:00:32 -08:00
Kartik K. Agaram
b954ab869e . 2021-11-26 19:52:31 -08:00
Kartik K. Agaram
0726692546 more obvious serialization of undo events 2021-11-26 19:45:19 -08:00
Kartik K. Agaram
3cb37a0f39 render undo events 2021-11-26 19:38:51 -08:00
Kartik K. Agaram
a0171352a1 start processing undo events 2021-11-26 19:33:35 -08:00
Kartik K. Agaram
576ab1df8d start recording undo events in timeline
We're not using or rendering them yet.
2021-11-26 18:59:31 -08:00
Kartik K. Agaram
07bf55b460 save timestamp on change; show in recent changes 2021-11-26 18:47:50 -08:00
Kartik K. Agaram
f3dd541561 . 2021-11-26 18:21:04 -08:00
Kartik K. Agaram
555159fb9a clean up traces of an old experiment 2021-11-26 18:18:58 -08:00
Kartik K. Agaram
720ff19351 add support for metadata in Teliva programs
They don't have any semantics yet. We just ignore them for now.
2021-11-26 18:17:35 -08:00