LinkWindowRequest
LinkWindowRequest configures linking a window into another session on every supported tmux. 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.
Source and package
- Qualified name
-
tmux.Link Window Request - Package
- tmux
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/window_link_move.go
Fields6#
| Name | Type | Description |
|---|---|---|
| After | bool | After inserts the new winlink after the destination target. |
| Before | bool | Before inserts the new winlink before the destination target. |
| Detach | bool | Detach leaves the target session's current window unchanged. |
| KillExisting | bool | KillExisting destroys a window already occupying the destination. |
| TargetIndex | *int | TargetIndex selects a destination winlink index; nil lets tmux choose. |
| TargetSession | Session | TargetSession identifies the destination session in the receiver's tmux server. |