ToBeDone...
- 3 Devlogs
- 9 Total hours
A simple cross-platform TUI note-taking tool, with markup support and memory. written in Rust with Ratatui
A simple cross-platform TUI note-taking tool, with markup support and memory. written in Rust with Ratatui
DevLog[3] - “This Takes Way Too Long”
Hey everyone!!
For this log I have prepared a delightful… nevermind, this is all tech stuff. :sadge
Never the less we will take a look! the main things I did was adding cursor support and improving input handling, which went from temporary to (practically) production!
The other part (the hard part that took like two hours) was adding the cursor. I hate this thing. The cursor made the program panic in so many ways that I stopped counting. also figuring out how to even add it was another hour or two just in research (this ended up as like three lines btw) for anyone wondering, the cursor is held in the main struct as it’s own struct of two u16 variables which are added (or removed from) whenever the arrow keys are pressed. The displayed block is Ratatui’s default cursor that took me a million years to find. :sob
Anyway, I have attached a video of most of the programs capabilities (I forgot to film the recent option and am too tired to do it again, sorry) [the hello and goodbye notes were not there initially]
DevLog[2] - “File Reader”
Hiiiiii
In this devlog I have implemented all of the logic to read files, save them to the main app struct and then save a symlink that let’s you access the last used note without specifying its title. (currently everything is linux only, cross-platform support will come later)
(explanation for the screenshots: both commands shown in fig. 1 have the same output [shown in fig. 2.])
DevLog[1] - POC
Hey! in this devlog I implemented the main TUI function, though I have not yet implemented a good way to control it (currently I am not even checking which key was pressed or if the event was a key press…), and a little Sample text file for testing.
I don’t really have much to add, I am still new to Rust and Ratatui so I am very slow. (sorry :sob)
Thanks for reading! :purple-heart