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
- func (p Pane) Move( ctx context
.Context , request MovePane , ) (Pane, error)Request -
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.
- 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
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux |
| 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# | Lib |
| C++ | no equivalent on Pane |
| Swift | Server.move(_:to:at:) moves a window, not a pane |
| OCaml | Libtmux |
| 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#.