-
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
Back and forward search is working under wayland without xdotool, but vimtex still complains #2026
Comments
Good to hear it. I don't think this is because of something I did, though.
Yes: For example: If you open a LaTeX file, then do
Notice that |
No, it creates a window when doing \ll and then \lv highlight/focus (same window). If I press ctrl-click on Zathura's window I do backward search. I have tested with gnome-terminal and kitty. When using the gnome-terminal I even have the notification that the Zathura window is ready (not-steal focus behavior of gnome), but I don't see new windows. Maybe is an update on Zathura?
I am not sure if zathura is working through wayland or X11 backend as it complains: (org.pwmt.zathura:7577): Gdk-CRITICAL **: 08:50:27.005: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed Do you want me to run another test? I removed the extra pdflatex line, thanks! |
So, what you are saying is that: VimTeX + Zathura + Wayland just works on Wayland. I.e., After looking into the code, I notice a couple of things that will probably be noticable:
So, regarding the issue: It seems it is safe to remove the warning message. I think the message might not be so helpful, and in this case it is clearly just annoying. I've tried to slightly improve the docs instead. |
If I add:
backward search (from Zathura to vim) stops working, not what you expected I guess. Without it, it may need 1.5s before highlight the text in Zathura. If I add
It opens a new window each time. |
As expected.
Can you explain the steps you perform? Can you also show the viewer section of the
Yes, so: in a sense, you can say that Zathura works almost as expected as is. But, as I said, if you are working on a document, then saving |
I guess I am not so sensitive of that 1.5s, so if i can be faster, the better.
Then in vim Then it opens zathura, 1.5 s appears the green line on the line started on vim. Then I Trying also :VimtexInfo System info
OS: Pop!_OS 20.10
Vim version: VIM 8.2 (1-716)
Has clientserver: true
Servername: VIM
VimTeX project: minimal
base: minimal.tex
root: /home/jero/Documents/Writing/test
tex: /home/jero/Documents/Writing/test/minimal.tex
out: /home/jero/Documents/Writing/test/minimal.pdf
log: /home/jero/Documents/Writing/test/minimal.log
aux: /home/jero/Documents/Writing/test/minimal.aux
fls: /home/jero/Documents/Writing/test/minimal.fls
main parser: current file verified
compiler: latexmk
configuration:
continuous: 1
callback: 1
latexmk options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
latexmk engine: -pdf
job: process 28419 run
pid: 28419
cmd: max_print_line=2000 latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf -pvc -e '$new_viewer_always = "0"' -e '$pdf_previewer = "zathura -x \"/usr/bin/vim.gtk3 --servername VIM --remote +\%{line} \%{input}\" \%S"' -e '$success_cmd = "echo vimtex_compiler_callback_success"' -e '$failure_cmd = "echo vimtex_compiler_callback_failure"' 'minimal.tex'
viewer: Zathura
xwin id: 0
process:
pid: -
cmd: zathura -x "/usr/bin/vim.gtk3 --servername VIM --remote-expr \"vimtex#view#reverse_goto(%{line}, '%{input}')\"" --synctex-forward 1:1:'/home/jero/Documents/Writing/test/minimal.tex' '/home/jero/Documents/Writing/test/minimal.pdf' >/dev/null 2>&1 &
qf: LaTeX logfile
root: /home/jero/Documents/Writing/test
addqflist: 62
errorformat_saved:
fix_paths: 63
main: /home/jero/Documents/Writing/test/minimal.tex
set_errorformat: 61
document class: minimal
|
Ok, thanks. Is there anything more to do or discuss here? |
I have updated to the latest version, no warning from xdotool, everything is working (only that 1.5s I can live with). So thanks! |
I've done some refactoring and clean up of the code, and I now also added the option |
I have tested, and it works, thanks! (awesome plugin by the way) |
Great, and thanks! :) |
Hi, sorry to comment here after this is closed but I have been struggling a lot to get forward and reverse search working on wayland with zathura. I am very new to this so I am probably doing something wrong. I have looked at a lot of the issues mentioning wayland but cannot seem to figure this out. Are there any good guides anywhere? |
The documentation is the main guide. Anything else is prone to become outdated. However, there is no content currently specific for Wayland. Still, Zathura should work even without things like Please open a new issue if you want more help. Having more details makes it easier to help you. |
Thanks for getting back to me, I will try again and if I still have problems I will open an issue (great plugin btw!) |
No problem; thanks for the kind words :) |
Issue
The plugin use to fail doing back/forward search in wayland. Now it works (thanks!) However, the plugin complains in wayland about needing xdotool?
But, surprisingly back and forward search is working. The issue is that it shouldn't complain?
I am happy I can use it in wayland! but also I am confused as it is not mentioned in the README or issues
minimal.vim
minimal.tex
Commands/Input /
Observed Behaviour
Open the file, vimtex complains about xdotool. Compile it and \lv green region, ctrl+click to reverse search.
Expected Behaviour
Forward/backward search works on wayland (leader v or ctr+click on zathura)
Output from VimtexInfo
Included patches: 1-716
The text was updated successfully, but these errors were encountered: