Cotal TypeScript packages
    Preparing search index...

    Function splitWindow

    • Split target (a window ID @N, or session:window) creating a new pane running command. Returns the new pane's stable ID (%N). Direction: "horizontal" → stacked top/bottom rows (tmux -v, the default); "vertical" → side-by-side columns (tmux -h). ratio is the first pane's fraction — the new pane gets (1 - ratio).

      Parameters

      • target: string
      • command: string
      • cwd: string
      • direction: "vertical" | "horizontal"
      • Optionalratio: number

      Returns string