feat(fish): restore ctrl-r history pager in vi insert mode
This commit is contained in:
@@ -86,9 +86,14 @@ in
|
|||||||
functions = {
|
functions = {
|
||||||
fish_greeting = "fastfetch";
|
fish_greeting = "fastfetch";
|
||||||
|
|
||||||
# vi insert mode omits the emacs ctrl-f binding, so accepting an
|
# vi insert mode omits the emacs ctrl-f and ctrl-r bindings, so
|
||||||
# autosuggestion needs it restored.
|
# restore both.
|
||||||
fish_user_key_bindings = "bind -M insert ctrl-f forward-char";
|
# 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 = {
|
history = {
|
||||||
description = "Show command history with timestamps";
|
description = "Show command history with timestamps";
|
||||||
|
|||||||
Reference in New Issue
Block a user