swayimg icon indicating copy to clipboard operation
swayimg copied to clipboard

[feature] Key binding to show key bindings

Open giraudan opened this issue 2 years ago • 2 comments

Would it be possible to add a key binding that displays the key bindings, maybe identical to the way the image metadata is displayed when the -i command line argument is passed?

giraudan avatar Oct 04 '22 10:10 giraudan

Do you want something like help message (F1?) with key binding description?

artemsen avatar Oct 04 '22 10:10 artemsen

This is what I had in mind, yes.

giraudan avatar Oct 04 '22 10:10 giraudan

I'm not sure if this will help, but you can now create your own keybindings.

artemsen avatar Feb 24 '23 08:02 artemsen

I think @giraudan mean something like ranger, where the keybindings are displayed on screen. This is a nice to have thing and if someone wants to submit a PR it would probably be cool, but I think there are other priorities at the moment, like 10 bits color support.

An image viewer can be quite complex you want a full featured piece of software. Overall I'd rather let @artemsen do its own thing, for which I'm very grateful, and let external PRs address more complicated, or unimportant stuff.

Zeioth avatar Feb 26 '23 14:02 Zeioth

I think @giraudan mean something like ranger, where the keybindings are displayed on screen.

Yes, I understand that. I mean, people need a help window if they can't remember all the keys. Even I don't remember them all =) So instead of displaying a help window, you can now create your own key bindings.

like 10 bits color support

Swayimg can decode such images, but they are always displayed in 8-bit mode. Unfortunately, my monitor cannot display 10-bit color, so I have nothing to test HDR. But you can open a new issue so I don't forget about this feature.

artemsen avatar Feb 27 '23 09:02 artemsen