-
Notifications
You must be signed in to change notification settings - Fork 732
feat: separate handling of Control-H (^H) and Backspace #1384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…s systems Already separated in Windows, allows e.g. binding 'backward-kill-word' to Control-Backspace (which usually emits ^H) while leaving Backspace 'backward-delete-char' Closes prompt-toolkit#1380
Thanks. This sounds fine. If you have time, can you have a look at why the tests are failing? Otherwise I'll have a look later on. |
Hey, I've already looked into it — please check this comment in the original issue #1380 (comment)
Personally I'd prefer to add the keybinds so that
and need someone more knowledgeable about the use cases of ptk to make that call |
What I'm also afraid of is that some users have the habit of literally typing control-h instead of backspace when they're in a terminal, because the key is easier to reach. So, I'm not sure we should make it a default on Linux. I'm still not sure. |
I'm personally using a pok3r keyboard where the arrow keys are under FN+jkli (where my fn is on caps lock). It's not unusual either to use ctrl-h as backspace. |
Oh, great minds think alike :), I have exactly the same cursor bindings (also with a caps lock), though that serves as a supplemental cursor as I still like the dedicated one; and caps lock+h would make perfect sense in this setup, but ctrl-H is still a bit strange |
Is there any progress on this ? |
Any updates? Thanks! |
Allows achieving the console usability level of Windows :), where ^H and BS are already handled separately, e.g. with this patch you can bind
backward-kill-word
to Control-Backspace (which usually emits ^H) while leaving Backspacebackward-delete-char
Per this comment this would be a breaking change, though a worthwile one
Closes the second part of #1380