* implement syntax highlighting for preview text
* remove errant lifetimes
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* remove errant lifetimes
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* update Cargo.lock
* only iterate over visible lines
* break lines up on init
* implement side scrolling
* Remove unnecessary #![soft_unstable]
This was accidentally left in from benching
---------
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* Fixed someone else's mistakes
* workflow now fails if clippy returns warnings
* refactor: Make base title variable constant
---------
Co-authored-by: Liam <lj3954@users.noreply.github.com>
* BIG CHANGES
* core metadata
* Added readme.md to the package
* Moved the crate back to tui
Co-authored-by: Liam <lj3954@users.noreply.github.com>
---------
Co-authored-by: Liam <lj3954@users.noreply.github.com>
* refactor: Simplify hint code, replacing while loop with fold iterator
* refactor: Add spacing to lines in a separate function
* refactor: Replace if let with map_or for better readability
* refactor: Remove unnecessary duplicate body from is_cmd function
* refactor: Create generic function to replace duplicate get_selected code
* refactor: Remove duplicate code, remove unnecessary nesting
* refactor: Move style into its own variable
* refactor: Use constants for min width and height
* refactor: Remove pointless duplicate variable
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* always check if selection is a command if list is focused
* clear float widget render area before rendering content
* Update hint.rs
* Update floating_text.rs
Thanks to @jeevithakannan2 for idea
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Implement minimum size
* Update tui/src/state.rs
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
---------
Co-authored-by: Chris Titus <contact@christitus.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>