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

    Variable selectLayoutConst

    selectLayout: (
        ...args: [
            layoutName: string,
            options?: {
                next?: boolean;
                previous?: boolean;
                spreadEvenly?: boolean;
                targetPane?: string;
                undo?: boolean;
            },
        ],
    ) => Effect<
        string,
        TmuxCommandOptionsError
        | TmuxProcessRunError,
        TmuxProcess,
    > = ...

    Apply a layout to a window (tmux select-layout).

    Type Declaration

      • (
            ...args: [
                layoutName: string,
                options?: {
                    next?: boolean;
                    previous?: boolean;
                    spreadEvenly?: boolean;
                    targetPane?: string;
                    undo?: boolean;
                },
            ],
        ): Effect<
            string,
            TmuxCommandOptionsError
            | TmuxProcessRunError,
            TmuxProcess,
        >
      • Parameters

        • ...args: [
              layoutName: string,
              options?: {
                  next?: boolean;
                  previous?: boolean;
                  spreadEvenly?: boolean;
                  targetPane?: string;
                  undo?: boolean;
              },
          ]

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        An empty string on success.

    await tmux.selectLayout("tiled", { targetPane: "work:1" });

    await tmux.selectLayout(undefined, { next: true });