sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

[Feature request] Outline / TOC navigation using hjkl keys

Open davdent opened this issue 1 year ago • 2 comments

Thanks for this amazing program!

Please consider an option to change the behaviour of the Outline / TOC to a Zathura style navigation, using the hjkl keys, with l (lower case L) drilling to the next level down, and h closing that level and going back up the hierarchy.

At present, the Outline / table of contents works by filtering by letter. This is interesting and may be useful for large textbooks with hundreds of entries. However, for me, the Zathura navigation is more useful and is extremely intuitive and efficient (and I am not even a Vim user!). It allows a quick way to understand the structure of the article or book and a fast way to get to sections or chapters of interest.

Would it be possible to add be an option to change to the Zathura style TOC navigation?

davdent avatar Mar 09 '24 14:03 davdent

In the development branch of sioyek we added the ability to bind modifier keys to menu down using something like this:

control_menu(down) <C-j>

Using vanilla j without modifiers is not possible though.

ahrm avatar Mar 09 '24 14:03 ahrm

Are there similar commands to move up, and to go down a level, and then back that could use <C-j> <C-k> <C-h> and <C-L> the way Zathura uses the vanilla hjkl keys?

When are you hoping for a new stable release which would use this feature?

Thanks!

davdent avatar Mar 09 '24 17:03 davdent