-
Notifications
You must be signed in to change notification settings - Fork 52
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
Switched Backspace vs Ctrl+Backspace default behaviour #28
Comments
That seems weird. AFAIK your bindkey should be doing the opposite.
|
I have the same problem with an out-of-the-box Norwegian keyboard layout. My terminals use |
@da2x Thanks for mentioning. Like I tried to outline in my previous comment above this depends on the tty emulation in use. The key-binding is set here. To make this generic we are searching for some reliable condition that works ideally on all systems. Something like if [[ … ]]; then
bindkey '^H' backward-delete-char # Backspace -> delete last char
bindkey '^?' backward-kill-word # Ctrl+Backspace -> delete last word
else
bindkey '^H' backward-kill-word # delete previous word with ctrl+backspace
fi QTerminal (and other terminal emulators) can switch the TTY emulation. May be useful for trying things out manually. However I don't know directly how the aliases |
Meanwhile in another galaxy… -> PR to QTerminal Case closed! 😸 |
Probably it's just me, but I am used to deleting a single character using the
Backspace
key and a Word usingCtrl+Backspace
.In version
0.20-3
the default behaviour is exactly switched. I worked around that:The text was updated successfully, but these errors were encountered: