# tmux.SwapPaneRequest

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/window_pane_swap.go#L46
- **Page:** https://libtmux.org/reference/go/tmux-swappanerequest/

SwapPaneRequest configures swapping with an exact or adjacent pane on tmux 3.2a or later. 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.

## Members

- `Target` (attribute) — Target selects an exact other pane; a zero Pane omits it.
- `Direction` (attribute) — Direction selects an adjacent pane; zero omits it.
- `Detach` (attribute) — Detach leaves the active-pane selection unchanged.
- `KeepZoom` (attribute) — KeepZoom preserves the affected window's zoomed state.
