about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* instrumenting function calls with their depthKartik K. Agaram2021-11-134-2/+66
|
* start using static linkage like the rest of LuaKartik K. Agaram2021-11-132-48/+44
|
* create empty file when navigating to empty definitionKartik K. Agaram2021-11-112-4/+4
|
* fix incorrect hotkey in menuKartik K. Agaram2021-11-111-2/+2
|
* ctrl-g to edit a different definitionKartik K. Agaram2021-11-112-3/+68
|
* gracefully handle missing definitionKartik K. Agaram2021-11-111-0/+1
|
* .Kartik K. Agaram2021-11-111-5/+5
|
* global for current definition being editedKartik K. Agaram2021-11-111-3/+5
|
* pass lua_State into editorKartik K. Agaram2021-11-112-6/+6
|
* delete a helper that hides stack side effectsKartik K. Agaram2021-11-111-8/+2
|
* extract a few helper functionsKartik K. Agaram2021-11-111-21/+26
|
* .Kartik K. Agaram2021-11-111-14/+14
|
* .Kartik K. Agaram2021-11-111-1/+1
|
* reorgKartik K. Agaram2021-11-112-48/+44
|
* edit a single hard-coded definition in the imageKartik K. Agaram2021-11-103-8/+71
| | | | | | | | | | | | | src/teliva counter.tlv C-e # switch to editor C-e # save and quit C-x # exit counter.tlv now has the same logical contents, though the whitespace has changed, and the order of keys is different. The implementation is utterly ghastly. For one, I'm unnecessarily interfacing with kilo through the file system.
* .Kartik K. Agaram2021-11-101-23/+23
|
* new .tlv image formatKartik K. Agaram2021-11-101-0/+72
| | | | | | | | | | | | | | Plan is for this to be the default representation for Teliva programs. Text-friendly but not meant to be edited directly as text. Will eventually include both code and data definitions, both current snapshot and past revision history. Right now .tlv files seem to run. Error checking is non-existent, because I don't understand Lua's idioms around 'status' yet. Opening the editor expectedly segfaults. This commit is the most mind-bending bit of code I've written in a long time.
* life: move starting pattern around on the screenKartik K. Agaram2021-11-102-0/+93
| | | | | | This assumes we're doing it early soon after opening a new pattern, when it hasn't yet reached the margins. Quick and dirty, but seems good enough.
* .Kartik K. Agaram2021-11-091-28/+0
|
* switch menu bars to reverse videoKartik K. Agaram2021-11-072-9/+9
|
* fix menu colorsKartik K. Agaram2021-11-071-3/+2
| | | | I had it switching to a dark background on me.
* better support light backgroundsKartik K. Agaram2021-11-071-0/+1
| | | | Thanks nicolas decoster for reporting this issue.
* more obvious phrasingKartik K. Agaram2021-11-071-7/+4
| | | | Early returns are only worthwhile if they're utterly obvious.
* fix a regression in commit ee85ad384f17Kartik K. Agaram2021-11-071-0/+1
|
* .Kartik K. Agaram2021-11-071-1/+1
|
* game of lifeKartik K. Agaram2021-11-062-1/+3
| | | | | This required me to figure out some unicode-related nuances, but no new primitives.
* .Kartik K. Agaram2021-11-061-3/+1
|
* window:nodelay() for non-blocking inputKartik K. Agaram2021-11-061-0/+16
|
* escape hatch to quit with a pending errorKartik K. Agaram2021-11-062-5/+14
|
* reorg editor transitionsKartik K. Agaram2021-11-062-12/+13
|
* start showing error messages in editorKartik K. Agaram2021-11-063-7/+21
| | | | | | | | | | | Before we'd end up in cryptic situations where error messages would get hidden when the program got out of ncurses mode. Now it's a little nicer with error messages showing up at the bottom of the editor. But there's still a problem: there's no way to abort without fixing an error.
* simple interface for adding to app menuKartik K. Agaram2021-11-062-4/+17
| | | | | | We're not going to enforce that the menu items actually do what they advertise. It's just a way to draw on the bottom line of screen, something apps aren't otherwise allowed to do.
* refactor menu drawingKartik K. Agaram2021-11-061-9/+20
|
* .Kartik K. Agaram2021-11-061-6/+0
|
* auto-saveKartik K. Agaram2021-11-061-10/+2
| | | | We'll add version control soon.
* replace initial help message with a menuKartik K. Agaram2021-11-061-8/+5
|
* no, more consistent to toggle run/edit with ctrl-eKartik K. Agaram2021-11-061-3/+4
|
* exit editor with ctrl-x for consistencyKartik K. Agaram2021-11-061-3/+4
|
* .Kartik K. Agaram2021-11-061-2/+2
|
* .Kartik K. Agaram2021-11-061-21/+21
|
* clean up when leaving editorKartik K. Agaram2021-11-061-0/+1
| | | | | kilo.c is still calling exit() in several places that we'll need to gradually clean up.
* readme and docsKartik K. Agaram2021-11-052-103/+1
|
* clean up first paint of editorKartik K. Agaram2021-11-051-0/+1
|
* utterly ghastly way to rerun script after editKartik K. Agaram2021-11-053-5/+14
|
* stitch editor inKartik K. Agaram2021-11-054-62/+28
|
* drop test array data structureKartik K. Agaram2021-11-051-82/+0
|
* .Kartik K. Agaram2021-11-051-8/+0
|
* select an editor to bundle: kiloKartik K. Agaram2021-11-051-0/+1308
| | | | | | From https://github.com/antirez/kilo Source code description: https://viewsourcecode.org/snaptoken/kilo BSD 2-clause license seems identical to the MIT in the current codebase.
* slightly improve hanoi renderingKartik K. Agaram2021-11-051-1/+1
|
* menu entry: cleanly exitKartik K. Agaram2021-11-051-3/+21
|