repo: open-search-descriptor
action: commit
revision: 
path_from: 
revision_from: d5d906e20c790c5644ee9099040a14475e8b5469:
path_to: 
revision_to: 
git.thebackupbox.net
open-search-descriptor
git clone git://git.thebackupbox.net/open-search-descriptor
commit d5d906e20c790c5644ee9099040a14475e8b5469
Author: epoch 
Date:   Fri Dec 10 07:42:19 2021 +0000

    had encode instead of decode. oops

diff --git a/uri-search-handler b/uri-search-handler
index 8677424d3147cb225459d5d79a8232cb5453f24c..
index ..0af5f780fa887f45aef07690be72598b9945f1d2 100755
--- a/uri-search-handler
+++ b/uri-search-handler
@@ -18,7 +18,7 @@ TEMPLATE_CACHE="${CACHE_DIR}/search-templates"
 ### stuff may break if you have spaces or :s or =s in here... good luck.
 make -f- < "${TEMPLATE_CACHE}"
+	xmlstarlet sel -t -v '//_:Url[not(@rel)]/@template' -t -o " " -t -v '//_:Description' -t -n "${XDG_CONFIG_HOME:-$HOME/.config}/open-search-descriptor/"*.xml | html_entities_decode > "${TEMPLATE_CACHE}"
 EOF
 template="$(choose 'search engine for "'"$q"'"' < "${TEMPLATE_CACHE}" | cut '-d ' -f1)"
 ### elif you do no want to cache

-----END OF PAGE-----