From 1852af9d2d0ab5b013580677a3c94e814ec1005f Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 23 Oct 2026 23:28:03 -0700 Subject: [PATCH] Hide the task picker when Command-K is pressed again --- mac/Sources/Byre/Switcher.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mac/Sources/Byre/Switcher.swift b/mac/Sources/Byre/Switcher.swift index 84c0033..73e3a97 100644 --- a/mac/Sources/Byre/Switcher.swift +++ b/mac/Sources/Byre/Switcher.swift @@ -26,7 +26,11 @@ func runGo(_ key: String, _ store: Store, _ overlays: Overlays) { } switch key { case "k": - overlays.openSwitcher(store) + if let switcher = overlays.switcher { + switcher.close() + } else { + overlays.openSwitcher(store) + } case "n": overlays.switcher?.close() if let project = store.focusedProject() ?? store.projects.first {