Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(keybindings): migrate the focus-mode chord to the registry (view.focusMode)
enesa1c05aa8e9bc
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex eb07b41bf..7b5d6f366 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -5854,6 +5854,7 @@ export function Canvas() {useViewMode.getState().toggle(id)return true},+ 'view.focusMode': () => { toggleFocusMode(); return true },'panel.explorer': () => { showExplorer('toggle'); return true },'panel.sourceControl': () => { setScOpen((v) => !v); return true },'panel.sessions': () => { toggleSessionsPin(); return true },diff --git a/src/renderer/components/ShortcutsPanel.tsx b/src/renderer/components/ShortcutsPanel.tsxindex 32935bfbb..35542a3ed 100644--- a/src/renderer/components/ShortcutsPanel.tsx+++ b/src/renderer/components/ShortcutsPanel.tsx@@ -77,7 +77,7 @@ function buildSections(dictationChord: string): { title: string; rows: Row[] }[]{ keys: ['Left-drag'], label: 'Box-select (touch to select)' },{ keys: ['Middle / Right-drag'], label: 'Pan the canvas' },{ keys: ['Double-click'], label: 'Center & focus a node' },- { keys: ['⌘', '⇧', 'F'], label: 'Focus mode (selected node fills the window)' },+ ...cmd('view.focusMode', 'Focus mode (selected node fills the window)'),{ keys: ['⌘', 'wheel'], label: 'Zoom in / out' },// Advertised on BOTH surfaces, unlike "Jump to project" above. ⌘1-9 is dropped there// because the browser RESERVES it (tab switching, un-preventable) for something unrelated;diff --git a/src/shared/keybindings.test.ts b/src/shared/keybindings.test.tsindex 165d7faad..7125c4c2e 100644--- a/src/shared/keybindings.test.ts+++ b/src/shared/keybindings.test.ts@@ -73,6 +73,8 @@ describe('registry invariants', () => {darwin: ['Cmd+Slash'], other: ['Cmd+Slash'], allowInTerminal: true },{ id: 'view.kanbanToggle', title: 'Toggle kanban board', group: 'General', scope: 'app',darwin: ['Cmd+Shift+B'], other: ['Cmd+Shift+B'], allowInTerminal: true },+ { id: 'view.focusMode', title: 'Toggle focus mode', group: 'General', scope: 'canvas',+ darwin: ['Cmd+Shift+F'], other: ['Cmd+Shift+F'], allowInTerminal: true },{ id: 'panel.explorer', title: 'Toggle explorer panel', group: 'General', scope: 'app',darwin: ['Cmd+Shift+E'], other: ['Cmd+Shift+E'], allowInTerminal: true },{ id: 'panel.sourceControl', title: 'Toggle source control panel', group: 'General',diff --git a/src/shared/keybindings.ts b/src/shared/keybindings.tsindex 596a095f9..7f4c9921e 100644--- a/src/shared/keybindings.ts+++ b/src/shared/keybindings.ts@@ -43,6 +43,7 @@ export type CommandId =| 'app.settings'| 'app.shortcutsPanel'| 'view.kanbanToggle'+ | 'view.focusMode'| 'panel.explorer'| 'panel.sourceControl'| 'panel.sessions'@@ -92,6 +93,12 @@ export const COMMAND_DEFINITIONS: readonly CommandDefinition[] = [defaultBindings: both('Cmd+Slash'), allowInTerminal: true },{ id: 'view.kanbanToggle', title: 'Toggle kanban board', group: 'General', scope: 'app',defaultBindings: both('Cmd+Shift+B'), allowInTerminal: true },+ // Focus mode fills the window with one node — most naturally invoked from INSIDE the terminal+ // being enlarged, hence allowInTerminal. Scope stays 'canvas': over the kanban board or while+ // typing in an input there is no node geometry for the toggle to act on (the pre-registry+ // hardcoded chord fired in both places; the registry gating is the fix, not a regression).+ { id: 'view.focusMode', title: 'Toggle focus mode', group: 'General', scope: 'canvas',+ defaultBindings: both('Cmd+Shift+F'), allowInTerminal: true },{ id: 'panel.explorer', title: 'Toggle explorer panel', group: 'General', scope: 'app',defaultBindings: both('Cmd+Shift+E'), allowInTerminal: true },{ id: 'panel.sourceControl', title: 'Toggle source control panel', group: 'General', scope: 'app',