Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b09ce88
Initial attempt at supporting new backend for kitty images
itsjunetime May 31, 2025
4d764cd
it's almost working !!
itsjunetime Jun 2, 2025
4bde532
it almost basically works
itsjunetime Jun 3, 2025
fcea5ac
yaaayyyy it works
itsjunetime Jun 3, 2025
b791b55
Use github kittage
itsjunetime Jun 3, 2025
6677266
Uhhhh various improvements from kittage and psx-shm
itsjunetime Jun 5, 2025
7514488
Remove logging
itsjunetime Jun 5, 2025
5e68578
incorporate recovering from deleted images
itsjunetime Jun 9, 2025
62c9214
Make it work correctly with ghostty image eviction too
itsjunetime Jun 9, 2025
fc063ef
fall back to stdout if shms don't work
itsjunetime Jun 10, 2025
a56fa8c
Make help page work again
itsjunetime Jun 13, 2025
a67ff79
zooming basically does what you'd expect now
itsjunetime Jun 15, 2025
0578fcc
yay zooming woohoo
itsjunetime Jun 16, 2025
02b447a
clean up top and bottom rendering
itsjunetime Jun 17, 2025
da8cdd1
Only allow zooming in kitty
itsjunetime Jun 18, 2025
484d248
Add debug logging and fix cursor placement after image display
itsjunetime Jun 18, 2025
b368f8d
yaaaay zooming out once you're already zoomed in and respecting kitty…
itsjunetime Jun 18, 2025
05bfee1
mmmm maybe it's finally ready to merge...
itsjunetime Jun 18, 2025
16ac61d
Update deps
itsjunetime Aug 2, 2025
1c797d4
Switch around list of items on changelog
itsjunetime Aug 3, 2025
196f7fb
fmt
itsjunetime Aug 3, 2025
dcc3dbc
Small fixes to avoid panic and allow zooming back in after zooming out
itsjunetime Aug 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
run: rustup component add clippy rustfmt
- name: Clippy
run: cargo clippy -- -D warnings
- name: Tests
run: cargo test
- name: Check fmt
run: cargo fmt -- --check
- name: Run tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
debug.log
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Unreleased

- Update ratatui(-image) dependencies
- Update to new `kittage` backend for kitty-protocol-supporting terminals (fixes many issues and improves performance significantly, see [the PR](https://github.com/itsjunetime/tdf/pull/74))
- Use new mupdf search API for slightly better performance
- Update ratatui(-image) dependencies
- Allow specification of default white and black colors for rendered pdfs
- Pause rendering every once in a while while there's a search term to enable searching across the entire document more quickly
- Fix an issue with missing search highlights

Expand Down
198 changes: 177 additions & 21 deletions Cargo.lock

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

11 changes: 9 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,24 @@ ratatui = { git = "https://github.com/itsjunetime/ratatui.git" }
ratatui-image = { git = "https://github.com/itsjunetime/ratatui-image.git", branch = "vb64_on_personal", default-features = false }
# ratatui-image = { path = "./ratatui-image", default-features = false }
crossterm = { version = "0.29.0", features = ["event-stream"] }
# crossterm = { path = "../crossterm", features = ["event-stream"] }
image = { version = "0.25.1", features = ["pnm", "rayon", "png"], default-features = false }
notify = { version = "8.0.0", features = ["crossbeam-channel"] }
tokio = { version = "1.37.0", features = ["rt-multi-thread", "macros"] }
futures-util = { version = "0.3.30", default-features = false }
itertools = "*"
flume = { version = "0.11.0", default-features = false, features = ["async"] }
xflags = "0.4.0-pre.2"
mimalloc = "0.1.43"
nix = { version = "0.30.0", features = ["signal"] }
mupdf = { version = "0.5.0", default-features = false, features = ["svg", "system-fonts", "img"] }
rayon = { version = "*", default-features = false }
# kittage = { path = "../kittage/", features = ["crossterm-tokio", "image-crate", "log"] }
kittage = { git = "https://github.com/itsjunetime/kittage.git", features = ["crossterm-tokio", "image-crate", "log"] }
memmap2 = "*"

# logging
log = "0.4.27"
flexi_logger = "0.31"

# for tracing with tokio-console
console-subscriber = { version = "0.4.0", optional = true }
Expand All @@ -57,7 +64,7 @@ epub = ["mupdf/epub"]
cbz = ["mupdf/cbz"]

[dev-dependencies]
criterion = { version = "0.6.0", features = ["async_tokio"] }
criterion = { version = "0.7.0", features = ["async_tokio"] }
cpuprofiler = "0.0.4"

[[bench]]
Expand Down
Loading
Loading