Using Ctrl-Tab to switch between tabs in Mac Terminal.app

48,812

Solution 1

I just tried this under Snow Leopard and it worked beautifully:

  1. Open System Preferences => Keyboard
  2. Go to Keyboard Shortcuts
  3. Click on "Application Shortcuts" on the left
  4. Click the little "+" to add a program
  5. Navigate to Terminal (it's hidden in Applications/Utilities)
  6. For the Menu Title type "Show Next Tab" or "Show Previous Tab" ("Select Next Tab" and "Select Previous Tab" for Mavericks or older) (Also, these items will be different for languages other than English.)
  7. For the Keyboard Shortcut type Ctrl-Tab or Ctrl-Shift-Tab
  8. Click Add. You are g2g!

Solution 2

  1. Select next (right) tab CMD + }

  2. Select previous (left) tab CMD + {

So you would need to do CMD + Shift + [ or ] for left and right respectively.

Solution 3

Yet an addition to the answer above: The manual binding of shortcuts has changed in Yosemite from "Select Next Tab" & "Select Previous Tab" to "Show Next Tab" & "Show Previous Tab"

Solution 4

shift + command + arrow left/right works out of the box on Yosemite.

Solution 5

Okay so here is the only way I could figure out how to do it. First create the command you want to use system preferences but use a placeholder instead of tab since it wont let you insert the tab. Then open up com.apple.terminal.plist (most easily done with the plist editor) and go to the section NSUserKeyEquivalents and you should see the commands you created. Delete the placeholder and go to the edit menu and select special characters. The tab character is in the arrows section. It's an arrow pointing towards a vertical line. Its unicode value is 21E5. Once that is inserted save and quit and it should work! You could also do all of this in system preferences but you have to insert all the characters instead of typing them and I have no idea what their unicode values are.

By the way, I assume apple has at least a semi good reason for not allowing tab characters normally, so proceed with caution. A lot of global shortcuts use tab but ctrl-tab doesn't seem to be one of them so you're probably okay.

Share:
48,812

Related videos on Youtube

Community
Author by

Community

Updated on September 17, 2022

Comments

  • Community
    Community over 1 year

    How can I make Ctrl-Tab and Ctrl-Shift-Tab switch between tabs in Terminal.app on a Mac (OS 10.4 and 10.5 specifically)? This is how I switch tabs in Firefox and Aquamacs, and Command-Shift-[ and Command-Shift-] is too awkward to me. I am aware of this related question:

    How can I change the keyboard shortcut for switching tabs in Mac Terminal?

    And hence the Keyboard Shortcuts section of the System Preferences, but the dialog box for Keyboard Shortcuts doesn't seem to accept Ctrl-Tab in the Keyboard Shortcut field. Is there a special keyboard sequence for inputting tabs (with modifiers) into a dialog box field on a Mac? Is there any other method that would allow me to customize Terminal.app in the way I desire?

    • Admin
      Admin over 12 years
      Just for reference: Shift-Command-Left/Right Arrow also switch tabs. And in Mac OS X Lion 10.7, you can use a three-finger swipe to switch tabs
  • dpart
    dpart about 10 years
    You++, Works on mountain lion too.
  • Vlad T.
    Vlad T. almost 10 years
    Cool, same to mavericks.
  • LoremIpsum
    LoremIpsum over 9 years
    It's "Show Next Tab" and "Show Previous Tab" under Yosemite. But it's slower than using Command+Shift+Right or Command+Shift+Left for some reason (which, btw, makes me envy Linux users).
  • Siddharth
    Siddharth over 9 years
    Not working for Yosemite :(
  • knatten
    knatten over 9 years
    @Siddharth It works in Yosemite for me, using the tips from LoremIpsum above. And it's not slow at all btw.
  • Matt Jensen
    Matt Jensen over 8 years
    This is a game changer for Mac users, thank you!
  • incandescentman
    incandescentman over 8 years
    In OSX El Capitan I don't see a way to navigate to Terminal inside the utilities folder to add it to the application shortcuts list. I wound up just moving the app into /Applications, which worked.
  • Daniel Chia
    Daniel Chia almost 8 years
    Why did Apple decide to assign such horrid shortcuts to such frequently needed commands?
  • levininja
    levininja over 7 years
    Still works on El Capitan! :-)
  • cmcginty
    cmcginty over 7 years
    On El Capitan you need to use "Select Next Tab" and "Select Previous Tab" for the menu title