aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-24 14:28:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-24 14:28:38 -0300
commit3214919f1b27515769c3d9b72858483295033768 (patch)
treea39ba0571622f14629bab19fa66d869e2b46a3ee
parent59ddd744827a6b937118475273af010ea7d279e1 (diff)
downloadfinder-3214919f1b27515769c3d9b72858483295033768.tar.gz
finder-3214919f1b27515769c3d9b72858483295033768.tar.bz2
Feat: Pressing 'q' on the selection buffer will exit the user interface
-rw-r--r--packages/finder/main.py5
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",