Commit Graph

44 Commits

Author SHA1 Message Date
JEEVITHA KANNAN K S
fa8bb74527
Merge remote-tracking branch 'upstream/main' into multi-select-refact 2024-10-04 10:37:42 +05:30
JEEVITHA KANNAN K S
26d0adc829
Refact temp-dir (#749) 2024-10-03 14:20:50 -05:00
Adam Perkowski
3c4a5dcecd
vt100 patches (#743)
Co-authored-by: JEEVITHA KANNAN K S <ksjeevithakannan123@gmail.com>
2024-10-02 16:47:27 -05:00
JEEVITHA KANNAN K S
3796c7abdb
Add colors for nm cmds 2024-10-01 21:59:22 +05:30
JEEVITHA KANNAN K S
8edd12f0b4
Add per cmd multi-selection 2024-10-01 20:49:57 +05:30
Adam Perkowski
2d4c9aa8e3
bump crates to 24.9.28 (#693) 2024-09-30 17:05:05 -05:00
cartercanedy
7cc38df7e1
Feat: confirmation prompts (#687)
* confirmation prompt

* actually implement scrolling

* finalize styling

* get rid of generics on AppState and Focus

* add bottom title as help text

* number formatting
2024-09-30 16:48:22 -05:00
dependabot[bot]
6a8987b35a
Bump unicode-width from 0.1.13 to 0.2.0 (#661)
Bumps [unicode-width](https://github.com/unicode-rs/unicode-width) from 0.1.13 to 0.2.0.
- [Commits](https://github.com/unicode-rs/unicode-width/commits)

---
updated-dependencies:
- dependency-name: unicode-width
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 16:14:26 -05:00
dependabot[bot]
8096a45e58
Bump clap from 4.5.17 to 4.5.18 (#660)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.17 to 4.5.18.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.17...clap_complete-v4.5.18)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 16:14:07 -05:00
JEEVITHA KANNAN K S
66b92c84b0
feat: Add scroll (#643)
* Add scroll

* Update running_command.rs

* Add hints, Up and Down to terminal
2024-09-30 15:46:05 -05:00
JEEVITHA KANNAN K S
b549510895
Fix selected-cmd bug (#638) 2024-09-30 15:23:16 -05:00
Afonso Franco F.
8111649c8c
Restore behaviour of closing the pop-up with "q" (#634)
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>
2024-09-30 15:12:16 -05:00
cartercanedy
a2480bf1bd
implement dynamic shortcut list sizing (#668)
* implement dynamic shortcut list sizing

* Remove all dynamic allocations from shortcut creation
2024-09-28 14:05:19 -05:00
Chris Titus
f89c71c9df new release 2024-09-22 22:54:31 -05:00
Chris Titus
bc5b1184c7 update ver 2024-09-22 14:47:09 -05:00
Adam Perkowski
62bcac4853
feat(task list): task names shortcuts (#628)
* Rust setup

* Updated tasklists

* More space
2024-09-22 14:08:27 -05:00
JEEVITHA KANNAN K S
e8b208f2b4
Fix cd multi-selection (#626) 2024-09-22 13:24:06 -05:00
JEEVITHA KANNAN K S
8637adf373
Hints title refactor (#608) 2024-09-22 11:53:04 -05:00
JEEVITHA KANNAN K S
b69e823375
fix: Min-term panic (#607)
* Fix min-term panic

* Align center
2024-09-22 11:51:25 -05:00
Liam
aca42f2411
fix: Respect shebangs in scripts (#606)
* Cargo will rebuild if anything changes in src/, recursively. E.g src/commands/ is also checked

* No need to make a generic, we only use 1 backend

* Delete the imports that are no longer needed

* Replace the weird struct hack with an enum

* Delete a useless line

* The None should be explicit

* Support for non-english keyboard input

* Commit Linutil

* refactor: Improve conciseness of char passthrough

* fix: Respect shebang in script files

* refactor: More efficiently handle shebangs

* refactor: Remove unnecessary error handling

If 2 characters can be read from the file, a line must exist

* fix: Drop accidentally added file

* fix: Ensure that executable exists before displaying entry

* fix: Explicitly check if the executable is a file

* refactor: Replace unnecessary import

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* fix: Check whether the file is directly executable

* fix: Comply with rustfmt

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

---------

Co-authored-by: Andrii Dokhniak <adokhniak@gmail.com>
Co-authored-by: JustLinuxUser <JustLinuxUser@users.noreply.github.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
2024-09-22 11:50:43 -05:00
Liam
446d52ce7c
fix: Correctly enter up directories (..) (#598) 2024-09-22 11:11:43 -05:00
Adam Perkowski
f6748caab7
feat: short disclaimer-like script descriptions (#593)
* names updated

Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>

* idea

* Added missing tasks

* Added a title

---------

Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
2024-09-22 11:10:05 -05:00
cartercanedy
76a4ffc70e
feat: implement syntax highlighting for preview text (#568)
* 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>
2024-09-22 10:56:30 -05:00
Adam Perkowski
f2332a7da2
Fixed some Rust code structure and modified the workflow to fail if clippy returns warnings (#569)
* 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>
2024-09-21 09:08:24 -05:00
Liam
1d5807ad51
Refactor tips (#575)
* refactor: Move all get_random_tip functionality to its own function

* fix: Only depend on rand when building the tips feature
2024-09-20 19:12:26 -05:00
Adam Perkowski
1a21753831
Moved tips to a feature (#566) 2024-09-20 10:48:09 -05:00
Guru Swarupa
4d6d1b22f0
added tips. (#565)
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
2024-09-20 10:09:08 -05:00
Adam Perkowski
216f1a4836
Restructure the crates (#549)
* 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>
2024-09-19 19:09:53 -05:00
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