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

Clicking backspace delets words instead of a letter in zsh #483

Closed
rahmanshaber opened this issue Jul 3, 2022 · 4 comments
Closed

Clicking backspace delets words instead of a letter in zsh #483

rahmanshaber opened this issue Jul 3, 2022 · 4 comments

Comments

@rahmanshaber
Copy link

rahmanshaber commented Jul 3, 2022

When i click backspace in qterminal/coreterminal it removes the whole word, I tried with bash and it doesn't happen there. But i tried zsh in gnome terminal and only delete 1 letter/alphabet with one press in the backspace key.

Expected Behavior

It should only delete 1 letter/alphabet with one press in the backspace key.

Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
  1. type " This is not a test"
  2. press backspace key once
  3. it deletes the whole "test" word
  4. now the whole text is "This is not a " instead "This is not a tes"
Context
System Information
  • Distribution & Version: manajaro
  • Kernel:
  • Qt Version: 5.15.5
  • lxqt-build-tools Version:
  • Package version: 1.1.0.1
@stefonarch
Copy link
Member

I'm not used to zsh but every time I use a manjaro live edition in Vbox I get disturbed by exactly this behaviour.
So I assume that there are zsh keybindings to fix and it has nothing to do with qterminal, see https://unix.stackexchange.com/questions/604348/backspace-deletes-a-whole-word-zsh

Look for bindkey '^H' backward-kill-word in your ~/.zsh

@rahmanshaber
Copy link
Author

Look for bindkey '^H' backward-kill-word in your ~/.zsh

this file doesn't exist

image

@stefonarch
Copy link
Member

stefonarch commented Jul 3, 2022

That means you're probably using the default file in /usr/share/zsh/manjaro-zsh-config - copy it to ~/.zshrc and edit it to your needs.

@rahmanshaber
Copy link
Author

it's set ctrl+backspace but i am not pressing any combination

image

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

2 participants