Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

method libtmux stable

Window.move_window

Move current Window object $ tmux move-window.

Source and package
Qualified name
libtmux.Window.move_window
Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py
Other languages
PowerShell Julia Ruby LuaTypeScriptRustGoJavaC#C++Swift Kotlin Scala F#
move_window ( self, destination: str = "", session: str | None = None, after: bool | None = None, before: bool | None = None, no_select: bool | None = None, kill_target: bool | None = None, renumber: bool | None = None, ) → Window
Parameters
  • destination (str) # – The target window or index to move the window to, default: empty string.

  • session (str | None) # – The target session or index to move the window to, default: current session.

  • after (bool | None) # – Insert after the target window (-a flag). added 0.56

  • before (bool | None) # – Insert before the target window (-b flag). added 0.56

  • no_select (bool | None) # – Do not make the moved window the current window (-d flag). added 0.56

  • kill_target (bool | None) # – Kill the target window if it exists (-k flag). added 0.56

  • renumber (bool | None) # – Renumber all windows in sequential order (-r flag). This is a standalone operation — when used, no move is performed and other parameters are ignored. added 0.56

Returns

Window Self, for method chaining.

Raises

tmux command move-window

In other ports Move a window to another session or index
Esc

Type to search.

Reference preview Open reference