Trevixal API
    Preparing search index...

    Type Alias MacroStep

    MacroStep:
        | { kind: "text"; text: string }
        | { key: "enter" | "backspace" | "delete" | "lineBreak"; kind: "key" }
        | {
            alter: "move" | "extend";
            direction: Direction;
            kind: "move";
            unit: Unit;
        }
        | { kind: "command"; name: string; run: (editor: Editor) => void }

    Word's macros, the simple kind: record what you do, typing, the keys that move the caret, and the commands you run from the menus and shortcuts, then play it back with one key wherever the caret is.