Plan.SplitPane
SplitPane records a split of the window or pane target names, and returns a Ref to the pane it will create.
Source and package
- Qualified name
-
tmux.Plan. Split Pane - Package
- tmux
- Declared in
Plan- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/plan_pane.go
-
Description#
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)