mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-08-25 20:54:30 -04:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 848c7f546d | |||
| 7a2be5a81a | |||
| 057b86ad4b | |||
| 63503ac8c9 | |||
| 5ef08ff525 | |||
| d386b51aaa | |||
| c2117daaf5 |
Generated
+369
-282
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -31,7 +31,7 @@ tokio = { version = "1.37.0", features = ["rt-multi-thread", "macros"] }
|
|||||||
futures-util = { version = "0.3.30", default-features = false }
|
futures-util = { version = "0.3.30", default-features = false }
|
||||||
flume = { version = "0.12.0", default-features = false, features = ["async"] }
|
flume = { version = "0.12.0", default-features = false, features = ["async"] }
|
||||||
xflags = "0.4.0-pre.2"
|
xflags = "0.4.0-pre.2"
|
||||||
mimalloc = "0.1.43"
|
mimalloc = { git = "https://github.com/itsjunetime/mimalloc_rust.git", rev = "1094dbf3afdc0a57215e925a05f2e3160e59575b", features = [ "debug_in_debug" ] }
|
||||||
nix = { version = "0.31.0", features = ["signal"] }
|
nix = { version = "0.31.0", features = ["signal"] }
|
||||||
mupdf = { git = "https://github.com/messense/mupdf-rs.git", rev = "d7441b9998c92135e329559c0aa71d9dc92cf4de", default-features = false, features = ["svg", "system-fonts", "img"] }
|
mupdf = { git = "https://github.com/messense/mupdf-rs.git", rev = "d7441b9998c92135e329559c0aa71d9dc92cf4de", default-features = false, features = ["svg", "system-fonts", "img"] }
|
||||||
rayon = { version = "1", default-features = false }
|
rayon = { version = "1", default-features = false }
|
||||||
|
|||||||
+8
-8
@@ -739,19 +739,19 @@ impl Tui {
|
|||||||
InputAction::Redraw.into()
|
InputAction::Redraw.into()
|
||||||
}
|
}
|
||||||
KeyCode::Char(c)
|
KeyCode::Char(c)
|
||||||
if let BottomMessage::Input(InputCommand::GoToPage(ref mut page)) =
|
|
||||||
self.bottom_msg && matches!(c, 'g' if self.is_kitty) =>
|
|
||||||
c.to_digit(10).map(|input_num| {
|
|
||||||
*page = (*page * 10) + input_num as usize;
|
|
||||||
InputAction::Redraw
|
|
||||||
}),
|
|
||||||
KeyCode::Char(_)
|
|
||||||
if let BottomMessage::Input(InputCommand::GoToPage(_)) =
|
if let BottomMessage::Input(InputCommand::GoToPage(_)) =
|
||||||
self.bottom_msg =>
|
self.bottom_msg && matches!(c, 'g' if self.is_kitty) =>
|
||||||
{
|
{
|
||||||
self.set_msg(MessageSetting::Pop);
|
self.set_msg(MessageSetting::Pop);
|
||||||
self.update_zoom(Zoom::pan_bottom)
|
self.update_zoom(Zoom::pan_bottom)
|
||||||
}
|
}
|
||||||
|
KeyCode::Char(c)
|
||||||
|
if let BottomMessage::Input(InputCommand::GoToPage(ref mut page)) =
|
||||||
|
self.bottom_msg =>
|
||||||
|
c.to_digit(10).map(|input_num| {
|
||||||
|
*page = (*page * 10) + input_num as usize;
|
||||||
|
InputAction::Redraw
|
||||||
|
}),
|
||||||
KeyCode::Char(c) => match c {
|
KeyCode::Char(c) => match c {
|
||||||
'l' => self.change_page(PageChange::Next, ChangeAmount::Single),
|
'l' => self.change_page(PageChange::Next, ChangeAmount::Single),
|
||||||
'j' => self.change_page(PageChange::Next, ChangeAmount::WholeScreen),
|
'j' => self.change_page(PageChange::Next, ChangeAmount::WholeScreen),
|
||||||
|
|||||||
Reference in New Issue
Block a user