Skip to content

Keyboard Shortcuts

All global keyboard shortcuts are defined in useKeyboardShortcuts — a single hook mounted in App.tsx.

This hook is the precursor to the #38 command registry. Each entry here will become a CommandContribution with an id, label, and keybinding.

Current Bindings

ShortcutAction
⌘K / Ctrl+KOpen command palette
⌘, / Ctrl+,Open settings
⌘T / Ctrl+TNew conversation
⌘N / Ctrl+NNew conversation (alias)
⌘W / Ctrl+WClose active tab

Tab bar context menu shortcuts:

ShortcutAction
⌘WClose tab (shown as hint in context menu)
⌘TNew conversation (shown as hint in context menu)

Adding a Shortcut

Add a new if block to the handler function in useKeyboardShortcuts.ts:

ts
// ⌘⇧E — Export conversation
if (mod && e.shiftKey && e.key === 'e') {
  e.preventDefault();
  // ... action
  return;
}

Custom keybinding support (user-configurable bindings) is planned as part of the #38 extension platform.

Released under the AGPLv3 License.