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

SwapWindowRequest

SwapWindowRequest configures swapping the receiver with one exact winlink on tmux 3.3a or later. Its zero value is invalid because Target must be a complete Window handle. The endpoints must be proven to share a daemon through connection state or the same nonempty SocketPath; matching socket names alone are insufficient. Validation completes before execution.

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

Fields2#

SwapWindowRequest fields
NameTypeDescription
Detach bool Detach leaves the affected sessions' current-window selection unchanged.
Target Window Target is the exact other winlink to swap with the receiver.
Esc

Type to search.

Reference previewOpen reference