19

I have a layout right now that looks like

 1
***
 2
***
 3

and I want it to look like

 1
***
 3
***
 2

I know the command C-b C-o cycles their positions, but it's not possible to write a transposition as a product of cycles, mathematically speaking. I also know there are commands to reorder windows but I am interested in panes. Can this be accomplished?

djechlin
  • 59,258
  • 35
  • 162
  • 290

2 Answers2

41

From the middle pane use Prefix}, or from the bottom pane use Prefix{. The default bindings for these keys are swap-pane -D and swap-pane -U.

Chris Johnsen
  • 214,407
  • 26
  • 209
  • 186
  • This will re-order the contents of the panes, but the indices of the panes will stay the same. I know this because I am looking at re-ordering the pane indices, but can only re-order their contents, sadly. – Dylan Northrup Dec 20 '17 at 17:43
4

In my tmux the Prefix. allowed me to move the pane around to a different index.

Mateusz Piotrowski
  • 8,029
  • 10
  • 53
  • 79
JonathanL
  • 136
  • 1
  • 9