libtmux Reference MCP Search
On this page

tmux.MoveWindowRequest

View as Markdown

Module
tmux
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/window_link_move.go
struct tmux.MoveWindowRequest
struct [source]
struct [source]
struct 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.

7 declared, 0 inherited

Members

  • After attribute After inserts the moved winlink after the destination target.
  • Before attribute Before inserts the moved winlink before the destination target.
  • KillTarget attribute KillTarget destroys a window already occupying the destination.
  • NoSelect attribute NoSelect leaves the destination session's current window unchanged.
  • Renumber attribute Renumber renumbers the target session according to its base-index option instead of moving the receiver to a new destination.
  • TargetIndex attribute TargetIndex selects a destination winlink index; nil lets tmux choose.
  • TargetSession attribute TargetSession identifies the destination session; zero uses the receiver session.
Esc

Type to search.