From b96cf4b5aed434516f494d20bb180a6fd18940d5 Mon Sep 17 00:00:00 2001 From: Antoine Date: Wed, 31 Jul 2024 09:35:57 +0200 Subject: [PATCH] add new note creation script --- local/bin/dn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/bin/dn b/local/bin/dn index 8185941..f635b4a 100755 --- a/local/bin/dn +++ b/local/bin/dn @@ -7,7 +7,7 @@ today_file="${daily_note_dir}/${today}_daily.md" # Function to find unticked checkboxes in the most recent daily note find_unticked_checkboxes() { - most_recent_file=$(ls -t ${daily_note_dir}/*_daily_note.md 2>/dev/null | head -n 1) + most_recent_file=$(ls -t ${daily_note_dir}/*_daily.md 2>/dev/null | head -n 1) if [[ -f "$most_recent_file" ]]; then grep -E '^\s*[-*]\s+\[ \]' "$most_recent_file" else @@ -28,7 +28,7 @@ else echo "---" echo "# To-Do" find_unticked_checkboxes - echo "- [ ]" + echo "- [ ] " echo "" echo "# Logbook" echo ""