Add Ctrl+Backspace keybind to delete word#979
Add Ctrl+Backspace keybind to delete word#979pol-rivero wants to merge 1 commit intognome-terminator:masterfrom pol-rivero:delete-word
Conversation
|
I'm wondering if this is not handled better by readline or the shell, not the terminal emulator. Do you know if other terminal emulators do this? |
|
I've tested alacritty, kitty, gnome-terminal and konsole and ctrl+backspace doesn't seem to work on any of them. I will investigate if using |
|
I confirmed that this is handled by the readline library. I really don't want to add functionality that is duplicated by another layer of the shell. You should probably edit the readline configuration to get the behaviour you want in your shell. I think all you're doing here is mapping ctrl+backspace to Meta-Delete and having that handled by readline. Do you mind if I close this PR? |
|
Ah I see, yes I'll close the PR. |
|
Thanks for understanding. I hate turning away PRs, especially ones from people who have contributed successfully in the past, but I really want to keep the code as simple as I can. |
|
I completely agree. |
Most users expect Ctrl+Backspace to delete the entire word placed to the left of the cursor. This PR adds a customizable keybind (defaults to Ctrl+Backspace) that does that.