From 5c0a84b2d88bc354a920ed38120f29ba1e933b06 Mon Sep 17 00:00:00 2001 From: badlogic Date: Sat, 13 Dec 2025 21:01:32 +0000 Subject: [PATCH] Add timestamps to note skill and grep examples for searching --- packages/mom/README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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)