feat(notes): add creation date to new notes

This commit is contained in:
ayo 2026-06-25 10:03:35 +02:00
parent dbe0c8489e
commit a4977dbeb1

View file

@ -29,8 +29,9 @@ function createNote() {
exit 1;
fi;
file_date="$(date +'%Y.%m.%d')"
file_name=$title.md
full_path="${notes_dir}/${file_name}"
full_path="${notes_dir}/${file_date}-${file_name}"
# IF Not Exists: create file & echo date
if ! test -f "$full_path"; then