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-windows

Swap physical windows at two captured links; return a COMMAND-OUTCOME. OBSERVE supplies a fresh vector of replacement links in argument order. SELECT selects the affected indexes in their sessions; omission keeps current indexes. Tmux group restrictions apply. Signals STALE-TARGET or an operational condition; old links retain their original expected window IDs.

Source and package
Qualified name
libtmux:swap-windows
Declared in
libtmux
Package
libtmux
Source
src/placement.lisp
(swap-windows client first-link second-link &key select (observe t) cancel-token timeout output-limit)

Public owner: libtmux

tmux command#

The tmux commands behind swap-windows.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss swap-windows.

Esc

Type to search.

Reference previewOpen reference