bubbletea icon indicating copy to clipboard operation
bubbletea copied to clipboard

Fix key bindings for urxvt, add home/end combinations

Open knz opened this issue 3 years ago • 4 comments

Fixes #310. Fixes #403.

cc @muesli

knz avatar Aug 12 '22 19:08 knz

cc @maaslalani

knz avatar Aug 12 '22 20:08 knz

Let's make sure we verify this one very carefully, including in both urxvt and otherwise.

meowgorithm avatar Aug 18 '22 16:08 meowgorithm

All right I think there are two different changes here. I will split the PR which will simplify.

knz avatar Aug 19 '22 12:08 knz

Ready for another look - I have split up the PR into bite-sized commits, so that they become easier to review individually.

knz avatar Aug 19 '22 12:08 knz

@knz Could you do me a favor and rebase this once more?

muesli avatar Sep 27 '22 07:09 muesli

Done.

knz avatar Sep 27 '22 14:09 knz

@knz Help me understand why the last commit improves troubleshootability? I find the function keys a bit all over the place still.

Edit: Just to clarify, I'm happy with the change, I'm just wondering if I'm missing something obvious.

muesli avatar Oct 02 '22 03:10 muesli

why the last commit improves troubleshootability?

As I was cross-checking the codes for the function keys with the source code of all the terminal emulators listed in the termenv docs, I was doing them in order of function key (starting at F1, then F2, etc). It was super hard to do because they were not in function key order in key.go. That's why I rearranged them. But feel free to drop that latest commit if you believe it's not worth the hassle.

knz avatar Oct 02 '22 17:10 knz

Thank you @knz, great work 🙌

muesli avatar Oct 03 '22 17:10 muesli