"Google search" plug-in for Notepad++

I wonder if there is a Notepad++ plugin that adds a "Google search" line into NP++ context menu (mouse right-click), so that I could highlight some text, then right-click on it, select "Search in Google" and a web-browser opened with the search page?


Solution 1:

One way to achieve what you want is... Use Notepad++ plugin- NPPExec (Link to the plugin). You can also get it through Notepad++ "Plugin manager" plugin .

Install it and press F6 or select from the menu. See NPPExec in Menu.Write the following command in the box that appears. Then you may save it.

"C:\Users\YOURNAME\AppData\Local\Google\Chrome\Application\chrome.exe" http://www.google.com/search?q=$(CURRENT_WORD)

The selected word will be mapped to CURRENT_WORD. I have shown with Chrome. You may use other web browser as well.

REFERENCE: You may look at this and this

Solution 2:

I'm a little late to the party but this feature is already available and has been for a while now. I'm currently using NP++ 6.4.5. Go to Settings -> Edit Context PopupMenu. Click ok to the following prompt:

Editing contextMenu.xml allows you to modify your Notepad++ popup context menu.
You have to restart your Notepad++ to take effect after modifying contextMenu.xml.

Add the following line to that file where you want the option to show up in the context menu.

<Item MenuEntryName="Run" MenuItemName="Google Search"/>

Save, restart NP++, sit back and enjoy searching Google from NP++