msprev / fzf-bibtex

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

Support more BibTeX and BibLaTeX entry types #17

Closed msprev closed 3 years ago

msprev commented 5 years ago

Currently there are dedicated formatters for only a relatively small number of BibTeX entry types. Others are handled as a 'default' case. The codebase is very easy to improve here, even if you don't know Go. The place to look at is here: format.go

PRs are welcome that would add useful new formatting clauses for BibTeX and BibLaTeX entry types.

Please add:

  1. A formatter for fzf display (a clause in EntryToFZF function)
  2. A formatter for markdown pretty printing (a clause inEntryToMarkdown function).
  3. Document with an example of intended behaviour in code comments
  4. A new.entry.type{...} if necessary to the rsc string if the entry type is not already being detected in parsing
msprev commented 3 years ago

I'm closing this issue, as there seems no need (either from myself or any other user) for displaying fields of BibLaTeX entries that are not already handled by existing entry types.