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
Unusual behaviour with fn+backspace in insert mode in fish vi mode #3739
Comments
Please run |
The "fn" key isn't actually a defined and standardized thing. On all computers I've owned, it's been the special "make these other keys send the special sequence" key. If you held it down, other things would send stuff like volume up/down or brightness or switching monitors (fun fact: my current one sends win+p for that one). As I've never owned Apple hardware, I have no idea what it's supposed to send here. Please execute |
Thanks both for your replies! The result of
|
Well, that's just the sequence for the delete key. The issue here is probably that delay - 0.466ms between sending Try Also, since it sends the sequence for delete, there's no way to bind fn+backspace to something different than delete. |
after |
Sorry, I'm having trouble parsing that sentence. Does the changed timeout change anything about how fn+backspace behaves? |
The changed timeout does not change anything about the behaviour of fn+backspace. Note that this is only a problem in 'insert' mode. While in 'normal' mode fn+backspace works as the delete key as expected. |
Can you try increasing it some more? 1000?
Ah, okay. So escape isn't bound in normal mode, so there's no ambiguity there and hence no possibility of it timeing out and executing the escape binding. In insert mode delete is only bound since d37e7bc. So you'll need that commit and a higher fish_escape_delay_ms. I can't see what else we can do here. |
ok great, I'll give that a try and report back. Thanks for your help! |
My apple keyboards don't have a [backspace] key. However, pressing [fn][delete] sends the sequence you listed. Commit d37e7bc to fix #3731 that I merged yesterday before you opened this issue adds a binding for vi insert mode for that sequence. It will be in fish 2.5.0 or you can install from git head or you can just add Also, do not set |
sh -c 'env HOME=$(mktemp -d) fish'
)?fish version installed (
fish --version
): 2.4.0OS/terminal used: iTerm2 (2.7.1) - OS X
With the vi mode enabled in fish and whilst in insert mode the fn + backspace very weirdly, I can't work out what exactly its doing. It appears to do one of the following:
2 Paste in a previous command, move to end of word.
3 Paste in a part of a previous command, move to end of word.
Reproduction steps
sh -c 'env HOME=$(mktemp -d) fish'
for a clean version.fish_vi_key_bindings
I can possibly post a video if these steps don't reproduce the problem.
The text was updated successfully, but these errors were encountered: