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

    Variable selectWindowConst

    selectWindow: (
        options?: {
            last?: boolean;
            next?: boolean;
            previous?: boolean;
            targetWindow?: string;
            toggle?: boolean;
        },
    ) => Effect<
        string,
        TmuxCommandOptionsError
        | TmuxProcessRunError,
        TmuxProcess,
    > = ...

    Select a window (tmux select-window).

    Type Declaration

      • (
            options?: {
                last?: boolean;
                next?: boolean;
                previous?: boolean;
                targetWindow?: string;
                toggle?: boolean;
            },
        ): Effect<
            string,
            TmuxCommandOptionsError
            | TmuxProcessRunError,
            TmuxProcess,
        >
      • Parameters

        • Optionaloptions: {
              last?: boolean;
              next?: boolean;
              previous?: boolean;
              targetWindow?: string;
              toggle?: boolean;
          }
          • Optional Readonlylast?: boolean

            Select the last (previously current) window (-l).

          • Optional Readonlynext?: boolean

            Select the next window (-n).

          • Optional Readonlyprevious?: boolean

            Select the previous window (-p).

          • Optional ReadonlytargetWindow?: string

            Target window to select (-t).

          • Optional Readonlytoggle?: boolean

            Toggle to the last window when the target is already current (-T).

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        An empty string on success.

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

    await tmux.selectWindow({ next: true });