mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-01 23:51:46 -04:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dcc3dbc958 | |||
| 196f7fb589 | |||
| 1c797d4653 | |||
| 16ac61dc8e | |||
| 05bfee148c | |||
| b368f8d41d | |||
| 484d248e26 | |||
| da8cdd1fbd | |||
| 02b447a98e | |||
| 0578fccfa6 | |||
| a67ff7996c | |||
| a56fa8c817 | |||
| fc063efd42 | |||
| 62c92141e3 | |||
| 5e6857881b | |||
| 7514488441 | |||
| 6677266010 | |||
| b791b55b80 | |||
| fcea5ac696 | |||
| 4bde532d08 | |||
| 4d764cd4f9 | |||
| b09ce88d9f |
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user