DevLog[6] - “Rebase Rebase Rebase Rebase Rebase”
Hi again! This… is a sad one.
But first, the accomplishments!! in this devlog I have:
-
Refactored the file.rs file (that saves/reads the files) to remove things like creating an uninitialized variable just to initialize it 3.14 seconds later in an if statement, in favor of initializing the variable with the if statement. (
let id = if input...) -
Changed the massive iterator function line for cutting away from the displayed strings into the
paragraph.scroll()function (which like, since when does that exist yk?) -
Moved the args struct into a
static LazyLock<Mutex>which allows for a (relatively) safe global variable defined at runtime :3. -
Added modifier parsing for proper hotkeys and an options menu (internally called
FormatDisplay, for reasons to be explained later) to show all the hotkeys.
Turns out 9 hours is a lot lol.
WAIT NO I DON’T WANN-
Markdown
Or well, the lack of it. over time while trying to work on this I realised that full markdown support is wayyyyy out of the scope of my (and the TUI’s) capabilities. {more info in the readme} after testing a few options (including a line-by-line implementation) I had found a silver-lining:
FormatDisplay
The menu is a new widget in the program, it simply shows the available keybinds, with SUPER keybinds formatting text, while control does things in the program. Do be warned though. I did not have time to make the actual functionality 😭
) It’s called movement. I have spent the last (non-consecutive) 6 hours to make something not too interesting, but not too uninteresting. (👀 )
(/j)