From b93f0ca7ed6f71bfde2c9f6ca2b8d467bbc82fb6 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Tue, 9 Feb 2021 08:47:02 -0700 Subject: [PATCH] bug fix : notetaker no longer writes the date at the beginning of the file if the memo/note already exists --- zsh/notetaker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/notetaker b/zsh/notetaker index 699fd9f..b525c88 100644 --- a/zsh/notetaker +++ b/zsh/notetaker @@ -73,7 +73,7 @@ function TAKE_NOTE_OR_MEMO() { return $ERROR_CODE; } - [ $ADD_EDITOR_ARGS -ne 0 ] && { + [ $ADD_EDITOR_ARGS -ne 0 ] && [ ! -f "$DIR/$FILENAME" ] && { DATESTRING="$(date '+%A, %B %-d, %Y')" [ $EDITOR == 'vim' ] && EDITOR_ARGS='-c "normal! i# $TITLE :: $DATESTRING"'; }