mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-02 08:01:47 -04:00
Add instructions for zooming and such to help page
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
# v0.4.1
|
||||||
|
|
||||||
|
- Add instructions for using new zoom/pan features to help page
|
||||||
|
|
||||||
# v0.4.0
|
# 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))
|
- 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))
|
||||||
|
|||||||
+9
-3
@@ -18,8 +18,8 @@ use ratatui::{
|
|||||||
layout::{Constraint, Flex, Layout, Position, Rect},
|
layout::{Constraint, Flex, Layout, Position, Rect},
|
||||||
style::{Color, Style},
|
style::{Color, Style},
|
||||||
symbols::border,
|
symbols::border,
|
||||||
text::{Span, Text},
|
text::Span,
|
||||||
widgets::{Block, Borders, Clear, Padding}
|
widgets::{Block, Borders, Clear, Padding, Paragraph, Wrap}
|
||||||
};
|
};
|
||||||
use ratatui_image::{FontSize, Image};
|
use ratatui_image::{FontSize, Image};
|
||||||
|
|
||||||
@@ -830,7 +830,7 @@ impl Tui {
|
|||||||
.border_set(border::ROUNDED)
|
.border_set(border::ROUNDED)
|
||||||
.border_style(Color::Blue);
|
.border_style(Color::Blue);
|
||||||
|
|
||||||
let help_span = Text::raw(HELP_PAGE);
|
let help_span = Paragraph::new(HELP_PAGE).wrap(Wrap { trim: false });
|
||||||
|
|
||||||
let max_w: u16 = HELP_PAGE
|
let max_w: u16 = HELP_PAGE
|
||||||
.lines()
|
.lines()
|
||||||
@@ -878,6 +878,12 @@ i:
|
|||||||
Invert colors
|
Invert colors
|
||||||
f:
|
f:
|
||||||
Remove borders/fullscreen
|
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
|
||||||
?:
|
?:
|
||||||
Show this page
|
Show this page
|
||||||
ctrl+z:
|
ctrl+z:
|
||||||
|
|||||||
Reference in New Issue
Block a user