Keyboard shortcut to open new tab next to current tab in Google Chrome

27,543

Solution 1

I ended up installing the Duplicate Tab Shortcut extension, which allows me to use shift+option+d to duplicate the current tab and the duplicated tab appears to the immediate right of the previous tab.

Update: This extension also supports a keyboard shortcut to open a new blank tab directly to the right of the current tab! Thanks @Oliver Joseph Ash for pointing that out.

Solution 2

It looks like I've found a solution.

This blog post from August 26, 2011 describes how to open the next tab using the built-in browser tools.

Here is a quote from there (with small edits):

  1. Go to Chrome's Options / Preferences screen (click the wrench icon on the browser toolbar then select Options or Preferences -- whichever appears on your system).
  2. You'll find yourself in the "Basics" preference page, which should have a "Search" section. Click on the Manage Search Engines... button.
  3. You'll see a list of your custom-built search engines for various sites (if curious, read about Chrome's search engine configuration). At the bottom of the screen, find the set of empty fields for adding a new search engine.
  4. In the first field (labelled "Add a new search engine"), enter Open new tab or something similar. The words you choose are not important -- make them meaningful to you so they'll trigger your memory if you go back into this screen any time in the future.
  5. In the second field (labelled "Keyword"), enter a single word or single letter or a sequence of letters (no spaces nor punctuation). You'll be typing this every time you want to open a new tab to the immediate right, so short and memorable is good. I use tt
  6. In the third field (labelled "URL with %s in place of query"), enter exactly this text including the semi-colon at the end: javascript:window.open();
  7. Click anywhere outside the fields to "save" your entry.

That's the end of the set up. Now whenever you want to open a new tab next to your current tab, you can do this:

  1. Move the keyboard focus to the address bar (Ctrl-L or Cmd-L).
  2. The entire current address should be highlighted, but if not, highlight it all (Ctrl-A or Cmd-A).
  3. Type the keyword you chose in step 5 above -- e.g., tt then Space (or Tab) and hit Enter or Return.

Once you get used to doing this, you'll be able to do it very quickly:

Cmd-L tt Space (or Tab) Enter

The new tab will open immediately to the right of your current tab. Your current tab will not be affected except that the URL might have disappeared from the address bar; if you want to see the URL again, just reload the page (or press Esc).

There is also a comment there telling how to do it using the bookmark:

You can use the same technique to add a button in the Bookmarks Bar.

  1. Open Bookmark Manager.
  2. Select the Bookmarks Bars folder
  3. Select Organize > Add Page.
  4. Name the new page "New Tab" or something similar.
  5. In the URL field, add the javascript mentioned in the above post:

javascript:window.open();

You should now have a clickable button to open a new tab.

From myself I will add that if the first parameter in window.open() is a link to the search engine with the pattern %s, then you can perform a search at the same time as opening a new tab.

Here is my example:

javascript:window.open('https://www.google.com/search?q=%s');

Here is the sequence of actions to use this feature:

Cmd-L tt Space (or Tab) Search query Enter

Screenshot

Solution 3

If you're on MacOS, this is doable via OS settings. MacOS is super helpful for app-specific keyboard shortcuts as long as the action appears in the app menu.

On latest Chrome (Feb 2022), I see these 2 actions in the menus:

  • File -> New Tab (⌘T)
  • Tab -> New Tab to the Right (no shortcut)

To adjust these shortcuts, go to System Preferences > Keyboard > Shortcuts. In the left tab, select App Shortcuts. Then click the + sign, and type "New Tab to the Right" (match capitalization), and set it to ⌥⌘T (or whatever you want). You can apply the shortcut to all applications or to Chrome only. I picked "all applications" since I use multiple browsers.

Now you should see this in the Chrome menus:

  • File -> New Tab (⌘T)
  • Tab -> New Tab to the Right (⌥⌘T)

Personally, I wanted the reverse of this, so I also added an OS shortcut for "New Tab" so I could change that key combo as well, resulting in:

  • File -> New Tab (⌥⌘T)
  • Tab -> New Tab to the Right (⌘T)

Solution 4

On Mac, you can assign Cmd + T to do this.

Based on Vadim's solution, after creating the bookmark, go to Settings -> Keyboard -> Shortcuts -> App shortcuts, and create one entry of of the book mark name, for instance:

Bookmark with shortcut Cmd + T

This is exactly what I was looking for.

Solution 5

Using Google Chrome Version 81.0.4044.138, Right-click on the tab you want to open a new tab next to, and select New tab to the right.

Context menu

Share:
27,543

Related videos on Youtube

Logan
Author by

Logan

Updated on September 18, 2022

