msprev / fzf-bibtex

a BibTeX source for fzf
BSD 3-Clause "New" or "Revised" License
129 stars 15 forks source link

Biblatex support #14

Closed ashwinvis closed 5 years ago

ashwinvis commented 5 years ago

Copy all new entry types defined in biblatex.rsc As defined in:

https://github.com/ge-ne/bibtool/blob/fb251d0130e0bda33dfa9b64a59e1eb4b84979b0/lib/biblatex.rsc#L29-L85

msprev commented 5 years ago

Rather than cut and paste this from the bibtool codebase, would adding this work instead in the rsc?

resource{biblatex}

see bibtool docs pp. 20-21 for the command, which seems to do what you want.

I'm not sure if this change would interfere with expected behaviour on normal BibTeX files.

ashwinvis commented 5 years ago

I just did that. And it works. I don't think it will break detection of entries. As biblatex simply extends bibtex, afaik. I am not sure what crossref.map does

https://github.com/ge-ne/bibtool/blob/fb251d0130e0bda33dfa9b64a59e1eb4b84979b0/lib/biblatex.rsc#L232-L301

Does it apply to you?

msprev commented 5 years ago

Great, thanks for this! I've merged it now. Let me know if you find any problems.

msprev commented 5 years ago

I tested it and had to revert to the previous method as it wasn't working correctly. This is fairly clunky but at least adds basic BibLaTeX support and handles it through the default formatter.