iTerm2 keyboard shortcut for moving tabs around

62,769

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

Share:
62,769
Eddy
Author by

Eddy

Updated on October 03, 2020

Comments

  • Eddy
    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
    Eddy almost 12 years
    I 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
    Xavier almost 12 years
    Yeah i do use Iterm2 : Build 1.0.0.20120203
  • Eddy
    Eddy almost 12 years
    Yeah it used to crash when I updated it, but now it's fine. Thanks!
  • anh_ng8
    anh_ng8 almost 8 years
    Switching 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
    Jay almost 8 years
    Moving tabs, not moving between tabs.
  • sasha199568
    sasha199568 over 6 years
    I tried Cmd+Shift+[. It didn't work, although Cmd+[ works. Does Cmd+Shift+[ make any sense? Isn't it just Cmd+{ ?
  • Pegasus
    Pegasus about 6 years
    thks, use Cmd + jk like vim
  • aris
    aris over 4 years
    You can also arrow up/down to switch between panes.
  • Sara Inés Calderón
    Sara Inés Calderón over 2 years
    Gamechanger, thanks y'all.