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

Add custom keybinding to set ctrl+backspace to delete a full word instead of alt-backspace or ctrl+w #838

Closed
dimisjim opened this issue Oct 13, 2023 · 1 comment

Comments

@dimisjim
Copy link

Is your feature request related to a problem? Please describe.
I want to delete a whole word with ctrl+backspace instead of alt+backspace / ctrl+w

Describe the solution you'd like
some sort of custom keybinding.

Additional context
These ones here seem revelant:

  1. https://askubuntu.com/a/1017301/827401
  2. https://askubuntu.com/questions/1017287/how-to-delete-words-in-the-terminal-with-ctrl-backspace-like-in-the-rest-of-ubun#comment1650569_1017301
  3. https://unix.stackexchange.com/questions/94331/how-can-i-delete-a-word-backward-at-the-command-line-bash-and-zsh
@dimisjim
Copy link
Author

dimisjim commented Oct 13, 2023

Ok it was an issue of zsh that I was using on top of it. This fixes it:

bindkey '^H' backward-kill-word

(to persist this add it to ~/.zshrc)

source: https://stackoverflow.com/a/21252464/3263374

Weird thing was that for visual studio code it was working with the zsh profile 😮 🤯

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

No branches or pull requests

1 participant