Skip to main content
Version: Next

CommandContext

type CommandContext = object;

Command runtime context.

When a command is been execute, runtime information will be passed to the command callback function.

Properties

args

args: string[];

Arguments that are passed to the command when executed.


bang

bang: boolean;

Whether the command is executed with a bang "!".


currentBufferId

currentBufferId: number;

Current buffer ID when the command is executed.


currentWindowId

currentWindowId: number;

Current window ID when the command is executed.