How to move a pane to its own window in tmux

Break the current pane out into its own window:

keysprefix + !

The reverse: join-pane

join-pane -s :2 pulls window 2 into the current window as a pane (add -h for side-by-side). Or mark a pane with prefix m, go to the destination window, and run join-pane bare — the marked pane moves to you.

Related

Verified against tmux 3.6 · updated July 2026 · back to the full cheat sheet