How to merge a window into a pane in tmux (join-pane)
Pull window 2 into this window as a new pane:
Targeting
-s is the source (what moves), -t the destination. Targets look like session:window.pane — join-pane -s work:1.0 -t 2 moves pane 0 of window 1 in session "work" into window 2 here. The mark workflow is easier: prefix m on the source pane, then run join-pane in the destination window.
Related
Verified against tmux 3.6 · updated July 2026 · back to the full cheat sheet