From 03a51c13f5b82761c1d4b0accd814f8412f89ce2 Mon Sep 17 00:00:00 2001 From: dece Date: Fri, 26 Feb 2021 15:36:30 +0100 Subject: [PATCH] browser: move faster using uppercase hjkl --- bebop/browser.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bebop/browser.py b/bebop/browser.py index b32299f..e471776 100644 --- a/bebop/browser.py +++ b/bebop/browser.py @@ -81,12 +81,20 @@ class Browser: self.set_status(f"h {self.h} w {self.w}") elif char == ord("h"): self.scroll_page_horizontally(-1) + elif char == ord("H"): + self.scroll_page_horizontally(-3) elif char == ord("j"): self.scroll_page_vertically(1) + elif char == ord("J"): + self.scroll_page_vertically(3) elif char == ord("k"): self.scroll_page_vertically(-1) + elif char == ord("K"): + self.scroll_page_vertically(-3) elif char == ord("l"): self.scroll_page_horizontally(1) + elif char == ord("L"): + self.scroll_page_horizontally(3) elif char == ord("f"): self.scroll_page_vertically(self.page_pad_size[0]) elif char == ord("b"):