refactor(tui): simplify location and command contexts
This commit is contained in:
parent
94a23b8537
commit
2cb2f9d538
6 changed files with 78 additions and 108 deletions
|
|
@ -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>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue