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.

MoreLess about this notice

method libtmux-dotnet

Window.MoveAsync

Moves this window to another index or session.

Source and package
Qualified name
LibTmux.Window.MoveAsync
Namespace
LibTmux
Declared in
Window
Package
LibTmux
Source
src/LibTmux/Window.Move.cs

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
Returns

A replacement handle carrying the affected placement.

Recorded calls

source calls
No call edges in the C# model.

The 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 material

The tmux commands behind MoveAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 12 other ports mapped

Source-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.

Move a window to another session or index in each port
PortAPIDiffers from C#
C# LibTmux.Window.MoveAsync
Moves this window to another index or session.
This page
Python libtmux.Window.move_window
Move current Window object $ tmux move-window.
None recorded in the model
Lua libtmux.WindowLink:move on WindowLink
Erlang tmux_window_link:move/3
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.Window.move
Move this window to another session or index without selecting it.
None recorded in the model
Rust window.Window.move_to
Move this window to an index, possibly in another session.
None recorded in the model
Go tmux.Window.Move
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.github.libtmux.Window.moveTo
Moves this window into another session.
2 overloads
C++ libtmux::Window::move_to
Move to another index within the same session.
readonly
Swift Server.move(_:to:at:)
Moves one window appearance into another session.
on Server
OCaml Libtmux_unix.Client.move_window_at
Move the source session's current link at from_index. Destination collisions fail.
free function
Perl LibTmux::Server::move_window
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 LibTmux::Model::WindowLinkRef.move
Move this association; tmux also synchronizes the affected session groups.
on WindowLinkRef
No Haskell equivalent.

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#.

Esc
Search in

Type to search.

Reference previewOpen reference