[default bindings] Bind \e\b as well

As it turns out, for some terminals backspace is \b but only when
preceded by \e.

All this makes about as much sense as the english language.

Fixes #4955.
This commit is contained in:
Fabian Homborg 2018-05-04 12:14:49 +02:00
parent b5d6c1102e
commit f533189a28

View file

@ -72,7 +72,9 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
# This clashes with __fish_list_current_token # This clashes with __fish_list_current_token
# bind $argv \el downcase-word # bind $argv \el downcase-word
bind $argv \ec capitalize-word bind $argv \ec capitalize-word
# One of these is alt+backspace.
bind $argv \e\x7f backward-kill-word bind $argv \e\x7f backward-kill-word
bind $argv \e\b backward-kill-word
bind $argv \eb backward-word bind $argv \eb backward-word
bind $argv \ef forward-word bind $argv \ef forward-word
bind $argv \e\[1\;5C forward-word bind $argv \e\[1\;5C forward-word