Created attachment 5476 Preliminary patch The attached patch adds the function "Web search" in context menu popup. This is similar to "Search Google for ..." in Firefox and Chrome. The patch is just a proof of concept, there are some kludges that need to be solved as describe in the patch itself.
Any changes of this getting into master?
Does a terminal app need this? I guess copy/paste text should be enough...
It's useful when you need to search for an error message or something like that.
I have a keyboard shortcut set up for this on Super+g. The command is sh -c 'xsel | tr " " "+" | xargs -I %s xdg-open "http://www.google.com/search?q=%s"' This searches google for any text selected via mouse (from primary clipboard) and works excellent for me. You need to have xsel installed and it works only on X11 display server of course.
Thanks antisa, a shortcut to search whatever is selected in any app make more sense.