repo: open-search-descriptor
action: blob
revision: 
path_from: search
revision_from: refs/heads/master:
path_to: 
revision_to: 
git.thebackupbox.net
open-search-descriptor
git clone git://git.thebackupbox.net/open-search-descriptor

blob of:

open-search-descriptor

/ search

blob_plain of this file

refs/heads/master:/search

 #!/bin/sh
 q="$(printf "%s\n%s\n" "$(xclip -o | head -n1)" "$(xclip -o -selection clipboard | head -n1)" | choose 'search>' | tr '\n' '\0' | xargs -0 uriescape | sed 's/&/%26/g;s/#/%23/g')"
 if [ ! "$q" ];then
   exit 1
 fi
 ### put this to xdg-open if you want I guess.
 exec uristart "search:?q=$q"