feat(notes): list notes in a directory using "nl <dir name>"
This commit is contained in:
parent
006f0ead09
commit
16f871ed35
1 changed files with 5 additions and 1 deletions
6
notes.sh
6
notes.sh
|
@ -69,7 +69,11 @@ elif [ "$1" = "sync" ] || [ "$1" = "s" ]; then
|
|||
elif [ "$1" = "list" ] || [ "$1" = "l" ]; then
|
||||
echo "ACTIVE NOTES: "
|
||||
notesSync
|
||||
files=( $notes_dir/*.md )
|
||||
if ! [ "$2" = "" ]; then
|
||||
files=( $notes_dir/$2/*.md )
|
||||
else
|
||||
files=( $notes_dir/*.md )
|
||||
fi
|
||||
index=0
|
||||
for file in "${files[@]##*/}"; do
|
||||
((index++))
|
||||
|
|
Loading…
Reference in a new issue