edit icon indicating copy to clipboard operation
edit copied to clipboard

Add Shift+Ctrl+Home and Shift+Ctrl+End support

Open jemiller0 opened this issue 2 months ago • 3 comments

Can you add Shift+Ctrl+Home and Shift+Ctrl+End support to select text from the current position to the top of and bottom of file respectively?

jemiller0 avatar Oct 30 '25 15:10 jemiller0

The standard VT protocol cannot differentiate between Ctrl and Ctrl+Shift unfortunately, so this is impossible. There's the Kitty keyboard protocol, however, which should make this possible. But first we need support for that. As such, I'll close this issue as a duplicate of #29. (Contributions are welcome! My time working on this project is limited right now, however.)

lhecker avatar Oct 30 '25 18:10 lhecker

The standard VT protocol cannot differentiate between Ctrl and Ctrl+Shift

@lhecker It can on keys like Home and End, at least on most modern terminals.

Key Sequence
Home CSI H
Ctrl+Home CSI 1 ; 5 H
Ctrl+Shift+Home CSI 1 ; 6 H

j4james avatar Oct 30 '25 19:10 j4james

Ctrl+Home and Ctrl+End are working out of the box.

I'm wondering if Shift+F3 would have a problem for the same reason? Normally, Shift+F3 is repeat find backwards. It would be nice if that could work out of the box.

jemiller0 avatar Oct 30 '25 19:10 jemiller0