Re: [dev] [surf] SearchEngines patch

From: Enno Boland (Gottox) <gottox_AT_gmail.com>
Date: Wed, 23 Sep 2009 11:57:14 +0200

Hi!

I won't add this patch to vanilla-surf but feel free to create a
patches section in the suckless-wiki and add your patch.

regards
Gottox

2009/9/23 Nils <mail_AT_n-sch.de>:
> Hi,
>
> I wrote a little patch for surf which allows you to define custom search
> engines, so you can google for "foo bar" simply by loading the url "g
> foo bar" (or any other search engine you prefer).
>
> Put this in your config.h:
>
>> static SearchEngine searchengines[] = {
>>     { "g",   "http://www.google.de/search?q=%s"   },
>>     { "leo", "http://dict.leo.org/ende?search=%s" },
>> };
>
> The first argument is the prefix for your url, the second one is the url
> to call where %s gets replaced by your request.
>
> Hope this works for everyone, if you find any bugs please feel free to
> report them to me. :)
>
>
> Keep on surfing,
>
> Nils / McManiaC
>

-- 
http://gnuffy.chaotika.org - Real Community Distro
Received on Wed Sep 23 2009 - 09:57:14 UTC

This archive was generated by hypermail 2.2.0 : Wed Sep 23 2009 - 10:00:01 UTC