sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

how to rebind toc window page_up/page_down to C-v A-v?

Open Imymirror opened this issue 3 years ago • 6 comments

I am a emacser.

I can bind screen_up/screen_down to C-v A-v when reading PDF. but When pressing t, enter toc window, how to rebind page_up/page_down to C-v A-v?

Imymirror avatar Aug 09 '22 03:08 Imymirror

Unfortunately menu shortcuts are not customizable. I added an emacs mode for menus in ed761df983763526810a7847af02319060197230. You can enable it by adding this to your prefs_user.config:

emacs_mode_menus 1

ahrm avatar Aug 09 '22 14:08 ahrm

I rebuild sioyek. add emacs_mode_menus 1. press t(toc).

press C-V not work.

press M-v appear a weird char. image

Imymirror avatar Aug 09 '22 19:08 Imymirror

I don't use emacs so I don't know what shortcut exactly you are lookin for. I have bound C-v to move up and A-v to move down. What is M-v?

ahrm avatar Aug 10 '22 08:08 ahrm

M-v ==> alt+v.

never mind about emacs shortcut. I just don't want the right hand to move significantly to the right side of keyboard and press pageUp/pageDown. So I need some other keybinding, for example C-v A-v C-f C-u C-d .

but now A-v C-v not work in my Mac pro computer.

Imymirror avatar Aug 10 '22 12:08 Imymirror

It is strange that C-v and A-v are not working for you, maybe that is a mac-specific issue, unfortunately I can not test it myself because I don't have a mac computer. We already have C-j and C-k movement in menus. Does that not work for you?

ahrm avatar Aug 10 '22 13:08 ahrm

We already have C-j and C-k movement in menus. Does that not work for you?

C-j C-k move item up and down, work fine.

maybe that is a mac-specific issue

probably.


Maybe C-f C-b(vim-like keybinding) can work well.

Imymirror avatar Aug 10 '22 13:08 Imymirror

You can now manually bind menu commands to keybinds in keys config file. See this issue: https://github.com/ahrm/sioyek/issues/921.

ahrm avatar Feb 13 '24 14:02 ahrm