Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sometimes I need to move an url from an app to a browser. I select the url, say in gvim, and make Firefox window active. Then I see that I should clear address bar before pasting the new url, which requires selecting existing url, which wipes the new url from PRIMARY clipboard out.

What is the best way to put the new url from PRIMARY clipboard to address bar? Is there a shortcut to clear address bar and then to move focus there?

ps I know I can use Ctrl-C to put the new url to CLIPBOARD clipboard, but I prefer to use PRIMARY clipboard.

share|improve this question
just drag drop the url to the firefox icon in unity it opens it in new tab, i have done this for vlc!! – sarveshlad Oct 17 '12 at 21:33
Thank you! That works with gedit, but gvim doesn't allow to drag a selection. I need a solution that works with all applications. – zuba Oct 18 '12 at 8:17
The workaround I use is to open a new tab (left click on the "new tab" button and middle click in the address bar). – August Karlstrom Jul 3 '15 at 16:37
That is not the answer, as I asked how to clear the address bar of existing tab with a page loaded – zuba Jul 3 '15 at 17:09
up vote 1 down vote accepted

Just use Xclear add-on.

Clear url and search field easily

share|improve this answer
works perfectly! Thanks!! – zuba Nov 27 '13 at 18:17

Ctrl + L selects the Location Bar, giving it focus and highlights whatever is in the field. Simply use that keyboard shortcut just after giving the Firefox window focus but before you paste your intended target URL.

share|improve this answer
That's it! Thank you! – zuba Oct 18 '12 at 8:10
As soon as I press Ctrl + L, the primary clipboard contains the URL which is currently in the location bar, because this combination highlights it. I wonder why it worked for you, @zuba …? – unor Oct 20 '12 at 2:51
I bet it worked when I checked it out, but, yes, I'm mistaken the way I couldn't explain. Yes you're right - it doesn't work. So I clear the answer mark. – zuba Oct 20 '12 at 16:48
That certainly works for Chrome, despite it selects a location bar content as Firefox does. I guess I checked the solution for Chrome not for Firefox. – zuba Oct 20 '12 at 16:53

Activate the address field if necessary with a click, Select the url with Alt-A, clear the url with Del, and paste the new url with middle mouse button click.

share|improve this answer
That doesn't work to me – zuba Oct 18 '12 at 8:12

Your Answer


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.