libtmux Reference MCP Search
On this page

tmux.Pane.Move

View as Markdown

Module
tmux
Declared in
Pane
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/pane_relocate.go
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.

0 declared, 0 inherited

Esc

Type to search.