libtmux Reference MCP Search
On this page

libtmux.Window.move_window

View as Markdown

Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py
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
method [source]
method [source]
move_window

Move current Window object $ tmux move-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

0 declared, 0 inherited

Esc

Type to search.