You are browsing as a guest. Sign up (or log in) to start making projects!

9h 0m 44s logged

DevLog[6] - “Rebase Rebase Rebase Rebase Rebase”

Hi again! This… is a sad one.
But first, the accomplishments!! in this devlog I have:

  1. 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...)

  2. 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?)

  3. Moved the args struct into a static LazyLock<Mutex> which allows for a (relatively) safe global variable defined at runtime :3.

  4. 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 😭

0
3

Comments 0

No comments yet. Be the first!