From 5f69c4e62a7b5c739f0f6f12cb76af97a5b5d99b Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 23 Oct 2026 22:40:55 -0700 Subject: [PATCH] Add Command-U shortcut to open Status --- mac/Sources/Byre/ByreApp.swift | 1 + mac/Sources/Byre/Switcher.swift | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mac/Sources/Byre/ByreApp.swift b/mac/Sources/Byre/ByreApp.swift index 6e88b4e..0d9db23 100644 --- a/mac/Sources/Byre/ByreApp.swift +++ b/mac/Sources/Byre/ByreApp.swift @@ -110,6 +110,7 @@ struct ByreCommands: Commands { goButton("Task List", "t") goButton("Project", "p") goButton("Lead", "l") + goButton("Status", "u") goButton("Merge", "s") goButton("Filter TODO Items", "f") Divider() diff --git a/mac/Sources/Byre/Switcher.swift b/mac/Sources/Byre/Switcher.swift index 399c1ba..75b657d 100644 --- a/mac/Sources/Byre/Switcher.swift +++ b/mac/Sources/Byre/Switcher.swift @@ -7,7 +7,7 @@ let taskViewKeys: [(key: String, tab: TaskTab)] = [ ("1", .transcript), ("2", .changes), ("3", .files), ("4", .page), ("5", .captures), ("6", .terminal), ] -let goKeys: Set = Set(["k", "n", "t", "p", "l", "s", "f", "/"] + taskViewKeys.map(\.key)) +let goKeys: Set = Set(["k", "n", "t", "p", "l", "u", "s", "f", "/"] + taskViewKeys.map(\.key)) @MainActor func runGo(_ key: String, _ store: Store, _ overlays: Overlays) { @@ -50,6 +50,10 @@ func runGo(_ key: String, _ store: Store, _ overlays: Overlays) { _ = store.closeSheet() overlays.leftTab = .lead overlays.leadFocus += 1 + case "u": + overlays.switcher?.close() + _ = store.closeSheet() + overlays.leftTab = .status case "s": guard let taskId = store.selectedTaskId else { break @@ -102,6 +106,7 @@ private let shortcuts: [(String, [(String, String)])] = [ ("⌘T", "Show every project's active tasks"), ("⌘P", "Show the current project's dashboard"), ("⌘L", "Open the Lead tab and its composer, closing any view opened over a pane"), + ("⌘U", "Open the Status tab, closing any view opened over a pane"), ("⌘S", "Merge the right pane's task, or discard it when the agent suggests discarding or there is nothing to merge"), ("⌘F", "Filter the TODO items on a project's dashboard"), ("⌘[ ⌘]", "Bring the previous or next server's window forward"),