Ensure you have these:
- Visual Studio Code
- Dendron
- Citation Picker for Zotero
- Zotero
- Better BibTeX
- Change Citation Picker "Port" setting:
"zotero-citation-picker.port": "http://127.0.0.1:23119/better-bibtex/cayw?format=playground&keyprefix=[[bib.&keypostfix=]]"
- Create a hook in Dendron with these settings in
dendron.yml
:
hooks:
onCreate:
-
id: newbib
pattern: bib.*
type: js
- Replace the
newbib.js
hook with the file below
- Add a citation with Zotero Citation Picker
- Once you get the
[[bib.smithExamplePaper2022]]
links, visit them to create filled notes
Thank you for this @Maarrk . If I may, I would like to add a bug report.
Refactoring or renaming notes that are referenced by the zotero-generated bib.* note, causes the content of the note to be deleted and to throw:
Importing data from Zotero failed with error:
To reproduce:
Thanks again for this use of hooks!