adding a rotate feature for pdfs (#133)

* adding a rotate feature for pdfs that have rotated graphs and such (WIP)

* Scales to window width

* combined match arms

* added help menu text
This commit is contained in:
Ishan Deshpande
2026-02-18 21:45:56 -06:00
committed by GitHub
parent 2f957cdcbb
commit 52994b8b89
6 changed files with 50 additions and 9 deletions
+4
View File
@@ -836,6 +836,7 @@ impl Tui {
'G' if can_zoom => self.update_zoom(Zoom::pan_top),
'0' if can_zoom => self.update_zoom(Zoom::pan_left),
'$' if can_zoom => self.update_zoom(Zoom::pan_right),
'r' => Some(InputAction::Rotate),
_ => None
}
}
@@ -1107,6 +1108,8 @@ H, J, K, L (when zoomed in):
Pan direction around page
0/$ (when on fill-screen):
Scroll to left/right side of page
r:
Rotate by 90 degrees
";
pub enum InputAction {
@@ -1115,6 +1118,7 @@ pub enum InputAction {
Search(String),
QuitApp,
Invert,
Rotate,
Fullscreen,
SwitchRenderZoom(crate::FitOrFill)
}