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.

Go API

method libtmux-go latest

Pane.Move

Move relocates the receiver pane into one exact destination with tmux's move-pane command. Unless Attach is set, the destination's active-pane selection remains unchanged; Attach is not a global client-focus guarantee. The returned Pane is freshly materialized in the destination SessionID and WindowID rather than by canonical ID-only refresh.

Source and package
Qualified name
tmux.Pane.Move
Package
tmux
Declared in
Pane
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/pane_relocate.go
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLua TypeScript Rust Java C# C++ Swift Kotlin Scala OCaml F# Clojure

Description#

Removing the sole pane destroys the emptied source window and all of its winlinks. Affected source sessions preserve their current selection unless that window was current, in which case they select another. A session left without windows is destroyed and detaches its clients.

If exact refresh fails after the command, Move returns a partial Pane with the receiver PaneID and predicted destination context. Other failures return zero. Transport errors are delivery-ambiguous and no rollback is attempted.

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
Python libtmux.Pane.move
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
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.

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

Esc

Type to search.

Reference previewOpen reference