From ef404567d250740f19efc16d7e3f26d6722555a2 Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 23 Jun 2025 20:19:24 +0200 Subject: [PATCH] feat(notes): show number of archived notes in prompt for archive --- notes.sh | 2 +- tasks.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/notes.sh b/notes.sh index 6bf6d66..d6bf9c1 100755 --- a/notes.sh +++ b/notes.sh @@ -126,7 +126,7 @@ elif [ "$1" = "archive" ] || [ "$1" = "a" ]; then notesSync else PS3="Archive file #: " - echo "Please select a file to ARCHIVE." + echo "Move a note to ARCHIVE ($(ls ${notes_dir}/archive | wc -l))." select file in "${files[@]##*/}"; do { echo "Archiving $file" diff --git a/tasks.sh b/tasks.sh index dac4c7c..99aa737 100755 --- a/tasks.sh +++ b/tasks.sh @@ -11,7 +11,6 @@ command=$1 getopts "t" typora; #check if -t flag is given -echo ">>> typora? $typora" function editFile() { notesSync @@ -81,7 +80,7 @@ elif [ "$1" = "open" ] || [ "$1" = "o" ]; then elif [ "$1" = "done" ] || [ "$1" = "d" ]; then files=( $tasks_dir/*.md ) PS3="Mark as Done, file #: " - echo "Please select a file to MARK AS DONE." + echo "Mark a task as DONE ($(ls ${notes_dir}/tasks/done | wc -l))." notesSync select file in "${files[@]##*/}"; do {