Mariano Guerra
Konrad Hinsen
12/02/2021, 4:29 PMKartik Agaram
Konrad Hinsen
12/02/2021, 5:39 PMKartik Agaram
ctrl-h
? 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
[==[
and ]==]
) 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 Hinsen
12/03/2021, 9:58 AMKartik Agaram
ctrl-h
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 Hinsen
12/06/2021, 3:43 PM^H
.
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.
^G
(go) is useful but also confusing. When I edit main
, I start with the cursor at the beginning. Now I press ^G
and the menu proposes to go to function
. An excellent idea! But... all I get is a blank screen. What would I expect? Probably a help page explaining why function
is not something I can edit.^e
while editing main
, and Teliva just quit. Worse: I can't get back in. Running the same command line again has no effect.Kartik Agaram
COLOR_SCHEME
at src/teliva.h and then rerun make
for your platform (make linux
, make macosx
, 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 Hinsen
12/07/2021, 9:44 AMJ. Ryan Stinnett
12/07/2021, 9:50 AMKartik Agaram
ctrl-e
to edit
• Select any function
• Position the cursor on any Lua keyword. The cursor in the editor starts out on the word function
, which will do.
• Hit ctrl-g
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.read
from eval
. 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 Hinsen
12/12/2021, 6:41 AM