hans / obsidian-citation-plugin

Obsidian plugin which integrates your academic reference manager with the Obsidian editor. Search your references from within Obsidian and automatically create and reference literature notes for papers and books.
MIT License
1.04k stars 76 forks source link

file link #253

Open lidans5 opened 7 months ago

lidans5 commented 7 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

lidans5 commented 7 months ago

I'm using Jabref or citavi for citations, I have many files linked in these programs, Do you think there is a wat that when importing the citation the link to the file will be kept and imported to?

orionpilot commented 7 months ago

I am not sure if a direct file link will be included in the plugin itself due to the different possible reference managers and their respective filesystems. However, as I also use JabRef, I wanted to share what I did to get around this. I wrote my own templater script that runs with the citations template that accomplishes the file linking. It reads the name of the file I am searching for, then searches the PDF library for the same file name and returns a link to that file to include in the literature note. The issue with my solution is if the file name changes, the link won't update, so its not perfect. Only adding it the citations template makes it only run when the literature note is created. I had to create different template to run with templater to be able to re-run the linking script after a note has been created.