# 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/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/plan_pane.go#L15
- **Page:** https://libtmux.org/reference/go/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)
