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

    Variable setBufferConst

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

    Set the contents of a tmux paste buffer (tmux set-buffer).

    Type Declaration

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

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

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        An empty string on success.

    await tmux.setBuffer("hello", { bufferName: "greeting" });