tmux.ts - v0.1.3
    Preparing search index...

    Variable saveBufferConst

    saveBuffer: (
        ...args: [
            path: string,
            options?: { append?: boolean; bufferName?: string },
        ],
    ) => Effect<
        string,
        TmuxCommandOptionsError
        | TmuxProcessRunError,
        TmuxProcess,
    > = ...

    Save a tmux paste buffer to a file (tmux save-buffer).

    Type Declaration

      • (
            ...args: [
                path: string,
                options?: { append?: boolean; bufferName?: string },
            ],
        ): Effect<
            string,
            TmuxCommandOptionsError
            | TmuxProcessRunError,
            TmuxProcess,
        >
      • Parameters

        • ...args: [path: string, options?: { append?: boolean; bufferName?: string }]

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        The buffer contents when path is -, otherwise an empty string.

    await tmux.saveBuffer("./notes.txt", { bufferName: "notes" });