ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
7.19k stars 236 forks source link

Keybindings to move up and down for list opened by `open_prev_doc` #1231

Closed jsr-p closed 4 days ago

jsr-p commented 4 days ago

Hi

I installed sioyek from source at commit ba481becabbd0c85692c4eeaf7d0dd8284f09c4a. However, my keybindings used when going through previous files in open_prev_doc suddenly don't work (I used to press <c-j> and <c-k> to go up and down. I can't see any command inside the docs that show what I should bind; does anyone know where it can be set?

ahrm commented 4 days ago

Does this help? : https://github.com/ahrm/sioyek/issues/1195

jsr-p commented 4 days ago

yes, thanks a lot! I searched through old issues by open_prev_doc so didn't see that one :s

however, <c-k> for control_menu(up) does not work for me for some reason? binding it to <c-p> does, though :thinking:

ahrm commented 4 days ago

What is your keys_user.config? This works for me in the development branch build:

[m]control_menu(up) <C-k>
[m]control_menu(down) <C-j>
jsr-p commented 4 days ago

nice, that works! what are the prepended [m]'s in yours? I just wrote

control_menu(down) <C-j>
control_menu(up) <C-k>

before and that didn't work

ahrm commented 4 days ago

[m] means that the keybinding is only active in menus. I don't know why <C-k> is not working for you, maybe there is another keybinding that is overriding it?

jsr-p commented 4 days ago

[m] means that the keybinding is only active in menus. I don't know why <C-k> is not working for you, maybe there is another keybinding that is overriding it?

I do indeed have it bound to something else as well; but I tried to remove that part and it stil didn't work. But now with [m] it all works :champagne:

previous_page <C-k>
next_page <C-j>
[m]control_menu(up) <C-k>
[m]control_menu(down) <C-j>