From a4977dbeb152c0c5379e1952ac97e4d0e7bea533 Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 25 Jun 2026 10:03:35 +0200 Subject: [PATCH] feat(notes): add creation date to new notes --- notes.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notes.sh b/notes.sh index f566290..40ca8e9 100755 --- a/notes.sh +++ b/notes.sh @@ -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