tmux pane breaking - MarekBykowski/readme GitHub Wiki

# To move around pane, first break it with "<prefix> !" (will break it into a separate window)
# then from within the pane send it to the window selected with "<prefix> s" below.
# Note the window must be preceded with ":", eg. :1                                
bind-key s command-prompt -p "send pane to:"  "join-pane -t '%%'"               

Or manually

  1. Break pane into a separate window <prefix> !
  2. <prefix> : then type join-pane -s 2.0 -t 0.1 where
    -s is move from window.pane 2.0
    -t is move to window 0 after pane 1

windows and panes are numbered from 0

This assumes tmux has 3 windows (numbered from 0)

  • 0:first with 2x panes (see pane number 0 and 1 below, panes are also numbered from 0),
  • 1:second with 1x pane
  • 2:[tmux] with 1x pane in it that will be moved to window 0

image

In the end you will have 2x windows:

  • 0:first with 3x panes (pane 3rd moved from window.pane 2.0)
  • 1:second with 1x pane
⚠️ **GitHub.com Fallback** ⚠️