diff --git a/packages/mom/README.md b/packages/mom/README.md index 0136f693..4114493e 100644 --- a/packages/mom/README.md +++ b/packages/mom/README.md @@ -233,7 +233,7 @@ description: Add and read notes from a persistent notes file # Note Skill -Manage a simple notes file. +Manage a simple notes file with timestamps. ## Usage @@ -247,6 +247,16 @@ Read all notes: bash {baseDir}/note.sh read \`\`\` +Search notes by keyword: +\`\`\`bash +grep -i "groceries" ~/.notes.txt +\`\`\` + +Search notes by date (format: YYYY-MM-DD): +\`\`\`bash +grep "2025-12-13" ~/.notes.txt +\`\`\` + Clear all notes: \`\`\`bash bash {baseDir}/note.sh clear @@ -261,7 +271,7 @@ NOTES_FILE="$HOME/.notes.txt" case "$1" in add) - echo "- $2" >> "$NOTES_FILE" + echo "[$(date -Iseconds)] $2" >> "$NOTES_FILE" echo "Note added" ;; read)