On this page
libtmux.Window.move_window
- Module
- libtmux
- Declared in
- Window
- Package
- libtmux
- Source
- src/libtmux/window.py
-
Move current
Windowobject$ tmux move-window.- Parameters
-
-
destination ( str ) – The
target windowor index to move the window to, default: empty string. -
session ( str | None ) – The
target sessionor index to move the window to, default: current session. -
after ( bool | None ) – Insert after the target window (
-aflag). added 0.56 -
before ( bool | None ) – Insert before the target window (
-bflag). added 0.56 -
no_select ( bool | None ) – Do not make the moved window the current window (
-dflag). added 0.56 -
kill_target ( bool | None ) – Kill the target window if it exists (
-kflag). added 0.56 -
renumber ( bool | None ) – Renumber all windows in sequential order (
-rflag). This is a standalone operation — when used, no move is performed and other parameters are ignored. added 0.56
-
- Returns
-
WindowSelf, for method chaining. - Raises
-
-
libtmux.exc.LibTmuxException – If tmux returns an error.
-
0 declared, 0 inherited