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

pane.Pane.swapWith

View as Markdown

Module
pane
Declared in
Pane
Package
libtmux
Source
packages/libtmux/src/pane.ts
Other languages
PythonRubyLuaRustGoJava.NETC++ Swift
swapWith ( other : : Pane ) → Promise<void>
method [source]
method [source]
swapWith

Exchange positions with another pane.

In other ports Exchange two panes

Examples

await pane.swapWith(otherPane);
>>> pane1 = window.active_pane
>>> pane2 = window.split()
>>> pane1_id, pane2_id = pane1.pane_id, pane2.pane_id
>>> pane1.swap(pane2)
>>> pane1.refresh()
>>> pane2.refresh()

0 declared, 0 inherited

Esc

Type to search.