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

    Variable loadBufferConst

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

    Load a tmux paste buffer from a file (tmux load-buffer).

    Type Declaration

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

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

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        An empty string on success.

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