-
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
Improper handling for home, end, delete, pageup and pagedown keys after upgrade to 2.4 #3731
Comments
I don't understand. Enabling vi mode is done by executing
You can see that 0.347 milliseconds elapsed between reading the escape character and the next character in the sequence. See the discussion of the |
I have the same problem. Changing the fish_espace_delay_ms variable doesn't help. All it does is make the shell pause longer when switching "normally" (using escape). EDIT : remapping the delete key (bind -M insert \e\[3~ do_something) in insert mode did the trick for me. |
Okay, what's happening is that prior to 2.4.0 As of 2.5.0 you can get that behavior by using the It looks like the [delete] key not being available in vi mode is a regression. The [home] and [end] keys should work in vi default mode, but don't, and should not work in insert mode if we want maximum compatibility with vi/vim. It looks like prior to 2.3.0 they worked in both modes and when we refactored the bindings overlooked moving those to the |
We'll want to fix this ASAP and cherry-pick it into the 2.5.0 branch. |
@krader1961 Sorry for the delay. @L3nn0x thanks for the workaround |
Another workaround:
|
Just after upgrade to version 2.4, keys "insert", "home", "end", "delete", "pageup", "pagedown" switch Fish in vi mode (differs for different emulators).
Before upgrade just Escape was the switch key for the vi mode.
Is there some workaround?
OS: Debian GNU/Linux testing (stretch)
Fish version: 2.4.0
Terminal emulators: terminator 0.97-r1, sakura 3.3.4
How to reproduce:
useradd test -d /home/test -s `which fish` && mkdir /home/test && chown test.test /home/test
su test
fish_vi_key_bindings
In Terminator any of "insert", "home", "end", "delete", "pageup" or "pagedown" keys will turn on vi mode, however in Sakura all except "home" and "end" keys will.
Thanks.
The text was updated successfully, but these errors were encountered: