Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can support for BibDesk be added to bibtex-completion? #396

Open
rhstanton opened this issue Nov 18, 2021 · 5 comments
Open

Can support for BibDesk be added to bibtex-completion? #396

rhstanton opened this issue Nov 18, 2021 · 5 comments

Comments

@rhstanton
Copy link

rhstanton commented Nov 18, 2021

I, like many other Mac users, use BibDesk to manage my bibliographies, and it would be very nice if bibtex-completion could find the PDF file for a given BibTeX entry using the bdsk-file-1 (or ...2 if there's more than one PDF file) entry that BibDesk puts into the bib file (which is a base64-encoded fully qualified path name).

This discussion came up a few years relative to org-ref. Below is a link to the discussion, which contains a solution that should be relatively easy to port over to bibtex-completion. Thanks!

jkitchin/org-ref#273

@rhstanton
Copy link
Author

Hmm. The link above doesn't seem to work for me if I click on it, but if I cut and paste the text into a browser it works fine.

@tmalsburg
Copy link
Owner

Hi, thanks for creating this issue. In principle I would like to support all the different ways to reference PDFs. But some bibliography managers make this more difficult than necessary, some likely intentionally to lock in users. Although that's probably not the case with BibDesk which is libre software.

Anyway, the solution is to create a plugin system for Bibtex completion where the user configures the linking style used in their bibliography and then the appropriate plugin is used (could be multiple plugins for messy bibliographies). We can't try all linking styles because there are too many and it would slow down parsing too much.

If anyone is interested in working on such a plug-in system, I would be happy to provide guidance. It's actually not too difficult and such a system would close a lot of other issues as well. I would like to work on this myself, but I probably won't find the time in the near future.

@rhstanton
Copy link
Author

rhstanton commented Nov 18, 2021 via email

@tmalsburg
Copy link
Owner

Yes, it's not super difficult to implement. But the current approach is to try all known formats (bare path, Mendeley/Zotero format). If we do this with the present format, we'd have to check every single entry even for people who are not even using BibDesk. Too expensive.

@rhstanton
Copy link
Author

rhstanton commented Nov 18, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants