2

Every new link you open with CTRL + mouseclick opens a new tab on the right.

However, there are certain situations where it is helpful to open a new tab to the left.

Is there any shortcut to achieve this? Something like CTRL + SHIFT + mouseclick would be handy.

If not, is there any workaround (like a plugin or an Autohotkey script)?


I think it's not built-in so I tag the question with "autohotkey" as well.

3

On Windows there is no shortcut to move tabs left or right, so you can use an extension like rearrange-tabs to set the shortcut for moving current tab to the right (Alt-Shift-Right) and then use Autohotkey script to combine into one action:

#If winActive("ahk_exe chrome.exe") 
^+lbutton::
    send ^{lbutton}
    send !+{right}
return

It basically binds Ctrl-Shift-click to do Ctrl-click then Alt-Shift-Right to move the tab one position to the right.

| improve this answer | |
  • Wow, amazing! This exactly solves the question. Great extension for other purposes too. 👍 – Kai Noack Jun 17 at 12:11
  • If you want to have the focus on the newly opened tab (on the left), you have to use: ^+lbutton:: send ^{lbutton} send ^{tab} send !+{left} return – Kai Noack Jun 17 at 12:46
  • After trying it a while, I saw that we need to wait some milliseconds before executing the tab switch. This is my recent script that works so far: ^+lbutton:: send ^{lbutton} Sleep, 150 send !+{right} Sleep, 150 send ^+{tab} return – Kai Noack Jun 18 at 11:08
0

There is an extension for that. It is called TabPlus It lets you specify where you want your new tabs to open. The behavior will be persistent though. I don't think you can quickly switch between two methods using a hotkey.

enter image description here

There is also Tab Position Customizer 2 extension which does the same:

enter image description here

| improve this answer | |
  • Thanks for pointing out the extensions. However, the left-tab-opening should only happen with a certain shortcut, not persistently. – Kai Noack Jun 17 at 10:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.