paleolimbot / rbbt

R Interface to the Better BiBTex Zotero Connector
142 stars 25 forks source link

RStudio addin 'insert Zotero bibliography': request to support json / yaml #16

Closed florisvdh closed 3 years ago

florisvdh commented 3 years ago

The RStudio addins are really great ! :+1: :rocket: They bind so well (and fast) to Zotero!

Currently, the addin 'insert Zotero bibliography' implements the bibtex format.

Given that 'Most users should use CSL-JSON format (.json) for their bibliographies.' (from bbt_write_bib() documentation), it seems sensible to have the option (~addins) to insert json or yaml.

paleolimbot commented 3 years ago

Right now I detect this using bbt_guess_format(bbt_rstudio_editor_filepath()), so if you have a .json or .yaml file open, it should guess this properly.

florisvdh commented 3 years ago

You're right, it does! :tada: (I was merely trying this inside an Rmd file, just to see how the addin behaves)

Maybe the behaviour can be clarified a little more in the readme of the repository, especially the fact that it is format-aware. Right now the explanation on the addins is quite brief - while these are sooo nice!

paleolimbot commented 3 years ago

Not perfect, but I documented a bit of the addin behaviour in the README!