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

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

Fields7#

MoveWindowRequest fields
NameTypeDescription
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 SessionID TargetSession identifies the destination session; zero uses the receiver session.
Esc

Type to search.

Reference previewOpen reference