[Alt]+[F1] to launch url or websearch on keyword
Posted: Tue Jul 30, 2013 10:53 pm
A long time ago far far away... oh wait. That's a different forum 
Some time ago I wrote a little tool CodeCaddy, yet these days the PB IDE seems to have made most of it superfluous. Yet there's one new feature I've been playing around with which I miss in the PB IDE.
I would like to be able to press ALT+F1 on any word inside the IDE, which then launches an external search, depending on the nature of the keyword.
For example:
1. If the word under the cursor is an URL (http://www.... or http://....) I would like a browser to open with that page.
2. If the word under the cursor is ending on an underscore, then launch a number of searches for that word MINUS the underscore, it's a great way to deal with WinAPI. In my setup I use the following parameters for the search:
http://google.com/search?q=%keyword%
http://www.google.nl/codesearch?q=%keyw ... earch+Code
http://google.com/search?q=site:purearea.net+%keyword%_
http://google.com/search?q=site:forums. ... %keyword%_
http://google.com/search?q=site:msdn.mi ... y+%keyword%
3. Otherwise, launch a search for the keyword.
http://google.com/search?q=%keyword%
http://google.com/search?q=site:purearea.net+%keyword%
http://google.com/search?q=site:forums. ... h+%keyword%
http://google.com/search?q=site:www.pur ... n+%keyword%
I'll upload the latest version of CodeCaddy in a moment to show what I mean.

Some time ago I wrote a little tool CodeCaddy, yet these days the PB IDE seems to have made most of it superfluous. Yet there's one new feature I've been playing around with which I miss in the PB IDE.
I would like to be able to press ALT+F1 on any word inside the IDE, which then launches an external search, depending on the nature of the keyword.
For example:
1. If the word under the cursor is an URL (http://www.... or http://....) I would like a browser to open with that page.
2. If the word under the cursor is ending on an underscore, then launch a number of searches for that word MINUS the underscore, it's a great way to deal with WinAPI. In my setup I use the following parameters for the search:
http://google.com/search?q=%keyword%
http://www.google.nl/codesearch?q=%keyw ... earch+Code
http://google.com/search?q=site:purearea.net+%keyword%_
http://google.com/search?q=site:forums. ... %keyword%_
http://google.com/search?q=site:msdn.mi ... y+%keyword%
3. Otherwise, launch a search for the keyword.
http://google.com/search?q=%keyword%
http://google.com/search?q=site:purearea.net+%keyword%
http://google.com/search?q=site:forums. ... h+%keyword%
http://google.com/search?q=site:www.pur ... n+%keyword%
I'll upload the latest version of CodeCaddy in a moment to show what I mean.