diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-12-29 22:26:40 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-12-29 22:26:40 -0300 |
commit | dcae1cb169e10b7408e89230003e1000c45467dd (patch) | |
tree | 326bb92996b5ae21a42f584a0ffc8b9b82802dff /packages | |
parent | b057e815932421fcaf02fb09ec9fec043e039206 (diff) | |
download | finder-dcae1cb169e10b7408e89230003e1000c45467dd.tar.gz finder-dcae1cb169e10b7408e89230003e1000c45467dd.tar.bz2 |
Feat: adds a pager keybinding
Diffstat (limited to 'packages')
-rw-r--r-- | packages/finder/main.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/finder/main.py b/packages/finder/main.py index 264542d..0d99689 100644 --- a/packages/finder/main.py +++ b/packages/finder/main.py @@ -84,6 +84,11 @@ class FinderMain(): self.opener.open(os.path.join(path, item)) + def pager(self): + "Currently an alias to open()" + + return self.open() + def clear_list_buffer(self): self.list_buffer.set_document(Document(''), bypass_readonly=True) @@ -125,6 +130,10 @@ class FinderMain(): def _(event): self.open() + @self.keybindings.add("right", filter = has_focus(self.list_buffer)) + def _(event): + self.pager() + @self.keybindings.add("q", filter = has_focus(self.list_buffer)) def _(event): "Pressing 'q' on the selection buffer will exit the user interface" |