* fix: getting locked out when running script
* Use success and fail colors and reorder imports
Use theme color instead of using ratatui::Color for running_command success and fail + search preview text color + min tui warning color, add colors for confirmation prompt, fix inverted success and fail colors
* Remove redundant code in themes
Removed redundant match statement with a function
* Fix scroll beyond list, color bleeding and refact in confirmation.rs
Remove unnecessary usage of pub in ConfirmPropmt struct fields, simplify numbering, prevent scrolling beyond list, fix color bleeding
* Implement case insensitive, fix word disappearing bug
Use regex for case insesitive finding, implement String instead of char<Vec>, fix word disappearing by recalculating the render x for preview text
* Revert "Remove redundant code in themes"
This reverts commit 3b7e859af8.
* Reference instead of passing the vector
* Revert regex and String implementation
Use Vec<char> for search_input to prevent panics when using multi-byte characters, use lowercase conversion instead of regex, Added comments for clarity
* Replace ansi and text wrapping code with ratatui
Replaced ansi related code for tree sitter highlight with direct ratatui::text. Cache the processed text in appstate to remove processing of text for every frame render.Create paragraph instead of list so that scroll and wrapping can be done without external crates. Add caps keys for handle_key_event.
* Fix conflicts
* Reference instead of borrowing commands, refact mut variables
Reference instead of borrowing commands from state, Refactor draw function variables to immutable, calculate innersize from block instead of manual definition
* Update tui/src/filter.rs
Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
* Rendering optimizations and function refactors
Handle `find_command` inside state itself -> `get_command_by_name`. Move tips to a seperate file for modularity. Pass the whole args to state instead of seperate args. Use const for float and confirmation prompt float sizes. Add the `longest_tab_length` to appstate struct so that it will not be calculated for each frame render use static str instead String for tips. Use function for spawning confirmprompt. Merge command list and task items list rendering a single widget instead of two. Remove redundant keys in handle_key. Optimize scrolling logic. Rename `toggle_task_list_guide` -> `enable_task_list_guide`
* Cleanup
Use prelude for ratatui imports. Use const for theme functions, add
missing hints
* Update deps, remove unused temp-dir
* Add accidentally deleted preview.tape
Add labels + Wait 2sec after program ends
* Add fields to config files
Skip Confirmation, Bypass Size
* Remove accidentally commited config file
---------
Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
* implement a root check menu
* code needs to be readable
* rephrase it a lil bit
* disregard escalation tool variable if found as root
* refactor: Call root check from within AppState constructor (#7)
* remove duplicate check
* add comment back
---------
Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
* feat: Add automation based on config file
* docs: add configuration to the manpage & README
* update roadmap
---------
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Chris Titus <contact@christitus.com>
* refactor: Export ego-tree from linutil core, rather than workspace
* refactor: Improve code formatting
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* implement dynamic auto updating word wrapping functionality
* run fmt
* remove dupe space
* run fmt
* add remove comments back
* fix compilation errors
* run fmt
* run docgen
* run docgen
* fix conflicts
* run cargo xtask docgen
* use boolean rather than enum
---------
Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
* implement fish like tab completion
* grey the pv out and convert to lowercase
* run fmt
* do not tabcomplete if the user hits enter
* fix
* fix lints
* run docgen
---------
Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* do not exit linutil in confirmation prompt when q is pressed
* remove cap support
* add ``ctrl + c`` exiting
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
---------
Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* dont allow the user to bring up the command desc if there is none
* obey our god lints
---------
Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
* dont allow scrolling when last line is visible
* apply changes proposed by adam
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
---------
Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* allow scrolling past last entry
* Update tui/src/state.rs
Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
* Update tui/src/state.rs
Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
* apply changes proposed by adam
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* apply changes proposed by adam round 2
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* undo changes proposed by adam in scroll up and down funcs
---------
Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* return user to their previous position if they enter a subdir
* fix lint
* implement changes proposed by adam
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* add newline back
* coalesce `visit_stack` and `position_stack` (#6)
---------
Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: cartercanedy <99052281+cartercanedy@users.noreply.github.com>
* organize shortcut list into a grid-like-pattern
* increase minimum size
* add newline back to satisfy lint
* decrease to 25
* optimization
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* satisfy lint
* implement some changes proposed by adam
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
---------
Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
* confirmation prompt
* actually implement scrolling
* finalize styling
* get rid of generics on AppState and Focus
* add bottom title as help text
* number formatting
I am so used to pressing q to quit everything.
Let me know if this is not desired, because I remember using it a lot,
so if it was removed maybe there was a reason?
Co-authored-by: Chris Titus <contact@christitus.com>