bug fix : notetaker no longer writes the date at the beginning of the file if the memo/note already exists

This commit is contained in:
Wryn Wagner 2021-02-09 08:47:02 -07:00
parent c045b7a17e
commit b93f0ca7ed

View File

@ -73,7 +73,7 @@ function TAKE_NOTE_OR_MEMO() {
return $ERROR_CODE; return $ERROR_CODE;
} }
[ $ADD_EDITOR_ARGS -ne 0 ] && { [ $ADD_EDITOR_ARGS -ne 0 ] && [ ! -f "$DIR/$FILENAME" ] && {
DATESTRING="$(date '+%A, %B %-d, %Y')" DATESTRING="$(date '+%A, %B %-d, %Y')"
[ $EDITOR == 'vim' ] && EDITOR_ARGS='-c "normal! i# $TITLE :: $DATESTRING"'; [ $EDITOR == 'vim' ] && EDITOR_ARGS='-c "normal! i# $TITLE :: $DATESTRING"';
} }