Add Command-U shortcut to open Status

This commit is contained in:
Ian Gulliver
2026-10-23 22:40:55 -07:00
parent 13d90d11c0
commit 5f69c4e62a
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -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()
+6 -1
View File
@@ -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<String> = Set(["k", "n", "t", "p", "l", "s", "f", "/"] + taskViewKeys.map(\.key))
let goKeys: Set<String> = 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"),