On this page
libtmux.Pane.move
- Module
- libtmux
- Declared in
- Pane
- Package
- libtmux
- Source
- src/libtmux/pane.py
-
Move this pane to another window via
$ tmux move-pane.Similar to
joinbut invokes themove-panecommand directly.Examples
>>> pane_to_move = window.split(shell='sleep 1m') >>> w2 = session.new_window(window_name='move_target') >>> pane_to_move.move(w2)- Parameters
-
-
target ( str | Pane | Window ) – Target pane or window to move into.
-
vertical ( bool ) – Split vertically (
-vflag), default True. False for horizontal (-h). -
detach ( bool ) – Do not switch to the target window (
-dflag), default True. -
full_window ( bool | None ) – Use the full window width/height (
-fflag). -
size ( str | int | None ) – Size for the moved pane (
-lflag). -
before ( bool | None ) – Place the pane before the target (
-bflag).
-
0 declared, 0 inherited