diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2025-01-04 23:19:13 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2025-01-04 23:19:13 -0300 |
commit | db13ef776569dff1f2d5a4fd1c34216758cea203 (patch) | |
tree | b86b640ff5a8d9b41f6b8a27ac73e212ca56655d /packages | |
parent | edd4572b49d1ca8bc3ce0d56dcf14b68fd1530ba (diff) | |
download | finder-db13ef776569dff1f2d5a4fd1c34216758cea203.tar.gz finder-db13ef776569dff1f2d5a4fd1c34216758cea203.tar.bz2 |
Fix: keybindings: add bindings until F12 for opening items
Diffstat (limited to 'packages')
-rw-r--r-- | packages/finder/main.py | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/packages/finder/main.py b/packages/finder/main.py index 37082d7..bfc037a 100644 --- a/packages/finder/main.py +++ b/packages/finder/main.py @@ -174,6 +174,54 @@ class FinderMain(): self.open(3) + @self.keybindings.add("f5") + def _(event): + "Open with option 5" + + self.open(4) + + @self.keybindings.add("f6") + def _(event): + "Open with option 6" + + self.open(5) + + @self.keybindings.add("f7") + def _(event): + "Open with option 7" + + self.open(6) + + @self.keybindings.add("f8") + def _(event): + "Open with option 8" + + self.open(7) + + @self.keybindings.add("f9") + def _(event): + "Open with option 9" + + self.open(8) + + @self.keybindings.add("f10") + def _(event): + "Open with option 10" + + self.open(9) + + @self.keybindings.add("f11") + def _(event): + "Open with option 11" + + self.open(10) + + @self.keybindings.add("f12") + def _(event): + "Open with option 12" + + self.open(11) + def theme(self): self.style = Style.from_dict({ "output-field" : "#888888", @@ -191,7 +239,7 @@ class FinderMain(): options = self.options() options_status = "" - for option_list in options: + for option_list in options[0:12]: options_status += '[F' + str(option_list[1]+1) + ': ' + str(option_list[0]) + '] ' #return f"Results: {lines}; selected: {selected}" |