Comments

  • Logan
    Logan over 1 year

    Is there a keyboard shortcut (or is there a way to create one without any extensions or third-party stuff) that opens a new tab next to the currently open tab?

    For example, let's say I have 10 tabs in Chrome and I have tab 3 open. Is there a shortcut to open a new tab and have it be inserted in the tab 4 spot instead of being added at the end of the list of tabs (tab 11 spot in this example)?

    I like being able to quickly open a new tab with command+t, but sometimes it is a pain to drag/rearrange my open tabs.

    • Admin
      Admin almost 3 years
      Google really need to built in to chrome (i.e. not require a third-party addon).
  • Logan
    Logan almost 8 years
    Thanks for the answer, but this isn't what I was looking for. I know (and often do) click links with command-click (similar to middle mouse) to open in a new window, but my use case is slightly different. I want to open a new tab and then type in some search; I don't have a link that I am following.
  • linuxfan
    linuxfan over 4 years
    Chromium/Linux too.
  • seth10
    seth10 over 4 years
    Thank you! I implemented this with success, but in addition to opening a new tab after the current one, it also opens a new tab at the end (even though File -> New Tab doesn't have the ⌘T next to it). Were you able to avoid this behavior?
  • Oliver Joseph Ash
    Oliver Joseph Ash over 4 years
    This extension also provides a shortcut to open a blank new tab to the immediate right of the current tab.
  • Lorenz Lo Sauer
    Lorenz Lo Sauer over 4 years
    The problem with this attempt is that Chrome no longer can intelligently group resources, like sharing a javascript-compiler instance and such. Chrome will see any new opened tab as though it originated from the current opened windows.
  • Arjan
    Arjan over 4 years
    Nice, but this adds search engines, while the question is about opening a new tab?
  • Burgi
    Burgi over 4 years
    I think there was a collision with edit timings which may have removed some changes. You might need to re-add in the bits you need
  • Logan
    Logan over 4 years
    Hmm... all my custom search engines open new tabs in the rightmost position.
  • Yashwanth
    Yashwanth about 4 years
    @Arjan For opening a new tab just use a shortcut Ctrl + t.
  • Arjan
    Arjan about 4 years
    Okay, reading your answer again, key is that you're using javascript:window.open('https://www.google.com'), cc: @Logan But now it's actually a duplicate of an July 2018 answer?
  • Arjan
    Arjan about 4 years
    Aside: typing the space after tt seems not needed in today's Chrome. And bummer that about:newtab, to get the true new tab window (which by default looks like Google's homepage, but also shows shortcuts, and can be customized) cannot be opened this way. (But then, unfortunately @LorenzLoSauer's comment is also very valid, and may also get one unexpected results when the parent window closes all its children at some point. Like in the past I've been quite confused when re-using windows that earlier were opened by some other window, which would then kill its children when closing it.)
  • Logan
    Logan almost 4 years
    That's nice, but that's using the mouse, not the keyboard.
  • michael
    michael almost 4 years
    On both Chrome & Chromium (Ubuntu 20.04), entering the search URL of the form google/search?q=%s just searched google for the string %s, so instead, adding some javascript to pop up a text box for the query string allows the search terms to be specified (and, one must "allow" that pop-up so as not to be blocked by default — allowing it on one page seems to allow it on all pages): Name the bookmark eg "New Search", and enter URL eg javascript:(function(){var u="https://www.google.com/search?q=";var q=window.prompt("Search: ");if(q)window.open(u+q);})();
  • Logan
    Logan over 3 years
    Thanks John, but this question was specifically for Mac and it sounds like this technique would only work for opening bookmarked pages and not new tabs in general.
  • Logan
    Logan over 3 years
    ^That should be the real answer! Thanks @OliverJosephAsh
  • Faither
    Faither over 3 years
    Yes, this works, but how to shortcut it?
  • kodmanyagha
    kodmanyagha about 3 years
    this is good solution but is this extension secure?
  • Community
    Community over 2 years
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
  • CrazyVideoGamer
    CrazyVideoGamer over 2 years
    @kodmanyagha Their website is weird. It redirects to sedna-aca.com and then to bizrate.com, which is blocked by my adblocker (from a filter in "Peter Lowe’s Ad and tracking server list"). I wouldn't install this extension
  • mblakesley
    mblakesley about 2 years
    Note: If you just want to have ⌘T open a new tab to the right, and you don't care about the normal "New Tab" action, you might still need to configure a different shortcut for "New Tab". Just set it to something you don't use. Usually MacOS transfers shortcuts so they don't clash, but I noticed that wasn't working in this scenario.
  • Admin
    Admin almost 2 years
    In Chrome v101 it works without the space so: CMD-L => tt => ENTER. Entering a search query after the space doesn't work.
  • Admin
    Admin almost 2 years
    Didn't know you could do that. Great!
  • Admin
    Admin almost 2 years
    this is way better than having to load an extension. Thank you.