$(meta_info "$_DATA/$ITEM/$1")
EOF
printf '[div .list .file
- [a href="%s" [img src="%s?a=thumbnail"][label %s]]
+ [a href="%s" [img src="%s?a=thumbnail"]][label %s]
[span .time %i:%imin] [span .dim %ix%i] %s
[checkbox "select" "%s" id="select_%s"][label for="select_%s" +]
]' \
| if [ "$FILTER" ]; then
sed -nr "$list_fex"
elif [ "${SEARCH#!}" != "${SEARCH}" ]; then
- grep -aviE "$(STRING "${SEARCH#!}" |sed -r 's;((^|[^\\])(\\\\)*)\+;\1\\+;g;')"
+ grep -aviE "$(STRING "${SEARCH#!}" |sed -r ':x s;((^|[^\\])(\\\\)*)\+;\1\\+;g; tx;')"
else
- grep -aiE "$(STRING "${SEARCH}" |sed -r 's;((^|[^\\])(\\\\)*)\+;\1\\+;g;')"
+ grep -aiE "$(STRING "${SEARCH}" \
+ | sed -r ':x s;((^|[^\\])(\\\\)*)\+;\1 ;g; tx;
+ s;((^|[^\\])(\\\\)*)\\\+;\1+;g;
+ s; ;\\+;g;')"
fi |cut -f6 | UNSTRING \
| while read -r fn; do
printf '%s\n' "${base}/${fn%${CR}}"
local meta
(cd "$_DATA/$ITEM";
find ./ -path '*/.index/meta'
- ) | while meta="$(line)"; do
+ ) | while read -r meta; do
list_filemeta "${meta%/.index/meta}"
done
}
[a #t_avsearch href="#advsearch" Advanced]
[a #t_prefs href="#prefs" ⚙]
]'
- w_prefs
+ w_bookmarks
w_advsearch
+ w_prefs
printf '
[form method=POST action="?a=multitag"'
list_items \