Closed iGormilhit closed 2 months ago
For me the pandoc
command always needs the full path unless I export the full path in .bashrc
to the plugin.
Perhaps having the full path to zotref.py
works?
:!pandoc filename.md --to=html --output="filename.md" -F /home/user/.local/share/nvim/zotcite/python3/zotref.py --citeproc
@adam-coates Yes, this way it works. But the documentation says that: "The Zotcite plugin adds the directory where zotref.py
is to the system $PATH
." I think I will add it to the $PATH
myself.
Thanks for your answer.
Great glad it works.
As with Zrefs
I've never used that before now, sorry I couldn't be much help in that area.
Thanks for reporting the bugs! :Zrefs
should be fixed now.
I can't replicate the other issue. The pandoc
command works on my side.
@jalvesaq Thanks!
How the zotcite plugin add it's path to the system $PATH
?
@jalvesaq I confirm that the 06fa405 fix resolve the :Zrefs
issue. :+1:
How the zotcite plugin add it's path to the system $PATH?
It's in the lua/zotcite/config.lua
. Just seek for "PATH". I made a minor change but I don't believe it will fix the issue on your side.
Maybe you have set the PATH yourself... To check this possibility:
cd ~/.config/nvim
grep -R PATH
You can see the PATH environment variable with this command in Neovim:
:echo $PATH
Any news on this? As I said, the !pandoc
command works on my side and I can't fix a bug without knowing what's causing it.
I've add zotref.py
by myself in the system $PATH
. And now I can use pandoc
with the filter. I don't know why the zotcite mechanism of doing it doesn't work on my system.
Sorry for my late answer, I'm quite busy these days.
Thanks for the feedback! I'm closing the issue. Please, make a pull request fixing it if you find its cause.
Hi,
I'm trying to use the zotcite plugin, with cmp_zotcite, and it's working fine for the
@…
completion, or with commands like:Zannotations
or:Zseek
, but I have trouble mainly with the:Zrefs
command and thezotref.py
filter (errors detailed below).OS: archlinux. neovim: v0.10.1
My configuration is available here:
:checkhealth
confirms that the python-provider is ok. I firstly tried with a 3.12 python version, with the same issues. So I tried the 3.10, but with no change.In the virtualenv are installed the following:
(I have trouble with the
python-poppler-qt5
installation, but that's another story.)I have other plugins installed, of course, such as
vim-pandoc
andvim-pandoc-syntax
, but I tried to deactivate them, with no change in my issues.When I open a
.md
file, which get the pandoc filetype throughvim-pandoc
, if I try to use the:Zrefs
command, I get:And with the
zotref.py
filter:I get the following error:
I suspect that the issue comes from the python provider, but I've followed the documentation (https://neovim.io/doc/user/provider.html#python-virtualenv).
I will of course give further information if needed.