In Opera browser 1 and 2 keys can be used to change between tabs. Is it possible to set up this shortcut in Safari? I tried adding a "Show Previous Tab" shortcut in keyboard preferences but is does not allow me to set a shortcut without a modifier key (ctrl/alt/cmd).
3 Answers
The keyboard shortcuts to switch between tabs in Safari are cmd-shift-{ (previous tab) and cmd-shift-} (next tab).
You can also use cmd-1, cmd-2, etc. to jump to the tab that corresponds with that number, up to 8 (e.g. cmd-5 will jump to the fifth tab from the left, from whichever tab you're currently on). cmd-9 will jump to the right-most tab.
You wouldn't make the shortcut from keyboard preferences. I believe that you would add this shortcut from Automator however I am not on my computer right now so I think that will work but I haven't tested this specific shortcut. If that dosent work then there is always the option of "⌘+`/⌘+Shift+' " to go to the next or previous tab. Hope this helps!
Not quite what you're asking, but I found SafariTabSwitching extension recently and am very happy with it https://github.com/rs/SafariTabSwitching
It let's you switch tabs using Cmd-(tab number) like all other browsers.
-
This is part of Safari without the need for the extension, but also the extension doesn't precisely replicate the needs of the question which is that one can switch through all tabs using those two keys rather than switching to exactly tab 1 or 2.– grg ♦Jun 9, 2018 at 10:45