Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improper handling for home, end, delete, pageup and pagedown keys after upgrade to 2.4 #3731
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)
How to reproduce:
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.
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