repo: open-search-descriptor
action: blob
revision: 
path_from: README.txt
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

/ README.txt

blob_plain of this file

refs/heads/master:/README.txt

 you'll need a couple things from uritools if you want to try using this standalone or with xdg-open
 you'll need more things from uritools if you want to try the mess I use.

 the way I use it is either from firefox, or pressing alt+s

 alt+s runs the script named "search"
 which takes user input from a script named "choose" (which on my computer is just dmenu with some flags)
 it turns that into a search: URI like:

 search:?q=[entered-text]

 and it launches that using uristart. could probably symlink uristart in your user bin dir to xdg-open
 and have it mostly work.

 you would need uristart or xdg-open know to run the uri-search-handler script.
 (or I guess you could just run it directly from the search script)

 uri-search-handler checks for a bunch of .xml files in your XDG config dir
 that are in open-search-descriptor format.

 it then extracts the template URLs and will place the [entered-text] from earlier
 into the right spot of that URL, and then uristart /that/ URL.

 ofc you can edit that script to use xdg-open, a browser, or whatever else.

 this is only really using part 1 of this:
 https://en.wikipedia.org/wiki/OpenSearch
 that a lot of search engines publish files for.

 uri-search-handler also grabs the search engines from firefox.
 it uses this tool to decompress the search.json.mozlz4 files:
 https://github.com/andikleen/lz4json
 by default it uses the search engines in all firefox profiles in the usual spot.