From 34f7ef0a9549ad9f3a88262facf06541e827f280 Mon Sep 17 00:00:00 2001 From: dece Date: Thu, 18 Feb 2021 01:41:02 +0100 Subject: [PATCH] browser: press r to reload page --- bebop/browser.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bebop/browser.py b/bebop/browser.py index 593bfae..152f36c 100644 --- a/bebop/browser.py +++ b/bebop/browser.py @@ -74,6 +74,8 @@ class Browser: running = False elif char == ord(":"): self.quick_command("") + elif char == ord("r"): + self.reload_page() elif char == ord("s"): self.set_status(f"h {self.h} w {self.w}") elif char == ord("h"): @@ -413,6 +415,10 @@ class Browser: if self.page.scroll_h(by_columns, self.w): self.refresh_page() + def reload_page(self): + if self.current_url: + self.open_gemini_url(self.current_url, history=False) + def go_back(self): """Go back in history if possible.""" if self.history.has_links():