mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Set fish_key_bindings globally in binding functions
This should fix the tests.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fish" -a mode
|
function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fish" -a mode
|
||||||
if not set -q mode[1]
|
if not set -q mode[1]
|
||||||
if test "$fish_key_bindings" != "fish_default_key_bindings"
|
if test "$fish_key_bindings" != "fish_default_key_bindings"
|
||||||
set fish_key_bindings fish_default_key_bindings # This triggers the handler, which calls us again and ensures the user_key_bindings are executed
|
set -g fish_key_bindings fish_default_key_bindings # This triggers the handler, which calls us again and ensures the user_key_bindings are executed
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
# Clear earlier bindings, if any
|
# Clear earlier bindings, if any
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
function fish_vi_key_bindings --description 'vi-like key bindings for fish'
|
function fish_vi_key_bindings --description 'vi-like key bindings for fish'
|
||||||
if test "$fish_key_bindings" != "fish_vi_key_bindings"
|
if test "$fish_key_bindings" != "fish_vi_key_bindings"
|
||||||
set fish_key_bindings fish_vi_key_bindings # This triggers the handler, which calls us again and ensures the user_key_bindings are executed
|
set -g fish_key_bindings fish_vi_key_bindings # This triggers the handler, which calls us again and ensures the user_key_bindings are executed
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
# The default escape timeout is 300ms. But for users of Vi bindings that can
|
# The default escape timeout is 300ms. But for users of Vi bindings that can
|
||||||
|
|||||||
Reference in New Issue
Block a user