Add timestamps to note skill and grep examples for searching

This commit is contained in:
badlogic 2025-12-13 21:01:32 +00:00
parent da2ae69a83
commit 5c0a84b2d8

View file

@ -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)