Nova Editor - v1.0.0
    Preparing search index...

    Interface EditorCommand

    Editor command interface 编辑器命令接口

    interface EditorCommand {
        canUndo: boolean;
        description?: string;
        execute: (...args: unknown[]) => void | Promise<void>;
        id: string;
        name: string;
        shortcut?: string;
        undo?: (...args: unknown[]) => void | Promise<void>;
    }
    Index

    Properties

    canUndo: boolean

    Whether command can be undone | 命令是否可撤销

    description?: string

    Command description | 命令描述

    execute: (...args: unknown[]) => void | Promise<void>

    Command execution function | 命令执行函数

    id: string

    Command unique identifier | 命令唯一标识符

    name: string

    Command name | 命令名称

    shortcut?: string

    Command keyboard shortcut | 命令键盘快捷键

    undo?: (...args: unknown[]) => void | Promise<void>

    Command undo function | 命令撤销函数