Skip to content

Commit

Permalink
Replace ansi and text wrapping code with ratatui
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeevithakannan2 committed Nov 11, 2024
1 parent 2d1f5db commit 10352c6
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 296 deletions.
73 changes: 0 additions & 73 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions tui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ rand = { version = "0.8.5", optional = true }
linutil_core = { path = "../core", version = "24.9.28" }
tree-sitter-highlight = "0.24.3"
tree-sitter-bash = "0.23.1"
textwrap = "0.16.1"
anstyle = "1.0.8"
ansi-to-tui = "7.0.0"
zips = "0.1.7"
unicode-width = "0.2.0"

[[bin]]
Expand Down
Loading

0 comments on commit 10352c6

Please sign in to comment.