# tmux.Pane.Split

- **Module:** tmux.Pane
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/pane_create.go#L321
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-pane-split/

```
tmux.Pane.Split(ctx: context.Context, request: SplitPaneRequest) -> (Pane, error)
```

Split creates a tiled pane relative to the receiver's exact linked-pane view. Attach makes the new pane active in that session and winlink; it is not a global client-focus guarantee. The returned [Pane] is freshly materialized in the receiver SessionID and WindowID. Named Split rather than SplitPane to avoid repeating Pane; [Window.SplitPane] is the equivalent operation relative to a window.

If tmux reports a [PaneID] before a transport or refresh failure, the partial
result also contains the receiver SessionID and WindowID. Other failures
return zero; creation is not rolled back.
