mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 09:02:08 +00:00
Add timestamps to note skill and grep examples for searching
This commit is contained in:
parent
da2ae69a83
commit
5c0a84b2d8
1 changed files with 12 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue