browser: edit current URL with "O"
Move "open last download" to M-o, as it is not that often used it seems.
This commit is contained in:
parent
00d5e51e2f
commit
bc8803d86b
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
Reference in a new issue