π File detail
utils/keyboardShortcuts.ts
π― Use case
This file lives under βutils/β, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, β¦). On the API surface it exposes MACOS_OPTION_SPECIAL_CHARS and isMacosOptionChar β mainly functions, hooks, or classes. What the file header says: Special characters that macOS Option+key produces, mapped to their keybinding equivalents. Used to detect Option+key shortcuts on macOS terminals that don't have "Option as Meta" enabled.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
Special characters that macOS Option+key produces, mapped to their keybinding equivalents. Used to detect Option+key shortcuts on macOS terminals that don't have "Option as Meta" enabled.
π€ Exports (heuristic)
MACOS_OPTION_SPECIAL_CHARSisMacosOptionChar
π₯οΈ Source preview
// Special characters that macOS Option+key produces, mapped to their
// keybinding equivalents. Used to detect Option+key shortcuts on macOS
// terminals that don't have "Option as Meta" enabled.
export const MACOS_OPTION_SPECIAL_CHARS = {
'β ': 'alt+t', // Option+T -> thinking toggle
Ο: 'alt+p', // Option+P -> model picker
ΓΈ: 'alt+o', // Option+O -> fast mode
} as const satisfies Record<string, string>
export function isMacosOptionChar(
char: string,
): char is keyof typeof MACOS_OPTION_SPECIAL_CHARS {
return char in MACOS_OPTION_SPECIAL_CHARS
}