refactor(tui): simplify location and command contexts
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user