feat(notes): show number of archived notes in prompt for archive

This commit is contained in:
Ayo Ayco 2025-06-23 20:19:24 +02:00
parent dd0e68db22
commit ef404567d2
2 changed files with 2 additions and 3 deletions

View file

@ -126,7 +126,7 @@ elif [ "$1" = "archive" ] || [ "$1" = "a" ]; then
notesSync notesSync
else else
PS3="Archive file #: " 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 select file in "${files[@]##*/}"; do
{ {
echo "Archiving $file" echo "Archiving $file"

View file

@ -11,7 +11,6 @@
command=$1 command=$1
getopts "t" typora; #check if -t flag is given getopts "t" typora; #check if -t flag is given
echo ">>> typora? $typora"
function editFile() { function editFile() {
notesSync notesSync
@ -81,7 +80,7 @@ elif [ "$1" = "open" ] || [ "$1" = "o" ]; then
elif [ "$1" = "done" ] || [ "$1" = "d" ]; then elif [ "$1" = "done" ] || [ "$1" = "d" ]; then
files=( $tasks_dir/*.md ) files=( $tasks_dir/*.md )
PS3="Mark as Done, file #: " 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 notesSync
select file in "${files[@]##*/}"; do select file in "${files[@]##*/}"; do
{ {