# tmux.Plan.SplitPane

- **Module:** tmux.Plan
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/plan_pane.go#L15
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-plan-splitpane/

```
tmux.Plan.SplitPane(target: Ref, request: SplitPaneRequest) -> Ref
```

SplitPane records a split of the window or pane target names, and returns a [Ref] to the pane it will create.

The returned ref can target later steps before the pane exists:

plan := tmux.NewPlan()
pane := plan.SplitPane(window.Ref(), tmux.SplitPaneRequest{})
plan.SendKeys(pane, tmux.SendKeysRequest{Command: tmux.Ptr("top")})
result, err := plan.Run(ctx, server)
