Trevixal API
    Preparing search index...

    Interface Macros

    interface Macros {
        length: number;
        recording: boolean;
        destroy(): void;
        note(name: string, run: (editor: Editor) => void): void;
        onChange(listener: (recording: boolean) => void): () => void;
        play(): boolean;
        record(): void;
        stop(): void;
    }
    Index
    length: number

    How many steps the recorded macro has.

    recording: boolean
    • Returns void

    • Record a command the chrome ran: a menu entry or a shortcut.

      Parameters

      • name: string
      • run: (editor: Editor) => void

      Returns void

    • Told when recording starts or stops.

      Parameters

      • listener: (recording: boolean) => void

      Returns () => void

    • Play the recorded macro at the caret; false when there is none.

      Returns boolean

    • Start recording, dropping the macro recorded before.

      Returns void

    • Returns void