diff --git a/bebop/browser/browser.py b/bebop/browser/browser.py index 925e7ab..cfd64e7 100644 --- a/bebop/browser/browser.py +++ b/bebop/browser/browser.py @@ -99,12 +99,12 @@ class Browser: return self.dim[1] @property - def current_url(self): + def current_url(self) -> str: """Return the current URL.""" return self._current_url @current_url.setter - def current_url(self, url): + def current_url(self, url: str): """Set the current URL and show it in the status line.""" self._current_url = url self.set_status(url) @@ -244,7 +244,7 @@ class Browser: elif char == ord("o"): self.quick_command("open") elif char == ord("O"): - self.open_last_download() + self.quick_command(f"open {self.current_url}") elif char == ord("p"): self.go_back() elif char == ord("u"): @@ -291,6 +291,8 @@ class Browser: self.scroll_page_vertically(-1) elif char == ord("l"): self.scroll_page_horizontally(1) + elif char == ord("o"): + self.open_last_download() @property def page_pad_size(self): diff --git a/bebop/help.py b/bebop/help.py index 150c2eb..955eeac 100644 --- a/bebop/help.py +++ b/bebop/help.py @@ -27,7 +27,8 @@ Keybinds using the SHIFT key are written uppercase. Keybinds using the ALT (or M * gg: go to the top of the page * G: go to the bottom of the page * o: open an URL -* O: open last download with an external command +* O: edit current URL +* M-o: open last download with an external command * p: go to the previous page * u: go to the parent page (up a level in URL) * U: go to the root page (root URL for the current domain)