pqiv icon indicating copy to clipboard operation
pqiv copied to clipboard

Home and End keys not working

Open pa-d-v opened this issue 4 years ago • 3 comments

I'm using i3 tiling wm.

Default Home and End keys as listed by pqiv --show-bindings:

<Home>  { goto_file_byindex(0) }
<End>  { goto_file_byindex(-1) }

strangely don't work (in other applications they do), why? Should probably be listed in the DEFAULT KEY BINDINGS section of the man page. Changing them to Ctrl-Home and Ctrl-End works. But it is NOT possible to unassign <Home> and <End> key with pqivrc:

[keybindings]
<Home> { nop() }
<End> { nop() }

Thanks in advance, Pascal

pa-d-v avatar Mar 28 '20 23:03 pa-d-v

Actually 2 items appear when unassigning <Home> and <End> keys in pqivrc and running pqiv --show-bindings:

<Home>  { nop() }
<Home>  { goto_file_byindex(0) }
<End>  { nop() }
<End>  { goto_file_byindex(-1) }

Explicitly setting/overwriting in pqivrc:

[keybindings]
<Home> { goto_file_byindex(0) }
<End> { goto_file_byindex(-1) }

makes the Home and End keys work! (still 2 items appear when running pqiv --show-bindings)

pa-d-v avatar Mar 29 '20 00:03 pa-d-v

Do you grep for Home, or look through the list? pqiv has multiple key binding domains, and Home is bound in both. Try adding another @MONTAGE { <Home> { nop() } }, that should unassign the other.

As for why you have to reassign to make them work, no idea, frankly 🤔

phillipberndt avatar Apr 11 '20 12:04 phillipberndt

Hi, Sorry I used grep and was unaware of these keys being used in montage mode. Actually it turns out that Home and End keys are only bound by default in montage mode and not in normal (viewing) mode in which I expected Home to go to the first image and End to go to the last image, I can easily bind these in pqivrc as mentioned but would be nice if these worked by default (should probably be listed in the DEFAULT KEY BINDINGS section of the man page then as well). Thanks.

pa-d-v avatar Apr 13 '20 15:04 pa-d-v