mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
Simplify space binding and fix search
With the new support for self-insert inserting a bound sequence, the default binding for space as expanding abbreviations can be simplified to just `self-insert expand-abbr`. This also fixes the bug where space would cancel pager search.
This commit is contained in:
@@ -32,7 +32,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
|
||||
or exit # protect against invalid $argv
|
||||
|
||||
# Space expands abbrs _and_ inserts itself.
|
||||
bind --preset $argv " " 'commandline -i " "; commandline -f expand-abbr'
|
||||
bind --preset $argv " " self-insert expand-abbr
|
||||
|
||||
bind --preset $argv \n execute
|
||||
bind --preset $argv \r execute
|
||||
|
||||
Reference in New Issue
Block a user