feat(notes): show number of archived notes in prompt for archive
This commit is contained in:
parent
dd0e68db22
commit
ef404567d2
2 changed files with 2 additions and 3 deletions
2
notes.sh
2
notes.sh
|
@ -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"
|
||||||
|
|
3
tasks.sh
3
tasks.sh
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue