Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-go latest

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.SplitPane
Package
tmux
Declared in
Plan
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/plan_pane.go
func (p *Plan) SplitPane( target Ref, request SplitPaneRequest, ) Ref

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)
Esc

Type to search.

Reference previewOpen reference