Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux latest

Pane.move

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

Source and package
Qualified name
libtmux.Pane.move
Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
Other languages
Perl RakuErlang PowerShell Julia Elixir Haskell Common Lisp RubyLua TypeScript Rust Go Java C# C++ Swift Kotlin Scala OCaml F# Clojure
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

Description#

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

tmux command#

The tmux commands behind move.

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Move a pane to another position

Equivalents of Move a pane to another position in other languages
Language Equivalent
Ruby LibTmux::Pane#move
Lua libtmux.Pane:move_to
Erlang tmux_pane:move/3
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no equivalent on Pane
Rust no equivalent on Pane
Go tmux.Pane.Move
Java no equivalent on Pane
C# LibTmux.Pane.MoveAsync
C++ no equivalent on Pane
Swift Server.move(_:to:at:) moves a window, not a pane
OCaml Libtmux_unix.Client.move_pane
Perl No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.
Raku LibTmux::Model::PaneRef.move

No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference