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 <m...@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