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:
ridiculousfish
2019-09-21 16:04:57 -07:00
parent 18b56637f7
commit e1f46d22de
2 changed files with 2 additions and 2 deletions

View File

@@ -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