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

    Variable swapWindowConst

    swapWindow: (
        options?: {
            detached?: boolean;
            sourceWindow?: string;
            targetWindow?: string;
        },
    ) => Effect<
        string,
        TmuxCommandOptionsError
        | TmuxProcessRunError,
        TmuxProcess,
    > = ...

    Swap two windows (tmux swap-window).

    Type Declaration

      • (
            options?: {
                detached?: boolean;
                sourceWindow?: string;
                targetWindow?: string;
            },
        ): Effect<
            string,
            TmuxCommandOptionsError
            | TmuxProcessRunError,
            TmuxProcess,
        >
      • Parameters

        • Optionaloptions: { detached?: boolean; sourceWindow?: string; targetWindow?: string }
          • Optional Readonlydetached?: boolean

            Do not make the swapped window the active window (-d).

          • Optional ReadonlysourceWindow?: string

            Source window; defaults to the marked window (-s).

          • Optional ReadonlytargetWindow?: string

            Destination window to swap with (-t).

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        An empty string on success.

    await tmux.swapWindow({ sourceWindow: "work:1", targetWindow: "work:2" });

    await tmux.swapWindow({ detached: true, sourceWindow: "work:1", targetWindow: "work:2" });