Merge Windows You can use the join-pane command. There is no keyboard shortcut, so you have to enter the Tmux command mode. Then you have to tell Tmux the target window. Now you can type <prefix> j while you're in the target window.
Tmux uses the keybinding 'Prefix' followed by 'Ctrl+o' to cycle around the panes.
Key binding By default, Ctrl + b , ! would break the active pane into a new window and switch to it. Where Ctrl + b is the default prefix for tmux.
Once you type "exit" or Ctrl-d in the last remaining pane, tmux will close. You can also exit tmux by pressing : to go to the bottom bar of the tmux window. Then type kill-session.
Actually I found the way to do that. Suppose the two windows are number 1 and 2. Use
join-pane -s 2 -t 1
This will move the 2nd window as a pane to the 1st window. The opposite command is break-pane
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With