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

Go API

Go documentation

tmux.Pane.Move

Go

View as Markdown

Module
tmux
Declared in
Pane
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/pane_relocate.go
Other languages
PythonRubyLua TypeScript Rust Java .NET C++ Swift
Move ( ctx : context.Context , request : MovePaneRequest ) → (Pane, error)
method [source]
method [source]
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.

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.

In other ports Move a pane to another position

0 declared, 0 inherited

Esc

Type to search.