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
- Break pane into a separate window
<prefix> !
-
<prefix> :
then typejoin-pane -s 2.0 -t 0.1
where
-s
is move fromwindow.pane
2.0
-t
is move towindow
0
afterpane
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
In the end you will have 2x windows:
-
0:first
with 3x panes (pane 3rd moved fromwindow.pane
2.0
) -
1:second
with 1x pane