While the general integration with Zotero, especially the notes, (Support for Zotero 6 Notes import - #3 by gax) is more challenging, it would be great if Logseq had at least a basic local citation picker, like e.g. vscode:
The citation picker would then insert a link of the form [(Gax 2022)](zotero://select/library/items/...)
Getting citations is possible at the client level and does not require any online access or a synchronized Zotero database.
There are multiple options to get citations from Zotero, BetterBibtex is probably the best way currently.
Still it is not a great solution, there is substantial latency.
- BetterBibtex Cite as you write (CAYW) Cite as you Write :: Better BibTeX for Zotero
- zotxt GitHub - egh/zotxt: zotxt: a Zotero extension for text
- see also Erik Hetzner / zotxt-emacs · GitLab
- Word processor integration
A longer list is here: plugins [Zotero Documentation]
Sadly, Zotero has only a very limited local API, this is where BetterBibtex comes in.
A description of the different Zotero client APIs: dev:client coding [Zotero Documentation]
CAYW is very easy to use, but it returns the id, and I am not sure how to create a zotero:// link back to this. The following command will open a citation picker and pull all available information (needs BetterBibtex installed).
curl -s "http://127.0.0.1:23119/better-bibtex/cayw?format=json&brackets=1"
Advantages:
- No need for Zotero subscriptions
- No need to keep Zotero database online
- Better privacy
- Works even when offline
- Less latency