Why type in a full url or go through a search engine's web page when you could just type a few characters and your search? A webjump simply elides the extra step.
In the spirit of UNIX, surfraw is a text tool which does one thing, and one thing only: it parses text provided by the user and transforms it into a search by your choice of several popular engines. For example, `surfraw google uzbl browser' will link you to a google search for the terms `uzbl' and `browser'.
bind \sr _ = sh 'echo "set uri = $(surfraw -print %s)" > $4' bind \gg _ = sh 'echo "set uri = $(surfraw -print $8 %s)" > $4' google bind \google _ = sh 'echo "set uri = $(surfraw -print $8 %s)" > $4' google bind \glucky _ = sh 'echo "set uri = $(surfraw -print $8 -l %s)" > $4' google bind \gi _ = sh 'echo "set uri = $(surfraw -print $8 -search=$9 %s)" > $4' google images bind \gimage _ = sh 'echo "set uri = $(surfraw -print $8 -search=$9 %s)" > $4' google images bind \glinux _ = sh 'echo "set uri = $(surfraw -print $8 -search=$9 %s)" > $4' google linux bind \gbsd _ = sh 'echo "set uri = $(surfraw -print $8 -search=$9 %s)" > $4' google bsd bind \gusa _ = sh 'echo "set uri = $(surfraw -print $8 -search=$9 %s)" > $4' google unclesam bind \wiki _ = sh 'echo "set uri = $(surfraw -print $8 %s)" > $4' wikipedia bind \imdb _ = sh 'echo "set uri = $(surfraw -print $8 %s)" > $4' imdb bind \aur _ = sh 'echo "set uri = $(surfraw -print $8 %s)" > $4' aur bind \freshmeat _ = sh 'echo "set uri = $(surfraw -print $8 %s)" > $4' freshmeat bind \weather _ = sh 'echo "set uri = $(surfraw -print $8 %s)" > $4' weather
The following code is the same as the above, except each of these spawns a new uzbl process rather than opening the url in the current window.
bind 'sr _ = sh 'surfraw -g %s' bind 'gg _ = sh 'surfraw -g $8 %s' google bind 'google _ = sh 'surfraw -g $8 %s' google bind 'glucky _ = sh 'surfraw -g $8 -l %s' google bind 'gi _ = sh 'surfraw -g $8 -search=$9 %s' google images bind 'gimage _ = sh 'surfraw -g $8 -search=$9 %s' google images bind 'glinux _ = sh 'surfraw -g $8 -search=$9 %s' google linux bind 'gbsd _ = sh 'surfraw -g $8 -search=$9 %s' google bsd bind 'gusa _ = sh 'surfraw -g $8 -search=$9 %s' google unclesam bind 'wiki _ = sh 'surfraw -g $8 %s' wikipedia bind 'imdb _ = sh 'surfraw -g $8 %s' imdb bind 'aur _ = sh 'surfraw -g $8 %s' aur bind 'freshmeat _ = sh 'surfraw -g $8 %s' freshmeat bind 'weather _ = sh 'surfraw -g $8 %s' weather
bind \yt _ = set uri = http://www.youtube.com/results?search_type=&search_query=%s&ag=f # youtube