-
Notifications
You must be signed in to change notification settings - Fork 391
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
Add simple Zathura viewer alternative #2639
Conversation
This is a simpler version of the Zathura viewer that does not depend on xdotool. It should work better on systems that do not use Xorg, e.g. on Wayland. refer: #2046
I would be glad to have some users test this on e.g. Wayland. To test:
Things to test:
|
Hello, I want to mention that the default version of plugin was already just working on wayland in my case, i.e. I haven't encountered multiple zathura windows. I've tried this branch, it also works well: It opens one window after compilation, after recompiling that one window updates. If I close neovim and keep zathura window, then open neovim and compile it again - it will update that zathura window. Synctex is working on the one file projects and on the multiple file projects. I've also opened two nvim instances with different project compiled and they seem to work fine. Tried with two same test.tex names and with different - works in both cases. Here is my vimtex config: local g = vim.g
g.vimtex_view_method = 'zathura_simple'
g.maplocalleader = ","
g.vimtex_syntax_enabled = 0
g.vimtex_syntax_conceal_disable = 1 |
Ok! Still, the
Thanks for testing! I'll wait some more time before I merge this to see if more people will test and provide feedback. |
Thank you for continuing to work on this (especially since you don't use Wayland yourself!) Unfortunately, this doesn't work for me. I am having multiple viewers being opened and search doesn't work (new viewers are opened in the wrong place). I don't want to speculate too much on why this is the case, but I found that appending
to
Surprisingly (to me), telling VimTex that a viewer is always open ( This has been tested like my last comment. Opening windows, opening different pdfs etc. |
Strange.
That shouldn't be necessary. The idea is to never use the
Yes, the idea is to always include the forward and inverse search command-line options. Then we don't need anything except the |
Brilliant, now it works perfectly for me! Thank you so much for your fast work! |
Cool, thanks for testing and for the useful feedback! I'll wait for a few more days before I merge this; and I'll add proper documentation of course. |
This PR adds a
zathura_simple
viewer variant that does not depend onxdotool
. This means it should work well on e.g. Wayland (see e.g. #2046).