obsidian-tasks: import

This commit is contained in:
2026-03-14 07:24:15 +01:00
parent b9522bfc89
commit 110166d988

View File

@@ -0,0 +1,23 @@
#!/bin/sh
VAULT=~/cloud/syncthing/obsidian
rg --no-filename '^\s*- \[ ]' "$VAULT" \
| awk '
BEGIN {
# initialize "last-tag"
# initialize tags assoc array
}
{
# find out tag
# remove tag from task text
# add task text to assoc array
# save last-tag
}
/^\s+/ {
# save under last-tag in assoc array if no tag
}
END {
# group by tag
}
'