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.Swap Pane Request - Package
- tmux
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/window_pane_swap.go
Fields4#
| Name | Type | Description |
|---|---|---|
| Detach | bool | Detach leaves the active-pane selection unchanged. |
| Direction | Swap | 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. |