Closed dan123222123 closed 4 weeks ago
I don't know how to replicate the issue. I did the following:
But I still can open the attachment with the <Leader>zo
command.
If I change the code from fpath
to fpath[1:]
I will break the code for everyone else.
I believe a better fix would come from handling cases separately in zotcite#GetPDFPath, but I am not very good at vimscript :(
I converted VimScript to Lua on the nvim
branch which will soon be the master
branch...
Hi @jalvesaq!
I am currently using vimwiki with zotcite. My Zotero pdf library is different to the standard zotero library (Synced with OneDrive), so I am using symbolic file links in Zotero.
When I try to open an inserted link in my markdown document, I get an error
The file or folder smb://home/user/OneDrive/zotero-library/*.pdf does not exist.
Checking
autoload/zotcite.vim
file, I tried to echofpath
inzotcite#OpenAttachment
. The resulting path was//home/user/OneDrive/zotero-library/*.pdf
When I changed the system call to open
fpath[1:]
instead offpath
, the file opens as expected. I did not test, but I assume that this workaround would break direct file links.I believe a better fix would come from handling cases separately in
zotcite#GetPDFPath
, but I am not very good at vimscript :(Thank you for this plugin!