Add bookmark finder scripts, fix a few incorrect uses of IFS and read

This commit is contained in:
2026-01-19 19:47:46 -06:00
parent 6ca8fb0c33
commit 9d617a358f
7 changed files with 82 additions and 6 deletions

View File

@@ -0,0 +1,29 @@
#!/bin/sh
IFS="^" read -r bm_name bm_url bm_tags bm_date_added bm_type bm_parent <<BM_LINE_BLOCK
$(printf "%s" "$@")
BM_LINE_BLOCK
bm_preview_format_block=$(cat <<'BM_PREVIEW_FORMAT_BLOCK'
name:
%s
url:
%s
tags:
%s
date_added:
%s
type:
%s
parent:
%s
BM_PREVIEW_FORMAT_BLOCK)
printf "$bm_preview_format_block" \
"$bm_name" "$bm_url" "$bm_tags" "$bm_date_added" "$bm_type" "$bm_parent"