Add timestamps to note skill and grep examples for searching
This commit is contained in:
@@ -233,7 +233,7 @@ description: Add and read notes from a persistent notes file
|
|||||||
|
|
||||||
# Note Skill
|
# Note Skill
|
||||||
|
|
||||||
Manage a simple notes file.
|
Manage a simple notes file with timestamps.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -247,6 +247,16 @@ Read all notes:
|
|||||||
bash {baseDir}/note.sh read
|
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:
|
Clear all notes:
|
||||||
\`\`\`bash
|
\`\`\`bash
|
||||||
bash {baseDir}/note.sh clear
|
bash {baseDir}/note.sh clear
|
||||||
@@ -261,7 +271,7 @@ NOTES_FILE="$HOME/.notes.txt"
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
add)
|
add)
|
||||||
echo "- $2" >> "$NOTES_FILE"
|
echo "[$(date -Iseconds)] $2" >> "$NOTES_FILE"
|
||||||
echo "Note added"
|
echo "Note added"
|
||||||
;;
|
;;
|
||||||
read)
|
read)
|
||||||
|
|||||||
Reference in New Issue
Block a user