Read Bear notes tagged 「待整理」, extract key topics, search for matching GIFs via gifgrep, and insert them inline. When done, remove the 「待整理」 tag and add 「已整理」.
~/.config/grizzly/tokengrizzly CLI installed (go install github.com/tylerwince/grizzly/cmd/grizzly@latest)gifgrep skill installed (provides GIF search)curl availablegrizzly open-tag --name "待整理" --enable-callback --json --token-file ~/.config/grizzly/token to list all notes with the tag. a. Read note content via grizzly open-note --id
b. Extract 2–3 key topics or keywords from the note title and first paragraph.
c. For each keyword, search GIFs using the gifgrep skill (or curl "https://api.giphy.com/v1/gifs/search?api_key=dc6zaTOxFJmzC&q= as fallback).
d. Pick the most relevant GIF URL per keyword.
e. Append GIFs to the note using grizzly add-text:
```
echo -e "\n---\n!
```
```
open "bear://x-callback-url/add-tag?id=
open "bear://x-callback-url/remove-tag?id=
```
For batch processing, use scripts/enrich_notes.sh:
bash scripts/enrich_notes.sh
The script handles the full loop: fetch tagged notes → per-note topic extraction → GIF search → insert → retag.
共 1 个版本