diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 14:28:38 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 14:28:38 -0300 |
commit | 3214919f1b27515769c3d9b72858483295033768 (patch) | |
tree | a39ba0571622f14629bab19fa66d869e2b46a3ee /packages | |
parent | 59ddd744827a6b937118475273af010ea7d279e1 (diff) | |
download | finder-3214919f1b27515769c3d9b72858483295033768.tar.gz finder-3214919f1b27515769c3d9b72858483295033768.tar.bz2 |
Feat: Pressing 'q' on the selection buffer will exit the user interface
Diffstat (limited to 'packages')
-rw-r--r-- | packages/finder/main.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/finder/main.py b/packages/finder/main.py index f1fca16..b9023ad 100644 --- a/packages/finder/main.py +++ b/packages/finder/main.py @@ -92,6 +92,11 @@ class FinderMain(): def _(event): self.open() + @self.keybindings.add("q", filter = has_focus(self.output_buffer)) + def _(event): + "Pressing 'q' on the selection buffer will exit the user interface" + event.app.exit() + def theme(self): self.style = Style.from_dict({ "output-field" : "#888888", |