refactor(tui): simplify location and command contexts

This commit is contained in:
Dax Raad 2026-07-14 23:01:03 -04:00
commit 2cb2f9d538
6 changed files with 78 additions and 108 deletions

View file

@ -135,6 +135,10 @@ export interface KeymapCommand {
readonly name: string
readonly aliases?: string[]
}
/** Hides the command from discovery UI. */
readonly hidden?: boolean
/** Promotes the command in discovery UI. */
readonly suggested?: boolean | (() => boolean)
/** Executes the command. Return false to let keymap dispatch continue. */
readonly run: () => void | false | Promise<void>
}