libtmux Reference MCP Search
On this page

Server.splitWindow(_:direction:size:startDirectory:)

View as Markdown

Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Creation.swift
splitWindow(_:direction:size:startDirectory:) ( window : Window , direction : PaneDirection , size : PaneSize? , startDirectory : String? ) Pane
methodasync [source]
methodasync [source]
splitWindow(_:direction:size:startDirectory:)

Splits a window's active pane, returning the pane that appeared.

  • Parameters:
    • window: the window to split. tmux splits whichever of its panes is active; name a pane instead with split(_:direction:size:startDirectory:).
    • direction: which side of that pane the new one takes. Defaults to PaneDirection/below, so that this and tmux split-window with no flags do the same thing.
    • size: how much of the pane being split to give the new one. Omitted, tmux halves it.
    • startDirectory: where the new pane starts. Omitted, tmux uses the pane's own.
Raises

0 declared, 0 inherited

Esc

Type to search.