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

Python API

Python documentation

libtmux.Pane.move

Python

View as Markdown

Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
Other languages
RubyLua TypeScript Rust Go Java .NET C++ Swift
move ( self , target : str | Pane | Window , vertical : bool = True , detach : bool = True , full_window : bool | None = None , size : str | int | None = None , before : bool | None = None ) → None
method [source]
method [source]
move

Move this pane to another window via $ tmux move-pane.

Similar to join but invokes the move-pane command 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 (-v flag), default True. False for horizontal (-h).

  • detach ( bool ) – Do not switch to the target window (-d flag), default True.

  • full_window ( bool | None ) – Use the full window width/height (-f flag).

  • size ( str | int | None ) – Size for the moved pane (-l flag).

  • before ( bool | None ) – Place the pane before the target (-b flag).

In other ports Move a pane to another position

0 declared, 0 inherited

Esc

Type to search.