diff --git a/mac/Sources/Byre/ByreApp.swift b/mac/Sources/Byre/ByreApp.swift index 05a053f..6d411c5 100644 --- a/mac/Sources/Byre/ByreApp.swift +++ b/mac/Sources/Byre/ByreApp.swift @@ -104,7 +104,8 @@ struct ByreCommands: Commands { PasteboardCommands() CommandMenu("Go") { goButton("Switch Task", "k") - goButton("Task List", "p") + goButton("Task List", "t") + goButton("Project", "p") goButton("Lead", "l") goButton("Merge", "s") serverButton("Previous Server", "[", -1) diff --git a/mac/Sources/Byre/Switcher.swift b/mac/Sources/Byre/Switcher.swift index f9e7eaf..2bcd49a 100644 --- a/mac/Sources/Byre/Switcher.swift +++ b/mac/Sources/Byre/Switcher.swift @@ -3,7 +3,7 @@ import SwiftUI typealias WorkflowSummary = Components.Schemas.WorkflowSummary -let goKeys: Set = ["k", "n", "p", "l", "s", "/"] +let goKeys: Set = ["k", "n", "t", "p", "l", "s", "/"] @MainActor func runGo(_ key: String, _ store: Store, _ overlays: Overlays) { @@ -15,10 +15,17 @@ func runGo(_ key: String, _ store: Store, _ overlays: Overlays) { if let project = store.focusedProject() ?? store.projects.first { createTask(project.id, .init(), store, overlays) } - case "p": + case "t": overlays.switcher?.close() store.sheet = nil overlays.taskList = true + case "p": + overlays.switcher?.close() + store.sheet = nil + if let project = store.focusedProject() ?? store.projects.first { + overlays.projectFocus = true + store.focusProject(project.id) + } case "l": overlays.switcher?.close() store.sheet = nil @@ -70,7 +77,8 @@ private let shortcuts: [(String, [(String, String)])] = [ ("Anywhere", [ ("⌘K", "Switch task, or create one"), ("⌘N", "New task in the current project"), - ("⌘P", "Show every project's active tasks"), + ("⌘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"), ("⌘S", "Merge the right pane's task, or discard it when the agent suggests discarding"), ("⌘[ ⌘]", "Bring the previous or next server's window forward"),