# tmux.LinkWindowRequest

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

LinkWindowRequest configures linking a window into another session on tmux 3.2a or later. Its zero value is invalid because TargetSession is required. Nil TargetIndex asks tmux for a destination index; a nonnil value is explicit and must be nonnegative. After and Before are mutually exclusive and are rejected before execution. TargetIndex is read during the call and is not retained; callers must not mutate it concurrently.

## Members

- `TargetSession` (attribute) — TargetSession identifies the destination session in the receiver's tmux server.
- `TargetIndex` (attribute) — TargetIndex selects a destination winlink index; nil lets tmux choose.
- `KillExisting` (attribute) — KillExisting destroys a window already occupying the destination.
- `After` (attribute) — After inserts the new winlink after the destination target.
- `Before` (attribute) — Before inserts the new winlink before the destination target.
- `Detach` (attribute) — Detach leaves the target session's current window unchanged.
