-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open item in Zotero from vim buffer #79
Comments
It doesn't work on my side either. Please, update the plugin and put After that, I can see the following error message:
I installed Zotero manually. This should be the reason why |
I edited my
with
and now I can replicate the issue as you reported. Maybe the This feature was introduced by @jasonccox |
@jalvesaq I can open attachments by pressing I've tried |
Same bug here. I don't know how to fix it. |
Chiming in as the original author of this feature. I don't have Zotero installed anymore, so I can't do much debugging right now, but I'd guess that the issue is related to the logic to build the Line 251 in 4f1d669
|
Thanks, @jasonccox! When we can't find anything on the web, we have to look at the source code. I downloaded Zotero from Git Hub and used
The first line has the command that we are already using, but it doesn't work. Looking at the code, I found: whose part of the diff is: - uriPath = uriPath.substr('//open-pdf/'.length);
- var mimeType, content = '';
+ uriPath = uriPath.replace(/^\/\/open(-pdf)?\//, ''); And in Zotero, clicking on "Help / Debug Output Logging / View Output", I find:
This is the end of my research, and I still don't know how to fix the bug. Perhaps, someone will find a solution. I will wait a few days before removing the option |
I also experience the issues pointed out here. I notice though that the So when I do: How are the URI's made? Based on the original Here's a snippet from the sqlite database
In the above snippet both |
Would you be able to make a pull request fixing this issue? |
I can, I just noticed though that if I set in config Lines 13 to 16 in 71e4958
Here's an example: @9IQRHJF2#Remedios_Logothetis_Kayser-2014 Then I'm a bit confused about where the logic is failing in this, since |
My guess is that this commit caused the problem: |
Hi @jalvesaq! Thank you for the tool. How to open an item (book, article, etc.) in Zotero from a zotero link in my vim buffer? I place my cursor at the
@<somelinkhere>
and press Enter. It opens Zotero but doesn't focus on the item I expect. While other features are working like open attachment, get biblio info etc.:Zinfo
:The text was updated successfully, but these errors were encountered: