tmalsburg / helm-bibtex

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

Adding current folder to bibtex-completion-bibliography #346

Closed DrWaleedAYousef closed 3 years ago

DrWaleedAYousef commented 3 years ago

I tried something like

(setq bibtex-completion-bibliography '("SOME PATH" "./"))

so that when I try to open the pdf of the selection it look at the current folder as well. It does not work!

tmalsburg commented 3 years ago

This variable is used to specify BibTeX files that should be loaded, not directories. Please have a look at the documentation and the examples in the README.org.

To configure the directories used to locate PDFs, use bibtex-completion-pdf-field. There's currently no way to dynamically include the current directory, but you could write a wrapper around helm-bibtex or ivy-bibtex that temporarily sets bibtex-completion-pdf-field such that it includes the current directory.