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.

Go API

struct libtmux-go latest

SwapPaneRequest

SwapPaneRequest configures swapping with an exact or adjacent pane on every supported tmux. Its zero value is invalid: exactly one complete Target or Direction is required. An explicit Target must differ from the receiver and must be proven to share a daemon through connection state or the same nonempty SocketPath; matching socket names alone are insufficient. Invalid choices are rejected before execution.

Source and package
Qualified name
tmux.SwapPaneRequest
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/window_pane_swap.go
struct tmux.SwapPaneRequest

Fields4#

SwapPaneRequest fields
NameTypeDescription
Detach bool Detach leaves the active-pane selection unchanged.
Direction SwapPaneDirection Direction selects an adjacent pane; zero omits it.
KeepZoom bool KeepZoom preserves the affected window's zoomed state.
Target Pane Target selects an exact other pane; a zero Pane omits it.
Esc

Type to search.

Reference previewOpen reference