Commit Graph

63 Commits

Author SHA1 Message Date
Jeevitha Kannan K S
42a7836b11
Merge branch 'main' into optimization 2024-11-15 18:50:12 +05:30
Adam Perkowski
2dabb934f7
fix: crate cache & versions (#949) 2024-11-14 17:30:48 -06:00
Jeevitha Kannan K S
85719251d3
Update deps, remove unused temp-dir 2024-11-13 03:09:38 +05:30
Jeevitha Kannan K S
2f1f5fd543
Fix conflicts 2024-11-11 22:23:28 +05:30
Jeevitha Kannan K S
0be3a44eb5
Merge branch 'main' into optimization 2024-11-11 22:20:36 +05:30
nyx
7147ed93e9
implement a root check menu (#927)
* 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>
2024-11-11 10:27:30 -06:00
zdiff
16dd91ca29
Reduce the size of the linutil binary by removing unused features from tui/Cargo.toml (#922)
Co-authored-by: zdiff <zdiff@localhost>
2024-11-11 10:23:54 -06:00
Jeevitha Kannan K S
10352c6254
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.
2024-11-11 20:29:55 +05:30
Jeevitha Kannan K S
2d1f5dbc80
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
2024-11-11 13:23:36 +05:30
Jeevitha Kannan K S
0b4f33c761
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
2024-11-10 21:48:05 +05:30
Jeevitha Kannan K S
8639da3855
feat: Command execution log (#898)
* feat: option to save logs

* refact: use time crate

* fix: panics

* hints

* update roadmap
2024-11-08 09:10:31 -06:00
Liam
980365f7c9
refactor: Re-export ego-tree dependency from linutil core (#811)
* refactor: Export ego-tree from linutil core, rather than workspace

* refactor: Improve code formatting

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2024-11-07 13:00:34 -06:00
Jeevitha Kannan K S
176b19d692
Use ratatui bundled crossterm (#805) 2024-11-06 16:29:52 -06:00
nyx
565f507190
implement word wrapping functionality (#755)
* 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>
2024-11-06 09:40:55 -06:00
dependabot[bot]
4c3cc75997
Bump clap from 4.5.19 to 4.5.20 (#825)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.19 to 4.5.20.
- [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.19...clap_complete-v4.5.20)

---
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-10-31 15:20:21 -05:00
dependabot[bot]
1730d9da21
Bump tree-sitter-highlight from 0.24.2 to 0.24.3 (#826)
Bumps [tree-sitter-highlight](https://github.com/tree-sitter/tree-sitter) from 0.24.2 to 0.24.3.
- [Release notes](https://github.com/tree-sitter/tree-sitter/releases)
- [Changelog](https://github.com/tree-sitter/tree-sitter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tree-sitter/tree-sitter/compare/v0.24.2...v0.24.3)

---
updated-dependencies:
- dependency-name: tree-sitter-highlight
  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-10-31 15:20:01 -05:00
JEEVITHA KANNAN K S
afa2afc0e8
chore: bump ratatui -> 0.29.0 (#865)
* chore: bump ratatui -> 0.29.0

* chore: bump ansi-to-tui -> 7.0.0

* chore: bump tui-term -> 0.2.0
2024-10-31 15:19:24 -05:00
Adam Perkowski
4ee27890f4
fix the repo (#889) 2024-10-31 14:49:15 -05:00
Adam Perkowski
01d571fc9e
📔 docs: auto generation (#784)
* remove contributing guidelines duplicate

`docs/contributing.md` is now auto generated

* Commit Contributing Guidelines

* core `xtask` functionality

* almost there

* write panic

* almost almost there

* there.

* remove empty descriptions

* better contributing.md comment

* Commit Contributing Guidelines

* remove entries without descriptions

---------

Co-authored-by: adamperkowski <adamperkowski@users.noreply.github.com>
2024-10-08 16:12:47 -05:00
dependabot[bot]
cab73530fe
Bump clap from 4.5.18 to 4.5.19 (#781)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.18 to 4.5.19.
- [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.18...clap_complete-v4.5.19)

---
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-10-08 16:00:01 -05:00
dependabot[bot]
1e92f48c61
Bump tree-sitter-highlight from 0.23.0 to 0.24.2 (#780)
Bumps [tree-sitter-highlight](https://github.com/tree-sitter/tree-sitter) from 0.23.0 to 0.24.2.
- [Release notes](https://github.com/tree-sitter/tree-sitter/releases)
- [Changelog](https://github.com/tree-sitter/tree-sitter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tree-sitter/tree-sitter/compare/v0.23.0...v0.24.2)

---
updated-dependencies:
- dependency-name: tree-sitter-highlight
  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-10-08 15:59:21 -05:00
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
d3a801d49b
Update linutil cargo version (#716) 2024-10-01 16:50:16 -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
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
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
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
Liam
82b89efdb2
Merge remote-tracking branch 'upstream/main' into restructure_linutil 2024-09-11 15:21:50 -07:00
Chris Titus
559bd705ab Update Cargo.lock 2024-09-10 15:53:29 -05:00
Chris Titus
e5f324caa7 Merge branch 'main' into pr/adamperkowski/271 2024-09-10 15:51:57 -05:00
Chris Titus
95cd2e233b Update Cargo.lock 2024-09-10 15:25:58 -05:00
Chris Titus
bc8b19962b update ratatui and cargolock 2024-09-10 15:21:59 -05:00
Chris Titus
28309010a1 remove cargo.lock 2024-09-10 14:59:08 -05:00
Liam
87869593a5
refactor: Split linutil into TUI and Core crates 2024-09-05 23:37:05 -07:00
Adam Perkowski
b1738f555e
Bumped ratatui & crossterm to v0.28.1
Changes made:
- updated `frame.set_cursor()` to `frame.set_cursor_position()`, since `set_cursor` is [deprecated](https://github.com/ratatui/ratatui/blob/main/BREAKING-CHANGES.md\#backend-trait-migrates-to-getset_cursor_position-1284)
- updated `frame.size()` to `frame.area()`, since `size` is [deprecated and renamed](https://github.com/ratatui/ratatui/blob/main/BREAKING-CHANGES.md\#framesize-is-deprecated-and-renamed-to-framearea)
- performed a clean build to avoid any possible issues
2024-09-06 00:33:35 +02:00
Chris Titus
43ee314e33
Merge branch 'main' into dwm-fixes 2024-09-03 17:29:33 -05:00
Chris Titus
f5532d1623 remove old compile-time 2024-09-02 16:56:41 -05:00
Chris Titus
8d600f8f2f Compile date and version fix 2024-09-02 16:33:47 -05:00
Chris Titus
91cb806c22
Merge branch 'main' into refactor_search 2024-08-28 20:44:53 -05:00
Chris Titus
13b8f2f615
Merge pull request #179 from ChrisTitusTech/dependabot/cargo/clap-4.5.16
Bump clap from 4.5.13 to 4.5.16
2024-08-28 20:27:33 -05:00
dependabot[bot]
c9766c835f
Bump which from 6.0.2 to 6.0.3
Bumps [which](https://github.com/harryfei/which-rs) from 6.0.2 to 6.0.3.
- [Release notes](https://github.com/harryfei/which-rs/releases)
- [Changelog](https://github.com/harryfei/which-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/harryfei/which-rs/compare/6.0.2...6.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-26 19:57:02 +00:00
Liam
388c073116
refactor: Move search and filter logic to a separate module 2024-08-21 09:46:59 -07:00
dependabot[bot]
9bcac0f7af
Bump clap from 4.5.13 to 4.5.16
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.13 to 4.5.16.
- [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.13...clap_complete-v4.5.16)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-19 19:28:52 +00:00
Liam
4fb7fcca7a
feat: Add 'command_exists' precondition type 2024-08-16 08:48:09 -07:00
Liam
1d5b1e6676
Replace JSON with TOML 2024-08-14 23:09:31 -07:00
Liam
e73c978d95
feat: Update tabs.rs to use tab data 2024-08-14 13:55:03 -07:00