-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unable to bind control-space key command #3189
Comments
Clearly a bug. You can do the equivalent via
Then
P.S., Note that tmux lets you bind [ctrl-Space]. For example, I have the following in my ~/.tmux.conf:
|
Hm I think I found a way to patch this. Currently fish relies on the empty binding The quick way to fix this is to modify
where we have defined in
Once the default insert action has been decoupled from the binding list, we have to modify
Now you should be able to @krader1961 Could you test the below patch file and if it works, merge into the repo? |
Are there any updates on this? I'm an ex-PowerShell user, and I find myself constantly using ctrl+space to match the current behavior of Fish's tab. I was hoping that I'd be able to bind ctrl+space to |
The basic problem here is that fish builtins can't distinguish between an empty string and a string containing the null character. I don't think we should be baking in fish's confusion here either. I think the simplest approach is to give the nul-string a key name (as in |
Fixed in 533ee65 . This can now be done via |
Awesome! |
I've tried binding both "\c\ " and "\c\x20", however none of these seem to work.
Fish_key_reader (and bash escape sequence) reports that control-space is
Yet trying to bind
\c@
results inSubstituting
@
for its hex equivalent doesn't seem to work either.Reproduction Steps:
Fish version: fish, version 2.3.0
Operating system: OSX 10.11, Homebrew install
Terminal or terminal emulator: OSX terminal app
The text was updated successfully, but these errors were encountered: