I want to have an option like Search on Google available in selected text's context menu in gnome-terminal. Something similar to the option which is available in selected text's context menu in google chrome / chromium / firefox browser:
So, something similar like in the above image, but in gnome-terminal. Is this possible?
Yes, there is an option. First download the following deb packages:
the data package: gnome-terminal-data_3.6.1_all.deb
the main package: gnome-terminal_i386.deb (for 32-bit OS) or gnome-terminal_amd64.deb(for 64-bit OS)
Second, install them using the following commands in your terminal:
And third, restart your terminal.
From now, when you will open your gnome-terminal you can quickly search on Google command line errors, warnings and other things. Highlight the text, right-click on it and choose "Search on Google". It opens the default web browser and go to the google search result page:
Source: Add Google Search to Gnome Terminal in Ubuntu 13.10
Using Colinker, a customizable context menu for selected text, you can search selected text in any application not just the gnome terminal. On Linux systems, Colinker is designed to be used with
xbindkeys
andxclip
.Ubuntu 18.04
1) Became a superuser
2) Download and install developer packets to build gnome-terminal
3) Download and build sources for current version of gnome-terminal
4) go to sources ( change the digits "3.28.2" in future versions )
5) Download the patch
6) Unzip and apply the patch
7) Build solution again
8) Store old version of the gnome-terminal-server
9) Copy new version instead of old
10) Kill old instance of gnome-terminal-server (current instance of gnome-terminal will closed too)
11) Run gnome-terminal and enjoy