-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Backspace does not work in keybindings #1665
Comments
Just noticed, that I cannot set |
Running
allows to run
I use |
The key names were made case-sensitive 2.5 years ago in commit 9edcb78. That's why
Note that the What you're trying to do works for me (I pressed Alt-Backspace after setting the binding):
The likely reason it doesn't work for you is you haven't configured your terminal to cause the Alt modifier to preface the output with an escape character. What do you see if you press
Note I'm using |
See also isssue #1058. I really should find a few hours to implement that feature. |
Modified function keys are not well supported across terminals. It's likely that the terminal is not sending anything at all, or it could be sending something that Elvish's key code parser doesn't recognize. I've just reinstated a feature that should help debug this issue (4187d41). @tprodanov if you run Elvish from the latest commit (see the project README for how to do that), and press Alt-Backspace, does it complain about "unbound key"? If it doesn't: run |
Closing this:
|
Setting
set edit:insert:binding["Alt+Backspace"] = { echo A }
does not give any errors, but also will not do anything if I pressAlt+Backspace
.xev
produces the following output:Setting
set edit:insert:binding["Alt+BackSpace"] = { echo A }
produces an errorException: bad key: BackSpace
.The text was updated successfully, but these errors were encountered: