Mariano Guerra12/02/2021, 8:42 AM
Konrad Hinsen12/02/2021, 4:29 PM
Kartik Agaram12/02/2021, 5:25 PM
Konrad Hinsen12/02/2021, 5:39 PM
Kartik Agaram12/02/2021, 5:47 PM
? Does that work like backspace for you?
in reverse video indicates that backspace on your keyboard is emitting
, which is the `delete` keycode in ASCII. I thought only Macs did that.. 🤔
Of course I opened counter.tlv in Emacs in order to fix my mess, but to my surprise I found a lot more stuff in there than just the Lua code.tlv files are currently a single literal Lua array consisting of a series of edits. Each edit consists of the final state (a Lua string between
) of a single definition when you switched files or ran the program. Each edit also contains a couple of bits of metadata: a timestamp and an optional note (commit message). Unlike other version control systems, Teliva lets you modify the description of a commit after the fact. The code itself is immutable, though. Anyways, if you go to the bottom of the file you should see your most recent edits.
Konrad Hinsen12/03/2021, 9:58 AM
Kartik Agaram12/04/2021, 2:17 AM
hotkey a bit more discoverable. I'd appreciate some eyes on the state of the menu in various contexts: • big picture view • recent changes • editing a definition • ctrl-f when editing a definition • ctrl-g when editing a definition Do the tips make sense? In particular, I'm not sure how to describe what the backspace key does. Feedback appreciated.
Konrad Hinsen12/06/2021, 3:43 PM
. The menu keeps getting more complete, but it still lacks something essential: a back button. It's the undo of navigation, the button you hit when you moved somewhere by accident, or just to take a quick look at something.
(go) is useful but also confusing. When I edit
, I start with the cursor at the beginning. Now I press
and the menu proposes to go to
. An excellent idea! But... all I get is a blank screen. What would I expect? Probably a help page explaining why
is not something I can edit.
, and Teliva just quit. Worse: I can't get back in. Running the same command line again has no effect.
Kartik Agaram12/06/2021, 4:03 PM
at src/teliva.h and then rerun
for your platform (
, etc.) (The 'solarized' isn't really, more just a sense of where I'm getting my inspiration. The default 256-color palette isn't really good enough for Solarized.)
Konrad Hinsen12/07/2021, 9:44 AM
J. Ryan Stinnett12/07/2021, 9:50 AM
Kartik Agaram12/07/2021, 4:01 PM
to edit • Select any function • Position the cursor on any Lua keyword. The cursor in the editor starts out on the word
, which will do. • Hit
and jump to the word at the cursor. You'll now see a blank editor. ...and you're already doomed. All ways to go elsewhere or run the program will drop a definition for the keyword into the image file. And running with any such definition causes Teliva to just silently quit. Now trying to understand why this happens.
. At least, I haven't been able to find any sign of a C interface that parses a chunk of Lua without also executing it. In still other words, Lua doesn't expose its AST to manipulation.
Konrad Hinsen12/12/2021, 6:41 AM