msprev / fzf-bibtex

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

Add three biblatex fields to rsc and format them for printing. #22

Closed Aarleks closed 3 years ago

Aarleks commented 3 years ago

Reference Issue #17

What does this fix?

Biblatex has a slightly different naming convention to Bibtex for data fields. Currently, fzf-bibtex misses key fields, and has no format for 'online' type entries. This commit enables the parsing and printing of the following fields in biblatex files (bibtex equivalent in parentheses):

Example of expected behaviour for 'online' type entry: Nameth, Namius (2020) 'Webpage title', https://www.supercoolwebsite.xyz

Other comments

Thanks for the great program!

msprev commented 3 years ago

Thanks for this, really appreciate enhancements to biblatex support 👍.

Nit pick: this will give weird results though if an entry has both its 'location' and 'address' fields non-empty. Looks better to have an else if for one field to take precedence over the other. What do you think?

Aarleks commented 3 years ago

Yes, good point. I'll update it.

Aarleks commented 3 years ago

I'll update the README, too.

msprev commented 3 years ago

Looks great, thank you! Merging now 👍