A friction-free pipeline that turns your Zotero library into a Git-tracked, LFS-backed reading vault with every annotation versioned.
How it should work
- Add a paper in Zotero →
references.bib
updates. - Close its PDF tab → a JS script exports your highlights into a fresh PDF and drops
.needs-commit
. - A background watcher sees changes → stages, commits & pushes everything.
- Git LFS stores the PDFs; the repo stays lean.
Better BibTeX post-export hook
cd ~/repos/paper-vault
git add references.bib notes/*.md papers/*.pdf
git commit -m "autoexport $(date -Is)"
git push