Skip to content
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

Feature request: Ctrl+Backspace to delete whole words #68

Open
DorianRudolph opened this issue Jul 4, 2022 · 1 comment
Open

Feature request: Ctrl+Backspace to delete whole words #68

DorianRudolph opened this issue Jul 4, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@DorianRudolph
Copy link

Ctrl+Backspace is supported in most text entry fields and also other typing trainers such as monkeytype.

@bloznelis
Copy link
Owner

bloznelis commented Jul 6, 2022

We support this behavior in terminal'esque fashion – with ctrl+w keystroke.

That being said, handling delete/backspace in terminals is a known problem, as there is no standard way. More info here and here.

Although, I think most modern terminal emulators map ctrl+backspace keystroke to ctrl+h, so we could add the "delete-previous-word" binding on that. But for example, xterm has this reversed – it sends ctrl+h on backspace press and backspace on ctrl+backspace keystroke.. So in order to allow xterm users to use backspace properly we perform simple delete on ctrl+h -> code.

One way to solve this would be to add a configuration menu and have this [ctrl+h deletes a word] behavior on by default, but allow users to disable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants