From 3214919f1b27515769c3d9b72858483295033768 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 24 Jul 2024 14:28:38 -0300 Subject: Feat: Pressing 'q' on the selection buffer will exit the user interface --- packages/finder/main.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages') 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", -- cgit v1.2.3