Skip to content

Back and forward search is working under wayland without xdotool, but vimtex still complains #2026

@jbuencuerpo

Description

@jbuencuerpo

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?

VimTeX: Zathura requires xdotool for forward search!

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

set nocompatible
let &runtimepath  = '~/.vim/plugged/vimtex,' . &runtimepath
let &runtimepath .= ',~/.vim/plugged/vimtex/after'
filetype plugin indent on
syntax enable

let g:tex_flavor = 'pdflatex'
let g:vimtex_view_method = 'zathura'

minimal.tex

\documentclass{minimal}
\begin{document}
Hello world!
\newpage
Bye Github!
\end{document}

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

System info
  OS: Pop!_OS 20.10
  Vim version: VIM 8.2 (1-716)
  Has clientserver: true
  Servername: VIM1

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 24557 run
    pid: 24557
    cmd: max_print_line=2000 latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf -pvc -e '$new_viewer_always = "0"' -e '$pdf_previe
  viewer: Zathura
    xwin id: 0
    process: 
      pid: -
      cmd: zathura -x "/usr/bin/vim.gtk3 --servername VIM1 --remote-expr \"vimtex#view#reverse_goto(%{line}, '%{input}')\"" --synctex-forward 1:4:'/home/j
  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

Included patches: 1-716

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions