From f533189a28c04ad847c59e9049329171e6c2b3d1 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 4 May 2018 12:14:49 +0200 Subject: [PATCH] [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. --- share/functions/fish_default_key_bindings.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish index 7c587cfb5..34e6c4df3 100644 --- a/share/functions/fish_default_key_bindings.fish +++ b/share/functions/fish_default_key_bindings.fish @@ -72,7 +72,9 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis # This clashes with __fish_list_current_token # bind $argv \el downcase-word bind $argv \ec capitalize-word + # One of these is alt+backspace. bind $argv \e\x7f backward-kill-word + bind $argv \e\b backward-kill-word bind $argv \eb backward-word bind $argv \ef forward-word bind $argv \e\[1\;5C forward-word