The option for swapping between panes is only available through the menu button but I can't see any action to bind to this action. Is there and in built command that allows to swap panes?
Asked
Active
Viewed 9,078 times
26
-
Thank you @solr for bringing the newer response to our attention. I will update the correct answer appropriately. – tushar Jan 20 '21 at 08:13
2 Answers
58
If you mean switching focus between panes:
⌘ + ⌥ + ← and ⌘ + ⌥ + →
or
⌘ + [ and ⌘ + ]
If you mean swapping the positions of the panes, it can only be done from the right-click menu:
- Right-click pane to swap from, it turns red
- Click on pane to swap to
There is no keyboard shortcut for this according to gitlab issue

chrisxrobertson
- 745
- 6
- 9
-
I mean the last one. Keyboard shortcut for dragging the pane to new position. Would be nice feature to have – tushar Feb 22 '17 at 06:18
-
2swap pane with other session is what I was looking for, thank you. switch positions of existing split panes. – Merlin Dec 19 '17 at 23:21
-
6
Correction for the second part of the selected answer:
If you mean swapping the positions of the panes, it can only be done from the right-click menu:
- Right-click pane to swap from, it turns red
- Click on pane to swap to There is no keyboard shortcut for this according to gitlab issue
You can set it on your own.
Go to iTerm2->Prefrences->Keys.
On the bottom you will find a plus sign - press it to add a keyboard shortcut.
You can choose from a variety of actions - including "swap position with split screen".

Yonti
- 1,179
- 9
- 8