Skip to content

CommandOptions

Defined in: namespaces.ts:19

Options for command registration.

title: string

Defined in: namespaces.ts:21

Human-readable title for the command.


optional icon?: SFSymbolName

Defined in: namespaces.ts:23

SF Symbol name for the command icon.


optional shortcut?: string

Defined in: namespaces.ts:25

Keyboard shortcut string (e.g., “cmd+shift+t”).


optional condition?: string

Defined in: namespaces.ts:27

Condition when the command is available (e.g., “isDirectory”).


handler: () => void | Promise<void>

Defined in: namespaces.ts:29

The handler function called when the command is executed.

void | Promise<void>