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:
parent
c045b7a17e
commit
b93f0ca7ed
@ -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"';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user