dotfiles/nix/pkgs/notes/create-daily-notes.patch
Oliver Davies 3e9a27874a Alter notes to create daily notes
Alter notes to create daily notes instead of monthly notes.
2025-01-19 21:50:44 +00:00

14 lines
390 B
Diff

diff --git a/notes b/notes
index 3351903..34364bf 100755
--- a/notes
+++ b/notes
@@ -14,7 +14,7 @@ set -e
readonly NOTES_DIRECTORY="${NOTES_DIRECTORY:-${HOME}/notes}"
readonly NOTES_EDITOR="${EDITOR}"
-readonly NOTES_FILE="$(date +%Y-%m).txt"
+readonly NOTES_FILE="$(date +%Y-%m-%d).txt"
readonly NOTES_PATH="${NOTES_DIRECTORY}/${NOTES_FILE}"
if [ ! -d "${NOTES_DIRECTORY}" ]; then