nix-config/packages/notes/change-filename-format.patch
Oliver Davies d18476da73
All checks were successful
/ check (push) Successful in 1m27s
Refactor
2025-07-09 06:54:21 +01:00

13 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