21

my question is simple. I have two windows in tmux session, 1 and 2. How can I merge these two windows into one window split horizontally/vertically? I couldn't find an answer in manpage, so I'm asking here.

1 Answer 1

26

I think you're looking for join-pane:

join-pane [-bdhv] [-l size | -p percentage] [-s src-pane] [-t dst-pane]
              (alias: joinp)
        Like split-window, but instead of splitting dst-pane and creating a new pane,
        split it and move src-pane into the space.  This can be used to reverse
        break-pane.  The -b option causes src-pane to be joined to left of or above
        dst-pane.

You can use this with the command-line (C-b :).

1
  • 1
    This sounds like a great answer, but I'm still struggling with the syntax. Would you mind adding a short example? how are src-pane and dst-pane expected to be specified? May 24, 2022 at 16:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.