Commit Graph

16 Commits

Author SHA1 Message Date
Chris Titus
eb192d23ba
Revert "Removed an unused var (#535)" (#538)
This reverts commit 8397b04472.
2024-09-19 13:44:04 -05:00
Adam Perkowski
8397b04472
Removed an unused var (#535) 2024-09-19 13:42:50 -05:00
JEEVITHA KANNAN K S
176ce1f4b9
Seperate style and title variables (#537)
Added lj's thought process from https://github.com/ChrisTitusTech/linutil/pull/490

Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
2024-09-19 13:41:23 -05:00
Adam Perkowski
d0ff354c49
Collapsed if statements (#534) 2024-09-19 13:29:08 -05:00
Liam
a5b3df0776
Refactor various components of Rust code (#490)
* 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>
2024-09-19 13:18:55 -05:00
JEEVITHA KANNAN K S
a747f80c85
feat: Multi selection and installation (#338)
* Fix conflicts

* Fix cmd running when selected is directory

* Clean comments
2024-09-19 13:15:30 -05:00
JEEVITHA KANNAN K S
831f71bf43
Fix description and preview hints (#495) 2024-09-19 12:24:56 -05:00
JEEVITHA KANNAN K S
197f359c45
Refactor tab (#347)
Co-authored-by: Chris Titus <contact@christitus.com>
2024-09-18 21:22:43 -05:00
cartercanedy
1ea326747a
fix: Fixup preview rendering and logic of preview key binding being shown in shortcut list (#387)
* 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>
2024-09-18 21:00:09 -05:00
JEEVITHA KANNAN K S
a7e6ea0246
feat: Command Description (#437)
* Implement about page

Add title

Add hints

* Add descriptions for commands

* Refactor about to description
2024-09-18 19:17:08 -05:00
JEEVITHA KANNAN K S
fde25afcbd
feat: Implement minimum TUI size (#425)
* 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>
2024-09-18 13:49:33 -05:00
Chris Titus
0eafa7b54c
Merge branch 'main' into testing-9 2024-09-18 13:02:19 -05:00
nnyyxxxx
3f67abc918 fix typos 2024-09-14 11:30:03 -04:00
Carter Canedy
84b5a2ebdd exit on control-c chord, don't exit preview on q keypress, remove superfluous screen clear and cursor position reset 2024-09-13 12:27:34 -07:00
Liam
82b89efdb2
Merge remote-tracking branch 'upstream/main' into restructure_linutil 2024-09-11 15:21:50 -07:00
Liam
87869593a5
refactor: Split linutil into TUI and Core crates 2024-09-05 23:37:05 -07:00