mblode / vscode-zotero

Zotero Better Bibtex citations for VS Code
https://marketplace.visualstudio.com/items?itemName=mblode.zotero
MIT License
81 stars 11 forks source link

I need to get the citation key inside [ brackets ] #12

Open Saltiola7 opened 4 years ago

Saltiola7 commented 4 years ago

After citing this leaves the active window to zotero not VScode, so I need to click vs code every time after citing.

Also I need to have [ brackets ] around the cite as I got from zotero with cmd+shift+c for proper citation formation. Where can I change the citation to always automatically include brackets?

ableno commented 3 years ago

try add ?format=pandoc&brackets=1 in the extension preferences, it will add brackets. no idea about keeping the zotero background.

wuchichou commented 3 years ago

add &minimize=true in the end of the url can minimize zotero and back to VS Code after the citation.

garyritchie commented 3 years ago

?format=pandoc&brackets=1

Does this still apply today? I'm unclear about were this code is inserted; any hints would be appreciated.

ableno commented 3 years ago

It still works, you just need to go the the extension settings of zotero picker, you will see only one line can be editable, then you add &brackets=1&minimize=true, somehow you still have to click the editor window to resume although the zotero picker is minimized. I would recommend another extension, which I use more frequently, i.e., Pandoc citer.

garyritchie commented 3 years ago

Thanks, that helped! This is what I used (VSCodium)...

http://127.0.0.1:23119/better-bibtex/cayw?format=pandoc&brackets=1

Screenshot from 2021-06-15 12-03-49