sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

Incorrect key codes in C-S bindings

Open hrdl-github opened this issue 1 year ago • 6 comments

I haven't tested this rigorously, but the default <C-S-o> binding seems to break on the development branch independent of the value of use_legacy_keybindings. Bindings to e.g. <C-S-O> seem to work, but this not reflected in the default configuration or documentation.

hrdl-github avatar Jun 15 '24 12:06 hrdl-github

Yes, I should update the keys.config file once the development branch is finalized.

ahrm avatar Jun 15 '24 12:06 ahrm

<C-S-O> feels odd to me. So the possible key combinations are

o, O, <C-o>, <C-S-O>

It's like you have to say "press shift" twice. Instead, <C-S-o> as before or <C-O> would make more sense, as there's no redundant information. So the possible combinations will be

o, O, <C-o>, <C-S-o>

as before, or

o, O, <C-o>, <C-O>

The last version looks the most uniform to me. I think I found the relevant code here, and I'd be happy to put in the work. But I wanna make sure this fits in with your vision.

panangam avatar Nov 10 '24 11:11 panangam

Thanks for the offer :). I would like to implement it myself because there might be a lot of edge cases on different platforms and a lot of testing should be done.

ahrm avatar Nov 10 '24 12:11 ahrm

Very understandable 👍. As always, thank you for the good work you put into this.

panangam avatar Nov 11 '24 05:11 panangam

I have added it in https://github.com/ahrm/sioyek/commit/bc5e582e482614fe1b7714971dac771f257a3de0 by the way.

ahrm avatar Nov 11 '24 07:11 ahrm

Works great for me.

panangam avatar Nov 12 '24 10:11 panangam