mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
[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:
parent
b5d6c1102e
commit
f533189a28
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue