Pubat is my own tui version of bat but only for file viewing.
I was working on Pude text editor and pubat was previously was a text editor. I failed to make a real text editor due to many complexities so I ended up giving final touch to the project and made it shift into a file viewer.
Yes, In this project I used ai as I was learning rust via making this project so use of ai was either only for complex task or for learning new topics like Ropes, textwrap etc.
Well I dont know that this will be what you like because pubat uses :
-
Ropes data structure (via
Ropey crate) to load file in one go. -
Uses
Ratatuito draw a alternate tui i.e it it never prints to your terminal screen -
Uses
textwrap crateto display NoHyphenation ascii space text wrapping likeHelix. -
CrosstermforUp/Down/<C-q>keys. -
Displays line numbers that respect wrapping.
-
Uses
Syntectcrate for smart extension guided bat like highlighting. -
Uses
shellexpandto expand your path variables. -
Scrolls one line up and down and never remembers your last cursor position as it dont have any cursor at all.
-
Displays a file well in
Tokyonight moontheme sometimes better thanbatorcat.
This shell command will find you shell and append the Path variable to your shell. This is a safe independent of any shell script.
cargo install pubat