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
Ctrl-Left/Right Arrow doesn't work with vi key bindings #6755
Comments
Please execute bind \e\[1\;5C 'do something' Take that, chop off the "do something" bit, so that you just execute
On my system that just says it's bound to "forward-word" in the default bindings and nothing in the vi ones, which seems correct. |
That's the same as I get. So I guess it tries executing the sequence literally which leads to the "weird behavior" (exiting to normal mode and sometimes inserting additional text from previous command). |
Well, that's to be expected. Ctrl-arrow sends
which is escape, then I don't think there is a good way around this, because we can't conclusively enumerate all possible escape sequences, and I don't think there is a set enough pattern for these. |
Maybe ctrl+arrows should be bound for the vi insert mode by default? In the actual vim insert mode ctrl+arrows also jumps words. |
Huh, so it does. Yeah, lemme fix that. |
fish version 3.0.2
Fedora 31 and Arch Linux, Tilix and Alacritty
Ctrl-Left/Right Arrow do something weird instead of working when the vi key bindings are active. Alt+Left/Right Arrow works fine.
sh -c 'env HOME=$(mktemp -d) fish'
fish_vi_key_bindings
The text was updated successfully, but these errors were encountered: