How to get Chrome-like tab switching shortcuts in Safari [pre-version 9.0]

google-chromesafarishortcut

I much prefer the way Chrome allows me to use +# key to switch directly to an open tab. For example: +3 takes me directly to tab 3 in Chrome, but in Safari it loads the third bookmark from the bookmark bar in the current tab.

How can I make Safari behave like Chrome when I'm using +# key shortcuts and switch tabs instead of loading bookmarks?

Best Answer

Window > Show Next Tab

Should display the keyboard shortcut to switch between open tabs, I have mine custom set but I believe the default keyboard shortcut is :

Control+-->

However if you want a specific tab to be populated corresponding to the number you can set custom keyboard shortcuts within Automator or go Ian's route


I was able to reproduce your desired results with Automator in conjunction with the AppleScript you provided :

Automator Walkthrough :

Follow the link to my Discussion

The general parameters are the same and I'm sure you smart enough to figure it out.

  1. Services Receive : NO INPUT
  2. In : Select Safari so this service isn't available outside the application
  3. Drag and Drop the 'Run AppleScript' action to the workflow
  4. Include the AppleScript code you provided
  5. Save the service - I saved mine in increments
  6. System Preferences > Keyboard > Shortcuts > Services > General > Safari Tab 3 (whatever you named yours)
  7. Create your shortcut : For some reason Apple has blocked CMD+#'s even though those shortcuts aren't used in the app as far as I diagnosed. I was able to successfully replicate your desired results with ++3, but your computer, do what makes you happy
  8. Enjoy for $0

EDIT If you use + + 1/2 they are already reserved for the History Menu (so you should change these in Keyboard > Shortcuts by altering the keyboard board shortcut for that menu title) and then + + 1/2 will be up for grabs again

RE-EDIT Apparently +#s are reserved for jumping to bookmarks. Since I don't have any it didn't prompt anything on my end. But again, all menu title keyboard short cuts can be altered with no work at all in the keyboard shortcut area in system preferences. So looks like you can use your Command + 1-9 buttons