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.

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
add comment

3 Answers 3

up vote 1 down vote accepted

Just use Xclear add-on.

Clear url and search field easily https://addons.mozilla.org/en-US/firefox/addon/xclear/

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

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
add comment

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
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.