Radish alpha
r
rad:z39mP9rQAaGmERfUMPULfPUi473tY
Radicle terminal user interface
Radicle
Git
Update ratatui and widget deps
Merged did:key:z6MkswQE...2C1V opened 1 year ago
3 files changed +46 -27 171677d4 570519a1
modified Cargo.lock
@@ -929,9 +929,9 @@ dependencies = [

[[package]]
name = "heck"
-
version = "0.4.1"
+
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"

[[package]]
name = "hermit-abi"
@@ -992,12 +992,6 @@ dependencies = [
]

[[package]]
-
name = "indoc"
-
version = "2.0.4"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "1e186cfbae8084e513daff4240b4797e342f988cecda4fb6c939150f96315fd8"
-

-
[[package]]
name = "inout"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1035,9 +1029,9 @@ dependencies = [

[[package]]
name = "itertools"
-
version = "0.12.1"
+
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
+
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
dependencies = [
 "either",
]
@@ -1925,22 +1919,23 @@ dependencies = [

[[package]]
name = "ratatui"
-
version = "0.26.1"
+
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "bcb12f8fbf6c62614b0d56eb352af54f6a22410c3b079eb53ee93c7b97dd31d8"
+
checksum = "d16546c5b5962abf8ce6e2881e722b4e0ae3b6f1a08a26ae3573c55853ca68d3"
dependencies = [
 "bitflags 2.4.1",
 "cassowary",
 "compact_str",
-
 "indoc",
 "itertools",
 "lru",
 "paste",
 "stability",
 "strum",
-
 "termion 3.0.0",
+
 "strum_macros",
+
 "termion 4.0.2",
 "time 0.3.34",
 "unicode-segmentation",
+
 "unicode-truncate",
 "unicode-width",
]

@@ -2379,12 +2374,12 @@ dependencies = [

[[package]]
name = "stability"
-
version = "0.1.1"
+
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "ebd1b177894da2a2d9120208c3386066af06a488255caabc5de8ddca22dbc3ce"
+
checksum = "d904e7009df136af5297832a3ace3370cd14ff1546a232f4f185036c2736fcac"
dependencies = [
 "quote",
-
 "syn 1.0.109",
+
 "syn 2.0.48",
]

[[package]]
@@ -2404,9 +2399,9 @@ dependencies = [

[[package]]
name = "strum_macros"
-
version = "0.26.1"
+
version = "0.26.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "7a3417fc93d76740d974a01654a09777cb500428cc874ca9f45edfe0c4d4cd18"
+
checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
dependencies = [
 "heck",
 "proc-macro2",
@@ -2504,6 +2499,18 @@ dependencies = [
]

[[package]]
+
name = "termion"
+
version = "4.0.2"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "1ccce68e518d1173e80876edd54760b60b792750d0cab6444a79101c6ea03848"
+
dependencies = [
+
 "libc",
+
 "libredox",
+
 "numtoa",
+
 "redox_termios",
+
]
+

+
[[package]]
name = "textwrap"
version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2796,20 +2803,20 @@ dependencies = [

[[package]]
name = "tui-textarea"
-
version = "0.4.0"
+
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "a3e38ced1f941a9cfc923fbf2fe6858443c42cc5220bfd35bdd3648371e7bd8e"
+
checksum = "4a13589ef83273780b53a0e0be49282cb5d9cc10727b6c580e8f11366ccb460c"
dependencies = [
 "ratatui",
-
 "termion 2.0.3",
+
 "termion 4.0.2",
 "unicode-width",
]

[[package]]
name = "tui-tree-widget"
-
version = "0.20.0"
+
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "a6201de8ad8d88cb6cac4cfe3436d9a1ea31c0732a7aec4c2cc3b23186ad7dcc"
+
checksum = "0ac69db35529be6a75f9d27516ff33df299e2e8e961a1986d52185cef0427352"
dependencies = [
 "ratatui",
 "unicode-width",
@@ -2864,6 +2871,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36"

[[package]]
+
name = "unicode-truncate"
+
version = "1.1.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "b3644627a5af5fa321c95b9b235a72fd24cd29c648c2c379431e6628655627bf"
+
dependencies = [
+
 "itertools",
+
 "unicode-segmentation",
+
 "unicode-width",
+
]
+

+
[[package]]
name = "unicode-width"
version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
modified Cargo.toml
@@ -34,7 +34,7 @@ radicle = { version = "0.11.0" }
radicle-term = { version = "0.10.0" }
radicle-cli = { version = "0.10.0" }
radicle-surf = { version = "0.18.0" }
-
ratatui = { version = "0.26.1", default-features = false, features = ["all-widgets", "termion"] }
+
ratatui = { version = "0.27.0", default-features = false, features = ["all-widgets", "termion"] }
simple-logging = { version = "2.0.2" }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
@@ -46,5 +46,5 @@ textwrap = { version = "0.16.0" }
thiserror = { version = "1" }
tokio = { version = "1.32.0", features = ["full"] }
tokio-stream = { version = "0.1.14" }
-
tui-textarea = { version = "0.4.0", default-features = false, features = ["termion"] }
-
tui-tree-widget = { version = "0.20.0" }
+
tui-textarea = { version = "0.5.1", default-features = false, features = ["termion"] }
+
tui-tree-widget = { version = "0.21.0" }
modified src/terminal.rs
@@ -5,6 +5,7 @@ use termion::input::TermRead;
use termion::raw::{IntoRawMode, RawTerminal};

use ratatui::prelude::*;
+
use ratatui::{TerminalOptions, Viewport};

use tokio::sync::mpsc::{self};