# Libtmux.Operations.split_pane

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L1247
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-operations-split_pane/

```
val split_pane :
  ?size:Geometry.size ->
  ?spawn:Spawn.t ->
  Pane.target -> direction:Geometry.direction -> Created.t Command.t
```

Create a detached pane beside the target and return the IDs reported by tmux. Omitted `size` lets tmux choose the split; tmux rejects splits when no space remains.

## Parameters

- `size?` (`Geometry.size`)
- `spawn?` (`Spawn.t`)
- `arg1` (`Pane.target`)
- `direction` (`Geometry.direction`)
