Is there a quick way or shortcut to duplicate a tab in macOS Safari?
Safari 13.1 finally added Duplicate Tab functionality, in both the contextual menu on tabs (control select) and in the Window > Duplicate Tab menu.
It doesn't come with a keyboard shortcut by default, but you can create your own keyboard shortcut in Keyboard preferences. (Internet Explorer, where this feature seems to have originated, used ⌘ + K.)
I have two alternatives:
- Press Cmd+L (go the Location/Search field), then Cmd+Return.
- Click the back button (
<), then press Cmd while clicking the forward button (
Both of these will open a tab in the background. (Often, Cmd + click opens the click target's reference in a new tab.)
If you also press Shift while performing the second step of either of these alternatives, the tab will open in the foreground.
- ⌘ + L
- ⌘ + Enter
How it works: The first step "Highlights the URL." (File > Open Location...). The second step "Opens the URL in a new background tab."
I'm usually a Chrome user, but I just tested it. It works on Safari, too. I can't find a reference for Safari, but here is that for Chrome. (under Mac > Address bar shortcuts)
Edit: Trauts beat me to it while I was formatting the key glyph. Feel free to ignore my answer and upvote him!
Run the following AppleScript via FastScripts, Keyboard Maestro, or other AppleScript-runner utility.
I believe that Tetsujin has the best answer (see above).
I read the above tips and tried several. Not noticing his tip at first I accidentally found the same solution, but for it to work this way you must have Safari's preferences set appropriately.
I am using El Capitan, OS X 10.11.1 and Safari 9.01. This tip works because we previously 1) opened Safari's Preferences dialog (Cmd/Comma), 2) selected the Tabs tab, 3) set the "Open pages in tabs instead of windows" drop-down list box to Automatically and 4) enabled the three check boxes just below that. What this does is mostly self-explanatory - text in the dialog box tells what each choice means.
Cmd/L, Cmd/Return - that's the entire tip!. Simple isn't it?
Cmd/L means Open Location and has the effect of opening the current URL in Safari's Smart Search field and selects it.
Cmd/Return means Open a page in a new tab. The URL in the Smart Search field opens in a new tab.
You can type this as 1) press Cmd and hold it while 2) you press L then 3) release L and press Return. You then 4) release both the Cmd and Return keys and you are done.
These two sets of keypresses will create a duplicate of the tab you are on and make it active.
If you don't want to use several key inputs there's a plugin for just duplication. I can't recall the name of it just now but I have used it before.
Edit: Found a plugin that does what you're looking for, it's not the one I have personally used for a long time but still does what you want. Pugin: http://thiemo.ch/safari/
The Tab Duplicator extension does the job, adding both the toolbar menu and an item in current page's context menu.