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

    Variable lastPaneConst

    lastPane: (
        options?: {
            disableInput?: boolean;
            enableInput?: boolean;
            keepZoomed?: boolean;
            targetWindow?: string;
        },
    ) => Effect<
        string,
        TmuxCommandOptionsError
        | TmuxProcessRunError,
        TmuxProcess,
    > = ...

    Select the previously selected pane (tmux last-pane).

    Type Declaration

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

        • Optionaloptions: {
              disableInput?: boolean;
              enableInput?: boolean;
              keepZoomed?: boolean;
              targetWindow?: string;
          }
          • Optional ReadonlydisableInput?: boolean

            Disable input to the pane (-d).

          • Optional ReadonlyenableInput?: boolean

            Enable input to the pane (-e).

          • Optional ReadonlykeepZoomed?: boolean

            Keep the window zoomed if it was zoomed (-Z).

          • Optional ReadonlytargetWindow?: string

            Target window whose last (previously selected) pane is selected (-t).

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        An empty string on success.

    await tmux.lastPane({ targetWindow: "work:1" });

    await tmux.lastPane({ keepZoomed: true, targetWindow: "work:1" });