MoveWindowRequest
MoveWindowRequest configures moving one exact winlink on tmux 3.3a 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.
Source and package
- Qualified name
-
tmux.Move Window Request - Package
- tmux
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/window_link_move.go
Fields7#
| Name | Type | Description |
|---|---|---|
| After | bool | After inserts the moved winlink after the destination target. |
| Before | bool | Before inserts the moved winlink before the destination target. |
| KillTarget | bool | KillTarget destroys a window already occupying the destination. |
| NoSelect | bool | NoSelect leaves the destination session's current window unchanged. |
| Renumber | bool | Renumber renumbers the target session according to its base-index option instead of moving the receiver to a new destination. |
| TargetIndex | *int | TargetIndex selects a destination winlink index; nil lets tmux choose. |
| TargetSession | Session | TargetSession identifies the destination session; zero uses the receiver session. |