hans / hans/obsidian-citation-plugin
Failure to open PDF with Mendeley BibTex
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
Mendeley .bib files are similar to zotero files, so most of the functionality does work for them, too.
But somehow Mendeley stores the file paths in a way that is not digested by this plugin, so using SHIFT+TAB does not open the PDF
Instead of a neat file path like this
`file = {C:\Project\Literature\MyPDF.pdf:PDF}`
Mendeley stores the paths like this:
`file = {:C\:\Project/Literature/MyPDF.pdf:PDF}`
This means the link leads into nowhere.
A solution would be to change the file path the following way, given the file path is not valid:
- replace all forward slashes with backslashes
- remove the first colon
- remove the first backslash
- remove the :pdf or :PDF
It would be great if you could implement this!
Platform:
Windows 10
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the PDF path handling used by SHIFT+TAB and compare how Zotero and Mendeley BibTeX paths are parsed. Reproduce the Windows 10 case with the paths shown in the issue; done means the Mendeley path resolves to and opens the PDF.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100