Use absolute path for Zathura forward search#2377
Use absolute path for Zathura forward search#2377GianCarloMilanese wants to merge 1 commit intolervag:masterfrom
Conversation
The suggested change addresses code that was last modified for #2342, and there's been no complaint on this issue since then (until now). I know for a fact that a lot of people use VimTeX + Zathura on Linux machines, so: It would be very useful to have an example where I can reproduce the problem. Can you provide:
Glad you like it! |
|
Thanks a lot for your time. I'm sorry for the late reply. My OS is Ubuntu 20.04.3 LTS, and my VIM version is NVIM v0.8.0-dev. I have tried with the following files: " test.vim
set nocompatible
set runtimepath^=~/.local/plugged/vimtex
set runtimepath+=~/.local/plugged/vimtex/after
filetype plugin indent on
syntax enable
let g:vimtex_view_method = "zathura"
silent edit test.tex% test.tex
\documentclass{minimal}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\newpage
\lipsum[2]
\newpage
\lipsum[3]
\end{document}I have cloned the latest version of vimtex in After After changing line 102 of Thanks again. Let me know if you need any other information. |
|
I still can't reproduce this. I do this: cd ~
mkdir test
cd test
nvim test.vim # add content from the minimal vimrc
nvim test.tex # add content from the minimal tex file
nvim --clean -u test.vimthen
Note, I don't mind making the change if I can observe specifically that it is necessary, but I hesitate to do it before I am sure it actually solves anything. There is a risk that it may break something for some users as well, which is why I want to reproduce this first. |
|
Could this be related to synctex version? Or to the Zathura version? I have ❯ synctex help
This is SyncTeX command line utility, version 1.5
Synchronize TeXnology command-line client, version 1.21
❯ zathura --version
zathura 0.4.9
girara 0.3.7 (runtime: 0.3.7)
(plugin) pdf-mupdf (0.3.8) (/usr/lib/zathura/libpdf-mupdf.so) |
Hello,
I have always had issues with Zathura forward search (backward works fine on the other hand).
The only way to fix it for me is to use absolute paths instead of relative paths.
Maybe someone else has the same issue, I hope this is somewhat useful.
Thanks for the plugin, I have been using it for quite a while :)