9

If "https://mail.google.com" is already open a tab, it it possible to have a browser switch to that tab if I try opening "https://mail.google.com" in a different tab?

What if I try opening the new address via cli (eg, google-chrome https://mail.google.com)? Can I get it to switch to already open tab?

Do any of the major browsers (Firefox, Chrome, Chromium, etc) have this feature?

  • 1
    This is not exactly ubuntu specific, it would be better to ask thsi on superuser.com – RolandiXor Apr 16 '11 at 2:55
13

This is a feature of Firefox 4. If you start typing an already opened address, the drop-down menu will suggest switching to the already active tab pointing to that address.

There is an add-on for Firefox that will give you total keyboard control over the browser called "Pentadactyl" (here). While not required, you'll probably enjoy it more if you already know vi keybindings.

So in fact, there is a way to change tabs with a "terminal" (ok, not really a terminal). But Pentadactyl supports the following commands:

:tabnext
:tabprevious
:tablast

and several others.

  • 1
    Neat! Do you know if there is any way to switch to a tab by executing a command from a terminal? – sutre Apr 16 '11 at 2:14
  • @sutre no there is not. FireFox 4 is not controlled from the terminal. – Thomas Ward Jul 12 '11 at 12:54
  • 3
    Sadly, firefox is one of these weird browsers you control with a mouse, and not from terminal. – Rafał Cieślak Jul 12 '11 at 16:25
5

This can be done in Google Chrome by entering about:flags in the omnibox and scrolling to the very last item, "Focus existing tab on open". Click "Enable" and restart Chrome.

Note: this feature is not documented for a reason. On the about:flags page it states:

"These experimental features may change, break, or disappear at any time. We make absolutely no guarantees about what may happen if you turn one of these experiments on, and your browser may even spontaneously combust."

In other words, you modify these settings at your own risk.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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