Window.MoveAsync
Moves this window to another index or session.
Source and package
- MoveAsync ( request : Move
Window , cancellationToken : CancellationRequest Token ) Task<Window> -
Description#
A renumber request preserves placement order and returns this link at its new index; renumbering another session leaves this link in place. A guard in the native queue checks that the captured session/index still names this window before the mutation. Reads before and after the command detect inconsistent placement changes, but do not make the operation atomic. A failed readback reports unknown dispatch state: the move already succeeded and must not be retried.
- Parameters
-
-
request ( Move
Window ) – Where the window goes.Request -
cancellationToken ( Cancellation
Token ) – Cancels the tmux command.
-
- Returns
-
A replacement handle carrying the affected placement.
tmux command
move-windowIn other ports Move a window to another session or index
- Python
libtmux.Window.move_window - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua
libtmux.WindowLink:move - TypeScript
window.Window.move - Rust
window.Window.move_to - Go
tmux.Window.Move - Java
io.github.libtmux.Window.moveTo - C++
libtmux::Window::move_to - Swift
Server.move(_:to:at:) - Kotlin No source-verified Kotlin equivalent is recorded for this operation.
- Scala No source-verified Scala equivalent is recorded for this operation.
- F# No source-verified F# equivalent is recorded for this operation.