jalvesaq / zotcite

Neovim plugin for integration with Zotero
GNU General Public License v3.0
177 stars 15 forks source link

Attached pdf can not find #37

Closed lsli0116 closed 2 years ago

lsli0116 commented 2 years ago

I am using macOS Monterey and use the zotcite with vim. And other function works well except for the <C-]> for opening the attached pdf. It will tell me that the following message:

Could not find "~/Documents/zotero/storage/845NSI86/Wu_et_al-2012-Precambrian_Research-Geochemistry_and_zircon_U–Pb_geochronology_of_Paleoproterozoic_arc_related.pdf"

But when I copy this path in my shell, the path exists and points to the pdf file. It is really strange, and I don't know how to fix it.

jalvesaq commented 2 years ago

It seems to be a problem of path expansion: ~ isn't being expanded to your home directory.

jalvesaq commented 2 years ago

What's the output of

:echo g:zotcite_attach_dir

?

lsli0116 commented 2 years ago

There is no output of echo g:zotcite_attach_dir, but after I manually expand the ~ in my vimrc, it works. Thanks for your answers! @jalvesaq