! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Web search selected text
Status:
RESOLVED: WONTFIX
Severity:
enhancement
Product:
Xfce4-terminal
Component:
General

Comments

Description Andre Miranda editbugs 2014-05-06 04:07:18 CEST
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.
Comment 1 Andre Miranda editbugs 2014-12-01 12:44:15 CET
Any changes of this getting into master?
Comment 2 Igor editbugs 2016-08-16 13:47:38 CEST
Does a terminal app need this? I guess copy/paste text should be enough...
Comment 3 Andre Miranda editbugs 2016-08-16 14:34:54 CEST
It's useful when you need to search for an error message or something like that.
Comment 4 antisa 2018-11-07 15:21:18 CET
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.
Comment 5 Andre Miranda editbugs 2018-11-12 18:28:37 CET
Thanks antisa, a shortcut to search whatever is selected in any app make more sense.

Bug #10870

Reported by:
Andre Miranda
Reported on: 2014-05-06
Last modified on: 2018-11-12

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Version:
unspecified

Attachments

Preliminary patch (7.28 KB, text/plain)
2014-05-06 04:07 CEST , Andre Miranda
no flags

Additional information