createNewNote() now works with journals

This commit is contained in:
Tomas Rivera
2026-04-04 11:36:59 +02:00
parent 8b39e31706
commit 07f503dc5b
4 changed files with 79 additions and 24 deletions
+2
View File
@@ -202,6 +202,8 @@ char *updateJournal(char *path, char *journal, char *timeFormat, int shouldDebug
fprintf(file, "%s\n", date);
fclose(file);
free(createEntryMessage);
} else {
debug("Today's entry (%s) already exist. We won't create a new one.", dateWithExtension);
}
} else { // we just recreate the path to the selected entry
// snprintf does not like to have the same variable as input and output so we use a buffer