-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Windows: Pressing Ctrl + W (or ^W) or Ctrl + Backspace does nothing. #2930
Comments
Which shell? If |
Powershell, but I expected it - like in the linux word - to just remove the last word? |
This is something that Bash does for you, it's not something the terminal emulator provides. We just tell it what key has been sent. So if it doesn't work in cmd/powershell, it won't work in Alacritty either. |
The builtin Windows powershell is... old! 😄 |
Oh yeah, that's definitely a factor too. And cmd.exe is even older and supports even less unix-y features. But generally if the shell supports it, Alacritty shouldn't be stopping things from working properly. And if you can see ^W, that's a good sign that things should work. |
I'm having the same issue, but Ctrl + Backspace works in cmd but not in alacritty |
Ctrl-Backspace does not work for me for either the PowerShell v5.1 (Win10 default) or v7.1.4 |
Issue is still present. Ctrl+W and Ctrl+Backspace are printing "^W" to stdin via Alacritty, but from a Powershell window the same commands delete a word backwards - the intended result. |
In alacritty, at least in Linux, the keybinding for delete previous word is Alt+Backspace, not Ctrl+Backspace. It'd be nice if there was a way to switch that though. If anyone knows how to, please let us know. |
On my system, powershell would delete words when I pressed I was able to teach powershell about |
To bind Control-BackSpace to End-of-Transmission-BlockI got this solution from microsoft/terminal#755:
This works in both PowerShell, and when you launch Neovim too. You can use Other useful PowerShell-related Key-bindings
|
System
Summary
Pressing Ctrl + W (or
^W
) orCtrl + Backspace
does nothing.Behavior
The last word is not removed from shell. Instead,
^W
is written to the output.Expectation
Remove the last word instead.
The text was updated successfully, but these errors were encountered: