FluentTerminal
FluentTerminal copied to clipboard
Support Ctrl+Backspace to delete word
It's probably an XTerm.js issue, so feel free to close this one if it's the case.
That's something you would need to configure in your shell, or maybe add some kind of 'per shell' keyboard aliases to Fluent Terminal. What shell are you using?
Crtl + Backspace is a standard Windows shortcut, it works across all apps including PowerShell and cmd. However, xtermjs seems to not support it. Hyper doesn't support it either, for example.
Since you asked, I'm using pwsh.
Bash in the WSL Ubuntu 18.04 obeys Alt+Backspace, so this is likely less of a "Does the terminal emulator pass my keystrokes correctly" and more of a "What does your shell do with the keystrokes" question.
When i try to ctrl + backspace in the Bash on WSL Ubuntu 18.04 it will onlydelete the last character like when i use backspace without ctrl. I tried bash, zsh, fish ans dash and all have the same behaviour.
Try Alt+Backspace, see if that works.
yes alt + backspace works. thanks.
Can you explain why this is mapped to alt + backspace
instead of the usual ctrl + backspace
and how/where this is configured? Thanks
in xterm.js: https://github.com/xtermjs/xterm.js/blob/509ce5fa3a698ee7847419117e9dd6b979b105bf/src/core/input/Keyboard.ts#L90
We could either start a discussion there or create a workaround in attachCustomKeyEventHandler on our site
Thanks for the quick reply. Obviously it would be nice if they could make these keyboard shortcuts configurable
This is a major deal breaker for me, since I use this shortcut so often.
Alt+ backspace does not work for me. It gives me this weird character,
Found a workaround.
-
Use Ctrl + w instead of Ctrl+Backspace.
-
Use autohotkey to remap Ctrl + Backspace to Ctrl + w keyboard shortcuts - Use Ctrl+Backspace to delete word in Windows command line? - Super User https://superuser.com/questions/224481/use-ctrlbackspace-to-delete-word-in-windows-command-line
Alt + backspace doesn't work for me neither. I don't understand why it is so difficult to implement this. In Windows all consoles (cmd, Powershell) support this.