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

[Bug]: Arrow keys not working in nested table of contents #709

Open
1 task done
carlobuccisano opened this issue Jan 5, 2025 · 7 comments
Open
1 task done

[Bug]: Arrow keys not working in nested table of contents #709

carlobuccisano opened this issue Jan 5, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@carlobuccisano
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Problem

Hi All,
I encountered what seems to be a bug today.
Simply put, navigating in nested table of contents (of any pdf file of choice) used to work just using Arrow Keys (until version 0.5.8-1).
Now I can open a nested toc but I'm unable, using keyboard only, to navigate to nested sections inside it.

Steps to reproduce

1- Launch zathura
2- Open a pdf file with a nested Table of Contents, for example https://www.math.ias.edu/~lurie/papers/HA.pdf .
3- Open the table of contents using Tab key,
4- Try to navigate, using keyboard only, to nested sections in the toc, like 3.1.2

Expected behavior

Expected behavior: the navigation should work using Up/Down/Left/Right arrow keys (right and left to open and close, respectively, nested sections).

zathura version (zathura --version)

0.5.11

girara version (zathura --version)

0.4.5

zathura backend

pdf-mupdf

@carlobuccisano carlobuccisano added the bug Something isn't working label Jan 5, 2025
@vincentaxhe
Copy link

Maybe Right and Left did not bind to action in index modle, so I try to add this to zathurarc,but did not work, I don't know why

map index Right navigate_index expand
map index Left navigate_index collapse

@tuurep
Copy link

tuurep commented Jan 11, 2025

Bug introduced in #677, based on comment #677 (comment)

@carlobuccisano
Copy link
Author

Update: I found out that, instead of using arrow keys, one can use Shift+Arrow Keys or h/l to expand or collapse entries in the index.
I still wonder if there is a way to re-enable just the use of Arrow Keys to navigate the index, though.

@carlobuccisano
Copy link
Author

map index Right navigate_index expand
map index Left navigate_index collapse

You need to enclose "index" in [ ] and Left/Right in < >, as explained in https://man.archlinux.org/man/zathurarc.5.
Still, even with the corrected syntax, it doesn't work, and debug mode of zathura doesn't say anything.

Do I leave this open? There is a workaround, as written above, but it'd be nice to get back to the Arrow Keys alone...

@tuurep
Copy link

tuurep commented Jan 24, 2025

Yes I believe this should be open :)

@suturar
Copy link

suturar commented Jan 25, 2025

I've got the same issue here, I also had C-f bound to expand entry (as per emacs keybindings) and now it opens a search dialog instead. I can confirm that it used to work just fine a few months ago.

@tuurep
Copy link

tuurep commented Jan 25, 2025

I also had C-f bound to expand entry (as per emacs keybindings) and now it opens a search dialog instead.

Ah, see also #677 for why that is.

I believe #565 has been closed prematurely by mistake, the provided PR was only tentative and is going to need some followups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants