Compare commits

..

22 Commits

Author SHA1 Message Date
itsjunetime dcc3dbc958 Small fixes to avoid panic and allow zooming back in after zooming out 2025-08-06 09:28:29 -06:00
itsjunetime 196f7fb589 fmt 2025-08-06 09:22:15 -06:00
itsjunetime 1c797d4653 Switch around list of items on changelog 2025-08-06 09:22:15 -06:00
itsjunetime 16ac61dc8e Update deps 2025-08-06 09:22:15 -06:00
itsjunetime 05bfee148c mmmm maybe it's finally ready to merge... 2025-08-06 09:22:15 -06:00
itsjunetime b368f8d41d yaaaay zooming out once you're already zoomed in and respecting kitty's limits for how big of an image to display 2025-08-06 09:22:15 -06:00
itsjunetime 484d248e26 Add debug logging and fix cursor placement after image display 2025-08-06 09:22:15 -06:00
itsjunetime da8cdd1fbd Only allow zooming in kitty 2025-08-06 09:22:15 -06:00
itsjunetime 02b447a98e clean up top and bottom rendering 2025-08-06 09:22:15 -06:00
itsjunetime 0578fccfa6 yay zooming woohoo 2025-08-06 09:22:15 -06:00
itsjunetime a67ff7996c zooming basically does what you'd expect now 2025-08-06 09:22:15 -06:00
itsjunetime a56fa8c817 Make help page work again 2025-08-06 09:22:15 -06:00
itsjunetime fc063efd42 fall back to stdout if shms don't work 2025-08-06 09:22:15 -06:00
itsjunetime 62c92141e3 Make it work correctly with ghostty image eviction too 2025-08-06 09:22:15 -06:00
itsjunetime 5e6857881b incorporate recovering from deleted images 2025-08-06 09:22:15 -06:00
itsjunetime 7514488441 Remove logging 2025-08-06 09:22:15 -06:00
itsjunetime 6677266010 Uhhhh various improvements from kittage and psx-shm 2025-08-06 09:22:15 -06:00
itsjunetime b791b55b80 Use github kittage 2025-08-06 09:22:15 -06:00
itsjunetime fcea5ac696 yaaayyyy it works 2025-08-06 09:22:15 -06:00
itsjunetime 4bde532d08 it almost basically works 2025-08-06 09:22:15 -06:00
itsjunetime 4d764cd4f9 it's almost working !! 2025-08-06 09:22:15 -06:00
itsjunetime b09ce88d9f Initial attempt at supporting new backend for kitty images 2025-08-06 09:22:15 -06:00
2 changed files with 13 additions and 25 deletions
-6
View File
@@ -1,11 +1,5 @@
# Unreleased
# v0.4.1
- Add instructions for using new zoom/pan features to help page
# v0.4.0
- 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
+13 -19
View File
@@ -18,8 +18,8 @@ use ratatui::{
layout::{Constraint, Flex, Layout, Position, Rect},
style::{Color, Style},
symbols::border,
text::Span,
widgets::{Block, Borders, Clear, Padding, Paragraph, Wrap}
text::{Span, Text},
widgets::{Block, Borders, Clear, Padding}
};
use ratatui_image::{FontSize, Image};
@@ -830,7 +830,7 @@ impl Tui {
.border_set(border::ROUNDED)
.border_style(Color::Blue);
let help_span = Paragraph::new(HELP_PAGE).wrap(Wrap { trim: false });
let help_span = Text::raw(HELP_PAGE);
let max_w: u16 = HELP_PAGE
.lines()
@@ -863,31 +863,25 @@ impl Tui {
static HELP_PAGE: &str = "\
l, h, left, right:
Go forward/backwards a single page
Go forward/backwards a single page
j, k, down, up:
Go forwards/backwards a screen's worth of pages
Go forwards/backwards a screen's worth of pages
q, esc:
Quit
Quit
g:
Go to specific page (type numbers after 'g')
Go to specific page (type numbers after 'g')
/:
Search
Search
n, N:
Next/Previous search result
Next/Previous search result
i:
Invert colors
Invert colors
f:
Remove borders/fullscreen
z (when using kitty protocol):
Toggle between fill-screen and fit-screen
o/O (when on fill-screen):
zoom in and out, respectively
H, J, K, L (when zoomed in):
pan direction around page
Remove borders/fullscreen
?:
Show this page
Show this page
ctrl+z:
Suspend & background tdf \
Suspend & background tdf \
";
pub enum InputAction {