Index goes to first page instead of the desired one
On GitLab by @cz7asm on Mar 26, 2020, 21:57
This happens only after some time of listing in a document. When this behavior starts, it stays until program restart. Strangely, after I end up on the front page, then it's enough to press any navigation key and suddenly it refreshes on the correct page.
On GitLab by @csxtan on Sep 8, 2020, 02:48
Problem reproduction
I think it has something to do with using the input line. Here are some things that definitely trigger the bug:
-
:exec echo -
:blist -
:info - follow link
-
/(search)
and probably some other input line commands too but these are just what I tested.
Workaround
Reloading the document fixes the problem again. The easiest fix is to just bind reload to an easy key and reload whenever the problem arises. I think this is also the best solution.
If you don't want to do that, you can make zathura reload every time you open the index by adding the following to your zathurarc file:
map a reload
map b toggle_index
map c feedkeys "ab"
map [index] c toggle_index
- Replace
aandcwith whatever keys you want to use to use to reload the document and toggle the index respectively. -
bis just an intermediate, so just put something that will not conflict with rest of your keybinds. - feedkeys doesn't seem to work with modifier keys so use lowercase to be safe. You can also use strings of lowercase letters as long as they don't conflict with existing keybinds.
One downside of this is that the index resets, so the default selected entry is the top entry and all your expanded entries are unexpanded.
Can not reproduce on a recent version.