mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Remove obsolete bindings
iTerm2 supports CSI u so the custom bindings are no longer needed. Sequences like \e\eOC are Escape followed by an SS3 arrow key which we can already decode separately.
This commit is contained in:
parent
40591ba629
commit
c0bcd817ba
1 changed files with 0 additions and 12 deletions
|
@ -56,21 +56,9 @@ function __fish_shared_key_bindings -d "Bindings shared between emacs and vi mod
|
|||
|
||||
bind --preset $argv alt-right nextd-or-forward-word
|
||||
bind --preset $argv alt-left prevd-or-backward-word
|
||||
$legacy_bind --preset $argv \e\eOC nextd-or-forward-word
|
||||
$legacy_bind --preset $argv \e\eOD prevd-or-backward-word
|
||||
$legacy_bind --preset $argv \e\e\[C nextd-or-forward-word
|
||||
$legacy_bind --preset $argv \e\e\[D prevd-or-backward-word
|
||||
$legacy_bind --preset $argv \e\[1\;9C nextd-or-forward-word #iTerm2
|
||||
$legacy_bind --preset $argv \e\[1\;9D prevd-or-backward-word #iTerm2
|
||||
|
||||
bind --preset $argv alt-up history-token-search-backward
|
||||
bind --preset $argv alt-down history-token-search-forward
|
||||
$legacy_bind --preset $argv \e\eOA history-token-search-backward
|
||||
$legacy_bind --preset $argv \e\eOB history-token-search-forward
|
||||
$legacy_bind --preset $argv \e\e\[A history-token-search-backward
|
||||
$legacy_bind --preset $argv \e\e\[B history-token-search-forward
|
||||
$legacy_bind --preset $argv \e\[1\;9A history-token-search-backward # iTerm2
|
||||
$legacy_bind --preset $argv \e\[1\;9B history-token-search-forward # iTerm2
|
||||
# Bash compatibility
|
||||
# https://github.com/fish-shell/fish-shell/issues/89
|
||||
bind --preset $argv alt-. history-token-search-backward
|
||||
|
|
Loading…
Reference in a new issue