Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Go API

Go documentation

View as Markdown

Module
tmux
Declared in
Pane
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/window_pane_swap.go
Other languages
PythonRubyLuaTypeScriptRustJava.NETC++ Swift
Swap ( ctx : context.Context , request : SwapPaneRequest ) → (PaneSwapResult, error)
method [source]
method [source]
Swap

Swap exchanges the receiver with one exact or adjacent pane. Explicit targets use exact linked-pane views; PaneID alone does not distinguish linked views. Unless Detach is set, tmux may change active-pane selection; this is not a global client-focus guarantee. A directional swap cannot identify the adjacent target because tmux does not report it, so the returned PaneSwapResult .Target is zero.

An explicit swap returns freshly materialized exact views for both original PaneIDs. If exact refresh fails after the command, Swap returns a predicted result carrying every known identity with the error. Earlier failures return zero; transport errors are delivery-ambiguous.

In other ports Exchange two panes

0 declared, 0 inherited

Esc

Type to search.