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

    Variable unlinkWindowConst

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

    Unlink a window from a session (tmux unlink-window).

    Type Declaration

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

        • Optionaloptions: { destroy?: boolean; targetWindow?: string }
          • Optional Readonlydestroy?: boolean

            Destroy the window if it is linked to only one session (-k).

          • Optional ReadonlytargetWindow?: string

            Target window to unlink (-t).

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        An empty string on success.

    await tmux.unlinkWindow({ targetWindow: "other:2" });

    await tmux.unlinkWindow({ destroy: true, targetWindow: "other:2" });