feat(fish): restore ctrl-r history pager in vi insert mode

This commit is contained in:
2026-07-22 22:37:01 -04:00
parent 37ddf4342a
commit 111b985d7d

View File

@@ -86,9 +86,14 @@ in
functions = {
fish_greeting = "fastfetch";
# vi insert mode omits the emacs ctrl-f binding, so accepting an
# autosuggestion needs it restored.
fish_user_key_bindings = "bind -M insert ctrl-f forward-char";
# vi insert mode omits the emacs ctrl-f and ctrl-r bindings, so
# restore both.
# ctrl-f accepts an autosuggestion and ctrl-r opens the history pager.
# Only insert mode is bound: vi normal mode keeps ctrl-r as redo.
fish_user_key_bindings = ''
bind -M insert ctrl-f forward-char
bind -M insert ctrl-r history-pager
'';
history = {
description = "Show command history with timestamps";