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.

method libtmux-ts latest

Window.move

Move this window to another session or index without selecting it.

Source and package
Qualified name
Window.move
Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts
Other languages
PowerShell Julia Elixir Python Ruby LuaRustGoJavaC#C++Swift Kotlin Scala F#

Description#

Moves this placement. Sessions that are grouped share one window list, so moving a window they share moves it in all of them; sessions that merely link the same window keep their own lists, and only this one moves.

Examples#

await window.move({ index: 3 });
Parameters

tmux command#

The tmux commands behind move.

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Move a window to another session or index

Equivalents of Move a window to another session or index in other languages
Language Equivalent
Python libtmux.Window.move_window
Lua libtmux.WindowLink:move
Rust window.Window.move_to
Go tmux.Window.Move
Java io.github.libtmux.Window.moveTo
C# LibTmux.Window.MoveAsync
C++ libtmux::Window::move_to
Swift Server.move(_:to:at:)

No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference