Window.MoveAsync
Moves this window to another index or session.
Source and package
- Qualified name
-
LibTmux .Window. Move Async - Namespace
- LibTmux
- Declared in
Window- Package
- LibTmux
- Source
- src/LibTmux/Window.Move.cs
- async Task<Window> MoveAsync( Move
Window request, CancellationRequest Token cancellationToken = default ) -
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(MoveWindow ) – Where the window goes.Request -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
-
- Returns
-
A replacement handle carrying the affected placement.
Recorded calls
source callsThe C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Window.MoveAsync.
tmux command
task materialThe tmux commands behind MoveAsync.
move-window display-message list-windows -t session scope, cmd_list_windows_exec tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 12 other ports mappedSource-verified mappings for Move a window to another session or index. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Moves this window to another index or session. | This page |
| Python | libtmux Move current Window object $ tmux move-window. | None recorded in the model |
| Lua | libtmux | on WindowLink |
| Erlang | tmux Move this membership to the destination session and explicit index, leaving its physical window's other links intact. Placement options follow link/3. Moving the final window out of a session can destroy that session; automatic renumbering and session groups can change other memberships. Captured rows remain unchanged. Returns the command result after observed preflight. | free function |
| TypeScript | window Move this window to another session or index without selecting it. | None recorded in the model |
| Rust | window Move this window to an index, possibly in another session. | None recorded in the model |
| Go | tmux Move removes the receiver's exact winlink and places it in TargetSession, or renumbers the selected session when Renumber is set. Unless NoSelect is set, tmux makes the moved winlink current in the destination session; this is not a global client-focus guarantee. The stable WindowID does not by itself identify either linked view. | None recorded in the model |
| Java | io Moves this window into another session. | 2 overloads |
| C++ | libtmux:: Move to another index within the same session. | readonly |
| Swift | Server Moves one window appearance into another session. | on Server |
| OCaml | Libtmux Move the source session's current link at from_index. Destination collisions fail. | free function |
| Perl | Lib move_window(link => WindowLink|session_id:index, session => Session|session_id, index => integer?). | on Server Requires an explicit WindowLink or session_id:index context; a physical window alone does not select a session placement. |
| Raku | Lib Move this association; tmux also synchronizes the affected session groups. | on WindowLinkRef |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.