ConstOptionaloptions: { detached?: boolean; sourceWindow?: string; targetWindow?: string }
Optional Readonlydetached?: booleanDo not make the swapped window the active window (-d).
Optional ReadonlysourceWindow?: stringSource window; defaults to the marked window (-s).
Optional ReadonlytargetWindow?: stringDestination window to swap with (-t).
An empty string on success.
Swap two windows (
tmux swap-window).