tmalsburg / helm-bibtex

Search and manage bibliographies in Emacs
GNU General Public License v2.0
465 stars 74 forks source link

How to know which bib file is at point #406

Closed AtomicNess123 closed 2 years ago

AtomicNess123 commented 2 years ago

Suppose that I have set up a list of bibtex files like this:

(setq bibtex-completion-bibliography
      '("/path/to/bibtex-file-1.bib"
        "/path/to/bibtex-file-2.bib"))

When doing helm-bibtex to search for an entry, are all entries of all files shown and how to know to which bibtex file that entry belong to?

Thanks!

tmalsburg commented 2 years ago

Yes the entries form all files are shown in one list. I've also considered having separate helm sources for each file but that has some UI downsides. I think the only way to find out from which file an entry comes is to select the action "Show entry" which shows the entry in its .bib file. Not super great but I need to know this so rarely that it's okay for me.

My own system is to have three .bib files: One for preprints, one for my own publications, one for everything else. This way, I can actually infer from which .bib file each entry is coming.

Hope this answers your question.