Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | indent | Kartik K. Agaram | 2021-11-28 | 1 | -40/+40 | |
| | ||||||
* | fix half-assed mac os backspace commit | Kartik K. Agaram | 2021-11-28 | 1 | -2/+2 | |
| | ||||||
* | editing notes sucks a little less | Kartik K. Agaram | 2021-11-28 | 1 | -2/+8 | |
| | | | | | | I think I've gotten rid of all the segfaults, but it's still pretty messed up: if you hit ctrl-g and go edit some definition, it doesn't get saved. You're just storing the edit in the note. | |||||
* | inline another function | Kartik K. Agaram | 2021-11-28 | 1 | -2/+2 | |
| | | | | | I'm going to give up on hiding teliva_editor_buffer from kilo. It was taking too much knowledge of extern function prototypes on both sides. | |||||
* | standardize filenames that teliva strews on disk | Kartik K. Agaram | 2021-11-28 | 1 | -2/+2 | |
| | | | | | We still need a proper story for file system side effects. But it's not time yet for sandboxing considerations. Soon, but not yet. | |||||
* | restore editor state from snapshot | Kartik K. Agaram | 2021-11-28 | 1 | -0/+18 | |
| | ||||||
* | save a snapshot of editor state across restarts | Kartik K. Agaram | 2021-11-28 | 1 | -0/+2 | |
| | | | | | | | | | | | | | | | | 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. | |||||
* | fix backspace on Mac | Kartik K. Agaram | 2021-11-28 | 1 | -1/+1 | |
| | | | | | I'm deliberately restricting this incompatibility to the editor environment for now. | |||||
* | editor hotkeys: sol/eol | Kartik K. Agaram | 2021-11-28 | 1 | -4/+19 | |
| | | | | | I'm growing attached to ^e, so mildly breaking with convention there. Perhaps this is a bad idea. | |||||
* | dedup an enum | Kartik K. Agaram | 2021-11-26 | 1 | -19/+1 | |
| | ||||||
* | new shortcut: return to big-picture view | Kartik K. Agaram | 2021-11-25 | 1 | -3/+18 | |
| | ||||||
* | make upstream kilo ASan-clean | Kartik K. Agaram | 2021-11-25 | 1 | -3/+4 | |
| | | | | | | Many thanks to dirkf for https://github.com/antirez/kilo/pull/73! However, teliva is still not ASan-clean. | |||||
* | standardize warning flags everywhere | Kartik K. Agaram | 2021-11-22 | 1 | -1/+1 | |
| | | | | | | | | | | I'd like to enable -Wextra as well, but that creates some false positives. I've at least made my changes clean w.r.t. -Wextra. Now we have 4 remaining warnings with gcc 9.3 that seem genuine. Need to fix those. | |||||
* | . | Kartik K. Agaram | 2021-11-22 | 1 | -13/+8 | |
| | ||||||
* | cleaner error handling | Kartik K. Agaram | 2021-11-14 | 1 | -4/+2 | |
| | ||||||
* | remain in editor on error | Kartik K. Agaram | 2021-11-14 | 1 | -0/+11 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-14 | 1 | -1/+1 | |
| | ||||||
* | more menu cleanup | Kartik K. Agaram | 2021-11-14 | 1 | -7/+12 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-14 | 1 | -2/+2 | |
| | ||||||
* | draw the browse dialog the same way | Kartik K. Agaram | 2021-11-14 | 1 | -1/+1 | |
| | ||||||
* | dialogs are not status messages | Kartik K. Agaram | 2021-11-14 | 1 | -3/+8 | |
| | ||||||
* | cleaner dialogs | Kartik K. Agaram | 2021-11-14 | 1 | -22/+59 | |
| | ||||||
* | no, use Esc to cancel | Kartik K. Agaram | 2021-11-14 | 1 | -5/+5 | |
| | | | | | 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. | |||||
* | use word at cursor when it's not at start of line | Kartik K. Agaram | 2021-11-14 | 1 | -2/+4 | |
| | ||||||
* | editor: use ctrl-g to cancel dialogs | Kartik K. Agaram | 2021-11-13 | 1 | -5/+5 | |
| | ||||||
* | jump to word at cursor by default | Kartik K. Agaram | 2021-11-13 | 1 | -0/+28 | |
| | ||||||
* | ctrl-u to clear response in go menu | Kartik K. Agaram | 2021-11-13 | 1 | -0/+3 | |
| | ||||||
* | reset cursor position when switching definitions | Kartik K. Agaram | 2021-11-13 | 1 | -0/+2 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-13 | 1 | -1/+0 | |
| | ||||||
* | cleaner layout for a function's code and data | Kartik K. Agaram | 2021-11-13 | 1 | -3/+0 | |
| | ||||||
* | generalize kilo's hard-coded multiline C syntax | Kartik K. Agaram | 2021-11-13 | 1 | -21/+28 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-13 | 1 | -6/+2 | |
| | ||||||
* | fix for editor highlighting | Kartik K. Agaram | 2021-11-13 | 1 | -1/+2 | |
| | | | | Bug introduced during the transition to ncurses. | |||||
* | kill highlighting flags | Kartik K. Agaram | 2021-11-13 | 1 | -9/+5 | |
| | | | | Looks like they were never used in original Kilo. | |||||
* | replace Kilo's raw terminal handling with ncurses | Kartik K. Agaram | 2021-11-13 | 1 | -355/+91 | |
| | | | | | | 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. | |||||
* | stop leaking memory | Kartik K. Agaram | 2021-11-13 | 1 | -2/+3 | |
| | ||||||
* | shield kilo.c from teliva_editbuffer detail | Kartik K. Agaram | 2021-11-13 | 1 | -4/+4 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-13 | 1 | -1/+1 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-13 | 1 | -4/+2 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-13 | 1 | -3/+3 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-13 | 1 | -11/+2 | |
| | ||||||
* | start using static linkage like the rest of Lua | Kartik K. Agaram | 2021-11-13 | 1 | -46/+42 | |
| | ||||||
* | create empty file when navigating to empty definition | Kartik K. Agaram | 2021-11-11 | 1 | -1/+1 | |
| | ||||||
* | fix incorrect hotkey in menu | Kartik K. Agaram | 2021-11-11 | 1 | -2/+2 | |
| | ||||||
* | ctrl-g to edit a different definition | Kartik K. Agaram | 2021-11-11 | 1 | -1/+58 | |
| | ||||||
* | pass lua_State into editor | Kartik K. Agaram | 2021-11-11 | 1 | -3/+3 | |
| | ||||||
* | reorg | Kartik K. Agaram | 2021-11-11 | 1 | -48/+0 | |
| | ||||||
* | edit a single hard-coded definition in the image | Kartik K. Agaram | 2021-11-10 | 1 | -0/+50 | |
| | | | | | | | | | | | | | 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. | |||||
* | switch menu bars to reverse video | Kartik K. Agaram | 2021-11-07 | 1 | -5/+5 | |
| | ||||||
* | escape hatch to quit with a pending error | Kartik K. Agaram | 2021-11-06 | 1 | -2/+10 | |
| |