Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
1  
This is not exactly ubuntu specific, it would be better to ask thsi on superuser.com –  RolandiXor Apr 16 '11 at 2:55
add comment

2 Answers

up vote 12 down vote accepted

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.

share|improve this answer
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 W. 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
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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