search engines

Description

This patch allows the simple use of search engines. Put something like this in your config.h:

static SearchEngine searchengines[] = {
	{ "g ",   "http://www.google.de/search?q=%s"   },
	{ "leo ", "http://dict.leo.org/ende?search=%s" },
};

Then you can access each search engine by putting its prefix in front of your keywords:

g foo bar

or:

leo hello

Note: tokens should end with a space to prevent matching when trying to search for a url. Token "g" will match google.com.

Using " " as your token will give you the functionality of the spacesearch patch.

Download

Author