iTerm2 keyboard shortcut for moving tabs around
Solution 1
That's a default features. Just open preferences/Keys and in Global Shortcut keys you can assign keys to "Move tabs to left/right".
Personnaly i use Cmd + n/p
Solution 2
Using predefined shortcuts in iTerm2 you can
Move tabs
Left: Cmd+Shift+Left
Right Cmd+Shift+Right
And according to http://teohm.com/blog/2012/03/22/working-effectively-with-iterm2 you can
Switch between tabs
Next tab: Cmd+Shift+]
Previous tab: Cmd+Shift+[
Solution 3
for me
CMD + [ // for previous tab
CMD + ] // for next tab
version 3.1.3
Solution 4
The defaults are CMD + SHIFT + ]
and CMD + SHIFT + [
.
There are also available menus under the Window in the top bar.
You can also hit CONTROL + TAB
Solution 5
⌘+⌥+←/↑/→/↓ will let you navigate split panes in the direction of the arrow, i.e. when using ⌘+D to split panes vertically, ⌘+⌥+← and ⌘+⌥+→ will let you switch between the panes.
Note: ⌥ is the [alt] key
Eddy
Updated on October 03, 2020Comments
-
Eddy over 3 years
Say I want to place one tab next to another. Currently I do this by clicking and dragging. This increases productivity because if I'm switching between 2 regular tasks in iTerm I want to place the tabs next to each other so I can switch between them quickly.
I can switch between tabs using keyboard shortcuts cmd+} and cmd+{.
But is there a way to move tabs around using keyboard shortcuts?
-
Eddy almost 12 yearsI don't see the "Move tabs to left/right" option in the list of actions to assign global shortcut keys. Are you using iTerm2?
-
Xavier almost 12 yearsYeah i do use Iterm2 : Build 1.0.0.20120203
-
Eddy almost 12 yearsYeah it used to crash when I updated it, but now it's fine. Thanks!
-
anh_ng8 almost 8 yearsSwitching between tabs actually can be easier to remember: Left:
Cmd + Left
Right:Cmd + Right
To move tabs, just also press Shift: Left:Cmd + Shift + Left
Right:Cmd + Shift + Right
-
Jay almost 8 yearsMoving tabs, not moving between tabs.
-
sasha199568 over 6 yearsI tried Cmd+Shift+[. It didn't work, although Cmd+[ works. Does Cmd+Shift+[ make any sense? Isn't it just Cmd+{ ?
-
Pegasus about 6 yearsthks, use Cmd + jk like vim
-
aris over 4 yearsYou can also arrow up/down to switch between panes.
-
Sara Inés Calderón over 2 yearsGamechanger, thanks y'all.