On this page
tmux.Pane.Swap
- Module
- tmux
- Declared in
- Pane
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/window_pane_swap.go
- Swap ( ctx : context.Context , request : SwapPaneRequest ) (PaneSwapResult, error)
-
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.
0 declared, 0 inherited