feat(notes): add creation date to new notes
This commit is contained in:
parent
dbe0c8489e
commit
a4977dbeb1
1 changed files with 2 additions and 1 deletions
3
notes.sh
3
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue