Fix Logseq Task List query block pattern #1

Merged
d_mcknight merged 11 commits from feat/logseq-query-cleanup-fix into main 2026-11-03 20:21:28 -08:00
Showing only changes of commit fb86ccd1a7 - Show all commits

View file

@ -67,8 +67,10 @@ fi
EXCLUDE_FILE="" EXCLUDE_FILE=""
if [ "$IS_DIR" = true ] && [ "$SKIP_MOST_RECENT" = true ]; then if [ "$IS_DIR" = true ] && [ "$SKIP_MOST_RECENT" = true ]; then
# Find the most recent file by filename date (format: YYYY_MM_DD.md or YYYY-MM-DD.md) # Find the most recent file by filename date (format: YYYY_MM_DD.md or YYYY-MM-DD.md)
# We need to keep the original filename for the grep filter
EXCLUDE_FILE=$(find "$TARGET" -maxdepth 1 -name '*.md' -type f | \ EXCLUDE_FILE=$(find "$TARGET" -maxdepth 1 -name '*.md' -type f | \
sed 's/.*\///' | sed 's/_/-/g' | sort -r | head -1) sed 's|.*/||' | sed 's/_/-/g' | sort -r | head -1 | \
sed 's/-/_/g')
if [ -n "$EXCLUDE_FILE" ]; then if [ -n "$EXCLUDE_FILE" ]; then
echo "Excluding most recent file: $EXCLUDE_FILE" echo "Excluding most recent file: $EXCLUDE_FILE"
fi fi