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 all for feedback, I improved the hook to solve the issues.
@Sylvan54 now the note will tell what error Zotero gave you
@alatuszam thanks for finding that, I could reproduce the issue you described so I raised #3785 upstream. The new version has this workaround at the start that exits early if the note already has something