Skip to content
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

Zathura requires (!!) xdotool not only recommended #663

Closed
petRUShka opened this issue Jan 19, 2017 · 1 comment
Closed

Zathura requires (!!) xdotool not only recommended #663

petRUShka opened this issue Jan 19, 2017 · 1 comment

Comments

@petRUShka
Copy link

petRUShka commented Jan 19, 2017

There is a line in docs which says following:

Note: Forward search requires xdotool to work properly...

If xdotool isn't installed I see the warning:

vimtex warning: Zathura requires xdotool!

And when I do \lv VIM cause E716: Key not present in Dictionary: view. After \ll there isn't also any clue of zathura running.

But If I install xdotool everything is working as expected. So basically xdotool is necessary not only for forward searching but for combination vimtex+zathura to be working!

That ambiguousness is confusing. I spent a lot of time figuring out why it zathura isn't showing up at all. There should be a big notice somewhere that installed xdotool is vital component of vimtex+zathura combination!

vimrc:

set nocompatible
filetype plugin indent on
syntax enable

set completeopt=menu,preview

let &rtp = '~/.vim/plugged/vimtex,' . &rtp
let &rtp = '~/.vim/plugged/vimtex/after,' . &rtp

let g:vimtex_view_method = 'zathura'
let g:vimtex_quickfix_open_on_warning = 0

minimal tex file:

\documentclass{minimal}
\begin{document}

text

\end{document}
@lervag
Copy link
Owner

lervag commented Feb 9, 2017

I'm sorry about the inconsistency. I've updated the code and warning and think it should be more consistent now. For some reason, I disabled the viewer when xdotool was missing, instead of defining it with reduced features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants