Code Monkey home page Code Monkey logo

Comments (5)

 avatar commented on August 22, 2024 1

Actually windows support symlink, and I'm using it in my config.
I think this is a bug of org-noter, after I changed the NOTER_DOCUMENT to a symlink path, the bug occurs, and pdf-tools alone handles symblink path without any problem.
Thanks for your help ❤️

from org-roam-bibtex.

 avatar commented on August 22, 2024 1

Setting `directory-abbrev-alist' solved this bug perfectly, so maybe its just compatibility issue with emacs? Anyway to verify this I'll open issue on org-noter and pdf-tool's repo. Thanks agian.

@pRot0ta1p The highlighting is done by pdf-tools. Org-noter just tells pdf-tools which PDF document to open reading this information from NOTER_DOCUMENT. So it must be a bug in pdf-tools, although it might as well be an intentional feature. You can try setting directory-abbrev-alist, it may help. And as I wrote above, telling org-roam-bibtex to convert the retrieved path to an absolute file name also works around the issue.
I'm glad I could help.

from org-roam-bibtex.

myshevchuk avatar myshevchuk commented on August 22, 2024

I was only able to reproduce the behaviour you described when the PDF file was in a symlinked directory, otherwise it works perfectly fine. With the ORB/org-noter setup suggested in the README, the BibTeX file field is retrieved. We do not care what you put in there 🤣.

ln -s /directory/with/my/pdfs /symlink/to/directory/with/my/pdfs
@article{Doe2020,
...
File = {/symlink/to/directory/with/my/pdfs/Doe2020.pdf}
...
}

It seems to be an issue with pdf-tools or org-noter, or whatever 😂.

You can try one of the following (or all at once):

  • Write absolute file names into your BibTeX file(s)
  • Request absolute file names in orb-templates, e.g. %(file-truename (orb-process-file-field \"${citekey}\"))
  • Report the issue to pdf-tools or org-noter, or both

Anyway, it has nothing to do with org-roam-bibtex 😜

from org-roam-bibtex.

myshevchuk avatar myshevchuk commented on August 22, 2024

Ah, you're using Windows. They do not have symlinks, do they? Maybe something's wrong with your Windows installation.

from org-roam-bibtex.

myshevchuk avatar myshevchuk commented on August 22, 2024

@pRot0ta1p The highlighting is done by pdf-tools. Org-noter just tells pdf-tools which PDF document to open reading this information from NOTER_DOCUMENT. So it must be a bug in pdf-tools, although it might as well be an intentional feature. You can try setting directory-abbrev-alist, it may help. And as I wrote above, telling org-roam-bibtex to convert the retrieved path to an absolute file name also works around the issue.
I'm glad I could help.

from org-roam-bibtex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.