Kartik K. Agaram
b3b844c5f7
.
2021-11-14 09:48:41 -08:00
Kartik K. Agaram
2cc6912e85
find _some_ way to show error on initial load
2021-11-14 09:48:41 -08:00
Kartik K. Agaram
4ab3ccebb5
more menu cleanup
2021-11-14 09:48:40 -08:00
Kartik K. Agaram
af4fbe97bf
.
2021-11-14 09:48:40 -08:00
Kartik K. Agaram
33331a7c50
drop support for non-image Lua scripts
...
We still have no story for error messages. We'll work on that next.
2021-11-14 07:59:15 -08:00
Kartik K. Agaram
b50e393770
draw the browse dialog the same way
2021-11-14 07:53:20 -08:00
Kartik K. Agaram
12d738d5ce
dialogs are not status messages
2021-11-14 07:34:23 -08:00
Kartik K. Agaram
b4e3936170
smarter image browsing
...
- distinguish between unused functions and data
- don't hardcode a specific convention for the curses window object
2021-11-14 07:11:30 -08:00
Kartik K. Agaram
5be743324c
slightly more robust on-disk format
...
Looks like Lua supports a little bit of programmability in its
multi-line string literals. Even though I can't find this documented
anywhere.
2021-11-14 00:52:25 -08:00
Kartik K. Agaram
b64a21771e
janky way to cancel browsing
2021-11-14 00:38:00 -08:00
Kartik K. Agaram
d9aac11889
slightly more obvious browse dialog
2021-11-14 00:27:59 -08:00
Kartik K. Agaram
9db1cd174f
cleaner dialogs
2021-11-14 00:23:20 -08:00
Kartik K. Agaram
e451206e06
no, use Esc to cancel
...
It inserts an ugly pause for ghastly historical reasons having to do
with the origins of terminals. But hopefully this isn't a common case.
2021-11-14 00:07:28 -08:00
Kartik K. Agaram
c5261224df
use word at cursor when it's not at start of line
2021-11-14 00:02:04 -08:00
Kartik K. Agaram
8e9534ed4f
editor: use ctrl-g to cancel dialogs
2021-11-13 23:59:05 -08:00
Kartik K. Agaram
711d764b37
jump to word at cursor by default
2021-11-13 23:55:08 -08:00
Kartik K. Agaram
812b930815
ctrl-u to clear response in go menu
2021-11-13 23:27:51 -08:00
Kartik K. Agaram
d79e394a30
reset cursor position when switching definitions
2021-11-13 23:27:06 -08:00
Kartik K. Agaram
3c2a5e26ae
.
2021-11-13 23:22:00 -08:00
Kartik K. Agaram
c60863347a
a larger test image
2021-11-13 23:19:07 -08:00
Kartik K. Agaram
902ce6009d
cleaner layout for a function's code and data
2021-11-13 23:14:52 -08:00
Kartik K. Agaram
0e74056cbb
.
2021-11-13 22:48:59 -08:00
Kartik K. Agaram
e990682fb2
.
2021-11-13 22:48:14 -08:00
Kartik K. Agaram
55302fd877
.
2021-11-13 22:45:44 -08:00
Kartik K. Agaram
a0dbc38c34
generalize kilo's hard-coded multiline C syntax
2021-11-13 22:39:28 -08:00
Kartik K. Agaram
308cb7acbe
.
2021-11-13 22:02:30 -08:00
Kartik K. Agaram
485cd25739
fix for editor highlighting
...
Bug introduced during the transition to ncurses.
2021-11-13 22:00:50 -08:00
Kartik K. Agaram
a7139a6b14
clean up after the editor
...
Even though we don't need to leave ncurses mode, there's still a process
boundary to clean up before.
2021-11-13 21:33:12 -08:00
Kartik K. Agaram
da76ec44f1
.
2021-11-13 21:25:52 -08:00
Kartik K. Agaram
88f4b1bb2b
.
2021-11-13 21:23:14 -08:00
Kartik K. Agaram
90f86daf1c
kill highlighting flags
...
Looks like they were never used in original Kilo.
2021-11-13 21:20:30 -08:00
Kartik K. Agaram
a655059c8d
replace Kilo's raw terminal handling with ncurses
...
This was on my todo list. What made it urgent was finding that calling
getch() even once while in ncurses caused Kilo to stop detecting arrow
keys. No need to debug that sort of nonsense.
2021-11-13 21:20:30 -08:00
Kartik K. Agaram
625a66e196
avoid side-effects on the Lua stack
2021-11-13 17:48:04 -08:00
Kartik K. Agaram
12b2a44cf6
stop leaking memory
2021-11-13 17:46:08 -08:00
Kartik K. Agaram
398112f756
memory corruption bug
...
I was saving an address on the stack to a global, and it was getting
clobbered later. This is the sort of thing I completely eliminated in
https://github.com/akkartik/mu :/
Now I'm taking a leaf out of the Mu playbook and leaking a little bit of
memory every time I switch definitions.
2021-11-13 17:42:39 -08:00
Kartik K. Agaram
51378afb2a
.
2021-11-13 16:53:39 -08:00
Kartik K. Agaram
c34db20756
very rudimentary definition browser
...
Never shows definitions that were never called. Including non-functions.
2021-11-13 16:36:12 -08:00
Kartik K. Agaram
7a24bed432
.
2021-11-13 16:28:13 -08:00
Kartik K. Agaram
998e666958
.
2021-11-13 16:13:05 -08:00
Kartik K. Agaram
5bf5e47077
.
2021-11-13 16:13:05 -08:00
Kartik K. Agaram
647a2520d6
shield kilo.c from teliva_editbuffer detail
2021-11-13 16:13:05 -08:00
Kartik K. Agaram
ee0e7c36f5
.
2021-11-13 15:11:03 -08:00
Kartik K. Agaram
4e62aa95b0
.
2021-11-13 15:07:28 -08:00
Kartik K. Agaram
cbd5e7d552
.
2021-11-13 15:07:14 -08:00
Kartik K. Agaram
e06a7b1a7b
.
2021-11-13 15:00:49 -08:00
Kartik K. Agaram
33b705282d
.
2021-11-13 14:59:22 -08:00
Kartik K. Agaram
7623e7069a
clean up experiment from previous commit
2021-11-13 10:10:16 -08:00
Kartik K. Agaram
5a44605143
instrumenting function calls with their depth
2021-11-13 08:16:41 -08:00
Kartik K. Agaram
0f4faf0e53
start using static linkage like the rest of Lua
2021-11-13 05:14:41 -08:00
Kartik K. Agaram
49a09cceec
learning about Lua's debug infrastructure
...
https://www.lua.org/pil/23.2.html
2021-11-11 22:05:15 -08:00