Add ⌘S hotkey to open a task's merge confirmation

This commit is contained in:
Ian Gulliver
2026-10-15 12:30:10 -07:00
parent a855933dee
commit 7ea14bd7a8
7 changed files with 73 additions and 31 deletions
+7
View File
@@ -3,6 +3,7 @@ import { errorText, h, replace, showAlert } from "./dom.js";
import { openSettings } from "./settings.js";
import { activeTasks, currentSession, focusedProject, focusProject, focusTab, focusTask, lastVisits, onEach, state } from "./state.js";
import { openStatus } from "./status.js";
import { confirmMerge } from "./task.js";
export function mountNavbar(root) {
const status = h("button", { class: "nav-link" }, "Status");
status.onclick = openStatus;
@@ -32,6 +33,12 @@ export function mountNavbar(root) {
e.preventDefault();
focusTab("project");
}
else if (e.key === "s") {
e.preventDefault();
if (state.selectedTaskId) {
void confirmMerge(state.selectedTaskId);
}
}
});
}
export function openSwitcher() {