Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
I really doubt so, but it would take only 10 minutes to make your own plugin (if you have Visual Studio). Alternatively you can use something like Launchy together with weby (I think that's built-in already, not sure). –  Tom Wijsman Mar 19 '12 at 7:52
    
Thanks for your comment. As I understand to do so I must have at least some knowledge of C/C++? The problem is that I'm not a programmer. –  Oleksandr Melnyk Mar 19 '12 at 10:04

2 Answers 2

up vote 5 down vote accepted

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

share|improve this answer
1  
Thanks a lot! It works. Moreover, while playing with the Plugin manager I accidentally found out that the "Google search" is a NP++ built-in feature. You just need to press Alt+F2 for Google search and Alt+F3 for Wikipedia search. –  Oleksandr Melnyk Mar 25 '12 at 15:16
    
I am glad it worked out for you @ Oleksandr –  Stat-R Mar 25 '12 at 15:22

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++

share|improve this answer
    
wow, this is cool! –  Teoman shipahi Oct 30 '13 at 19:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.