mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-02 08:01:47 -04:00
- Switch to using personal gits for ratatui and ratatui_image
- Activate vb64 feature on personal ratatui_image - Add more detailed instructions on help string
This commit is contained in:
Generated
+8
@@ -1002,6 +1002,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "ratatui"
|
name = "ratatui"
|
||||||
version = "0.26.3"
|
version = "0.26.3"
|
||||||
|
source = "git+https://github.com/itsjunetime/ratatui.git#0e185042b728b3bc8baff245154e6d200bb64f3b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.5.0",
|
"bitflags 2.5.0",
|
||||||
"cassowary",
|
"cassowary",
|
||||||
@@ -1020,6 +1021,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "ratatui-image"
|
name = "ratatui-image"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
|
source = "git+https://github.com/itsjunetime/ratatui-image.git?branch=vb64_on_personal#5ae2012631c0ca273deeab8f6444e9c2f0edaf51"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"dyn-clone",
|
"dyn-clone",
|
||||||
@@ -1028,6 +1030,7 @@ dependencies = [
|
|||||||
"rand",
|
"rand",
|
||||||
"ratatui",
|
"ratatui",
|
||||||
"rustix",
|
"rustix",
|
||||||
|
"vb64",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -1449,6 +1452,11 @@ version = "0.2.1"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
|
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "vb64"
|
||||||
|
version = "0.1.2"
|
||||||
|
source = "git+https://github.com/lukaslihotzki/vb64?branch=update#01e791186f57982511a3bcfb0d2316010c1adef0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "version-compare"
|
name = "version-compare"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
|
|||||||
+8
-4
@@ -6,10 +6,10 @@ edition = "2021"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
poppler-rs = { version = "0.23.0", features = ["v21_5"] }
|
poppler-rs = { version = "0.23.0", features = ["v21_5"] }
|
||||||
cairo-rs = { version = "0.19.4", features = ["png"] }
|
cairo-rs = { version = "0.19.4", features = ["png"] }
|
||||||
# ratatui = "0.26.3"
|
ratatui = { git = "https://github.com/itsjunetime/ratatui.git" }
|
||||||
ratatui = { path = "./ratatui" }
|
# ratatui = { path = "./ratatui" }
|
||||||
# ratatui-image = { version = "1.0.0", features = ["rustix"], default-features = false }
|
ratatui-image = { git = "https://github.com/itsjunetime/ratatui-image.git", branch = "vb64_on_personal", features = ["rustix", "vb64"], default-features = false }
|
||||||
ratatui-image = { path = "./ratatui-image", features = ["rustix"], default-features = false }
|
# ratatui-image = { path = "./ratatui-image", features = ["rustix", "vb64"], default-features = false }
|
||||||
crossterm = { version = "0.27.0", features = ["event-stream"] }
|
crossterm = { version = "0.27.0", features = ["event-stream"] }
|
||||||
image = { version = "0.25.1", features = ["png", "rayon"], default-features = false }
|
image = { version = "0.25.1", features = ["png", "rayon"], default-features = false }
|
||||||
notify = "6.1.1"
|
notify = "6.1.1"
|
||||||
@@ -18,3 +18,7 @@ futures-util = { version = "0.3.30", default-features = false }
|
|||||||
glib = "0.19.6"
|
glib = "0.19.6"
|
||||||
itertools = "*"
|
itertools = "*"
|
||||||
oxipng = { version = "9.1.1", default-features = false, features = ["parallel"] }
|
oxipng = { version = "9.1.1", default-features = false, features = ["parallel"] }
|
||||||
|
|
||||||
|
[profile.production]
|
||||||
|
inherits = "release"
|
||||||
|
lto = "fat"
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
- Look into more efficient 'skip'ing in ratatui so that you don't have to unicode_width::width a bunch of escape codes
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
RUSTFLAGS="-Cpanic=abort -Ccodegen-units=1 -Cembed-bitcode=yes -Zdylib-lto -Copt-level=z -Zlocation-detail=none -Cstrip=symbols -Ctarget-cpu=native" cargo -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort build --profile production --target "$(rustc +nightly -Z unstable-options --print target-spec-json | jq -r '."llvm-target"')"
|
||||||
+1
-1
Submodule ratatui updated: fadc73d62e...0e185042b7
+1
-1
Submodule ratatui-image updated: b779d29d6b...5ae2012631
+1
-3
@@ -146,7 +146,7 @@ impl Tui {
|
|||||||
|
|
||||||
let (msg_str, color) = match self.bottom_msg {
|
let (msg_str, color) = match self.bottom_msg {
|
||||||
BottomMessage::Help => (
|
BottomMessage::Help => (
|
||||||
"/: Search, g: Go To Page".to_string(),
|
"/: Search, g: Go To Page, n: Next Search Result, N: Previous Search Result".to_string(),
|
||||||
Color::Blue
|
Color::Blue
|
||||||
),
|
),
|
||||||
BottomMessage::Error(ref e) => (
|
BottomMessage::Error(ref e) => (
|
||||||
@@ -248,8 +248,6 @@ impl Tui {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn render_single_page(&mut self, frame: &mut Frame<'_>, page_idx: usize, img_area: Rect) {
|
fn render_single_page(&mut self, frame: &mut Frame<'_>, page_idx: usize, img_area: Rect) {
|
||||||
// TODO: Sometimes a page just won't render. But there will be space for it so we clearly
|
|
||||||
// know it should be there. Maybe we're not resetting the last render rect as we should be?
|
|
||||||
match self.rendered[page_idx].img {
|
match self.rendered[page_idx].img {
|
||||||
Some(ref page_img) => frame.render_widget(Image::new(&**page_img), img_area),
|
Some(ref page_img) => frame.render_widget(Image::new(&**page_img), img_area),
|
||||||
None => Self::render_loading_in(frame, img_area)
|
None => Self::render_loading_in(frame, img_area)
|
||||||
|
|||||||
Reference in New Issue
Block a user