Change the "Paste & Go" action's text to "Paste & Search" if the content of the clipboard is not a URL
Review Request #102441 - Created Aug. 25, 2011 and submitted
If the content of the clipboard is not a URL, the "Paste & Go" action's text is changed to "Paste & Search".
Compiles and works.
i think that's a good idea, but you should show "Paste && Go" if the clipboard is empty, because the user should know that the context menu has this entry if he opens it for the first time. i've added a few suggestions to improve the check if it's an url. what if you've not set a default searchEngine yet?
I tested this and I noticed it really doesn't work. Let me explain: the changes proposed work very well, but trying to "paste & search" something it really is NOT searched on the web. I really think this should be fixed on the pasteAndGo() method.
i suggest you should create a new review request that just handles the "really search the web" part as tomorrow is string freeze and add it to the pasteAndGo function.