Window.swap
Swap this window with another via $ tmux swap-window.
Source and package
-
Examples#
>>> w1 = session.new_window(window_name='swap_a')>>> w2 = session.new_window(window_name='swap_b')>>> w1_idx = w1.window_index>>> w2_idx = w2.window_index>>> w1.swap(w2)>>> w1.window_index == w2_idxTrue>>> w2.window_index == w1_idxTruetmux command
swap-windowIn other ports Exchange two windows
- PowerShell No source-verified PowerShell equivalent is recorded for this operation.
- Julia No source-verified Julia equivalent is recorded for this operation.
- Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua
- TypeScript
- Rust
- Go
- Java no equivalent on
Window - C#
- C++
- Swift
- Kotlin No source-verified Kotlin equivalent is recorded for this operation.
- Scala No source-verified Scala equivalent is recorded for this operation.
- F# No source-verified F# equivalent is recorded for this operation.
- PowerShell