Skip to content

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).

optional key?: string

Defined in: widgets/controls/chat/types.ts:58

Optional key spec that invokes it directly, e.g. “ctrl+l”.


optional label?: 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.


optional run?: () => unknown

Defined in: widgets/controls/chat/types.ts:60

Action to run. Return false to fall through to default handling.

unknown