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

    Variable resizeWindowConst

    resizeWindow: (
        ...args: [
            adjustment: number,
            options?: {
                down?: boolean;
                height?: number;
                largest?: boolean;
                left?: boolean;
                right?: boolean;
                smallest?: boolean;
                targetWindow?: string;
                up?: boolean;
                width?: number;
            },
        ],
    ) => Effect<
        string,
        TmuxCommandOptionsError
        | TmuxProcessRunError,
        TmuxProcess,
    > = ...

    Resize a window (tmux resize-window).

    Type Declaration

      • (
            ...args: [
                adjustment: number,
                options?: {
                    down?: boolean;
                    height?: number;
                    largest?: boolean;
                    left?: boolean;
                    right?: boolean;
                    smallest?: boolean;
                    targetWindow?: string;
                    up?: boolean;
                    width?: number;
                },
            ],
        ): Effect<
            string,
            TmuxCommandOptionsError
            | TmuxProcessRunError,
            TmuxProcess,
        >
      • Parameters

        • ...args: [
              adjustment: number,
              options?: {
                  down?: boolean;
                  height?: number;
                  largest?: boolean;
                  left?: boolean;
                  right?: boolean;
                  smallest?: boolean;
                  targetWindow?: string;
                  up?: boolean;
                  width?: number;
              },
          ]

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        An empty string on success.

    await tmux.resizeWindow(5, { down: true, targetWindow: "work:1" });

    await tmux.resizeWindow(undefined, { width: 120, height: 40 });