tmalsburg/helm-bibtex

Add additional-search-fields to bibtex-completion-format-entry?

Closed this issue · 5 comments

If the bibtex-completion-additional-search-fields variable is set (say to include tags), should not bibtex-completion-format-entry add the field(s) to its output?

bibtex-completion-candidates does include the additional fields, so I was expecting that to carry through with the formatted output.

Bottom line, for #361 or #355, how do we include the additional field(s) in the string that gets completed against?

should not bibtex-completion-format-entry add the field(s) to its output?

Some users like to be able to search for the content of some fields without having them clutter the list of entries. For instance, you may want to include abstracts in the search but you likely don't want abstracts in list of entries. If you'd like to change the visual presentation, you can do this using the configuration variable bibtex-completion-display-formats.

Bottom line, for #361 or #355, how do we include the additional field(s) in the string that gets completed against?

I'm not sure I understand this question: bibtex-completion-candidates gives you a list of entries that also include the additional search fields. So you have to somehow include them in the search. Not sure how to do this with completing-read / embark et al., sorry.

OIC, so for example, in helm-bibtex, you are using bibtex-completion-candidates to search against?

See the output of this code: (car (bibtex-completion-candidates)). It's a cons cell where the first element is a string used for matching (but this string is never displayed) and the second element is the entry (alist) which is later used to prepare the entry for presentation in the list.

Thank you!