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

Support Ctrl+Backspace to delete word #14

Open
moigagoo opened this issue Apr 17, 2018 · 11 comments
Open

Support Ctrl+Backspace to delete word #14

moigagoo opened this issue Apr 17, 2018 · 11 comments
Labels
upstream This due to an external component we are using

Comments

@moigagoo
Copy link

It's probably an XTerm.js issue, so feel free to close this one if it's the case.

@felixse
Copy link
Owner

felixse commented Apr 17, 2018

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?

@moigagoo
Copy link
Author

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.

@felixse felixse added the upstream This due to an external component we are using label May 31, 2018
@Riebart
Copy link
Contributor

Riebart commented Jun 10, 2018

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.

@subhead
Copy link

subhead commented Nov 23, 2018

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.

@Riebart
Copy link
Contributor

Riebart commented Nov 23, 2018

Try Alt+Backspace, see if that works.

@subhead
Copy link

subhead commented Nov 25, 2018

yes alt + backspace works. thanks.

@alexknips
Copy link

Can you explain why this is mapped to alt + backspace instead of the usual ctrl + backspace and how/where this is configured? Thanks

@felixse
Copy link
Owner

felixse commented Mar 27, 2019

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

@alexknips
Copy link

Thanks for the quick reply. Obviously it would be nice if they could make these keyboard shortcuts configurable

@onguarde
Copy link

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,
image

Found a workaround.

  1. Use Ctrl + w instead of Ctrl+Backspace.

  2. 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

@DennisKassel
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream This due to an external component we are using
Projects
None yet
Development

No branches or pull requests

7 participants