# tmux.MoveWindowRequest

- **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#L48
- **Page:** https://libtmux.org/reference/go/tmux-movewindowrequest/

MoveWindowRequest configures moving one exact winlink on tmux 3.2a or later. Its zero value moves the receiver within its current session to a tmux-chosen index and lets the moved winlink become current. Nil TargetIndex asks tmux for that index; a nonnil value is explicit and must be nonnegative. After and Before are mutually exclusive. Renumber is a standalone mode mutually exclusive with TargetIndex, After, Before, NoSelect, and KillTarget. Invalid combinations 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; zero uses the receiver session.
- `TargetIndex` (attribute) — TargetIndex selects a destination winlink index; nil lets tmux choose.
- `After` (attribute) — After inserts the moved winlink after the destination target.
- `Before` (attribute) — Before inserts the moved winlink before the destination target.
- `NoSelect` (attribute) — NoSelect leaves the destination session's current window unchanged.
- `KillTarget` (attribute) — KillTarget destroys a window already occupying the destination.
- `Renumber` (attribute) — Renumber renumbers the target session according to its base-index option instead of moving the receiver to a new destination.
