Description
Is your feature request related to a problem? Please describe.
When I write papers, I initially have the bib file be a symlink to my full bib file. Before the final submission, I prepare a .bib file that contains only the entries with the required fields (e.g., bibexport -o paper.bib paper.aux
). In that bib file, the file field disappears (as it should).
But if I now want to see the PDFs (citar-open-files
) I often can't, as citar will often use first the new bib, not the global one I specify via citar-bibliography
in my init.el (both bib files have the same keys).
Describe the solution you'd like
Search PDFs and notes in the global citar-bibliography
file.
Describe alternatives you've considered
I think I could set to nil or remove, from citar-major-mode-functions
the entry for local-bib-files
. I can also redefine citar-latex-local-bib-files
to return nil; this I've tested adding advice in my init.el and it seems to work.
(advice-add 'citar-latex-local-bib-files :override
5D4B
(lambda (&rest _) nil))
But I am not sure if this is a good idea. If it is, well, I am done and happy with the solution 😃 .
Additional context
While searching for similar issues, I found these to be somewhat related:
- Local value predicates for bib data variables #831 and
- Make citar-{bibliography,library-paths,notes-paths} safe local vars #800 and
- Add database/file annotation to completions #695
though I think citar-local-bibliography
was not finally added?