Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased libtmux has not been released. Its API may change during development. This site's structure and URLs may change too.

function libtmux-lisp latest

libtmux:swap-panes

Swap two physical panes; return an outcome with replacements in a fresh vector. The vector follows argument order. DETACHED defaults true; tmux still adjusts active-pane references when panes change windows. PRESERVE-ZOOM restores zoom. Signals STALE-TARGET or an operational condition. Earlier captures stay local and unchanged; observation failure is retained separately.

Source and package
Qualified name
libtmux:swap-panes
Declared in
libtmux
Package
libtmux
Source
src/placement.lisp
(swap-panes client first-pane second-pane &key (detached t) preserve-zoom (observe t) cancel-token timeout output-limit)

Public owner: libtmux

tmux command#

The tmux commands behind swap-panes.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss swap-panes.

Esc

Type to search.

Reference previewOpen reference