Using Ctrl-Tab to switch between tabs in Mac Terminal.app
I just tried this under Snow Leopard and it worked beautifully:
- Open System Preferences => Keyboard
- Go to Keyboard Shortcuts
- Click on "Application Shortcuts" on the left
- Click the little "+" to add a program
- Navigate to Terminal (it's hidden in Applications/Utilities)
- 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.)
- For the Keyboard Shortcut type Ctrl-Tab or Ctrl-Shift-Tab
- Click Add. You are g2g!
Select next (right) tab CMD + }
Select previous (left) tab CMD + {
So you would need to do CMD + Shift + [ or ] for left and right respectively.
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"
shift + command + arrow left/right works out of the box on Yosemite.
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.