Command
Defined in: widgets/controls/chat/types.ts:52
A keybinding-invoked action, independent of buffer text — a command palette entry or a direct hotkey. Distinct from Trigger (which is about typing into the buffer with completions).
Properties
Section titled “Properties”
optionalkey?:string
Defined in: widgets/controls/chat/types.ts:58
Optional key spec that invokes it directly, e.g. “ctrl+l”.
label?
Section titled “label?”
optionallabel?:string
Defined in: widgets/controls/chat/types.ts:56
Human label (for a palette).
name:
string
Defined in: widgets/controls/chat/types.ts:54
Stable command name reported via onCommand.
optionalrun?: () =>unknown
Defined in: widgets/controls/chat/types.ts:60
Action to run. Return false to fall through to default handling.
Returns
Section titled “Returns”unknown