vi-mode: Bind "/" to history-pager

This is unused currently, so we can just use it here. Ctrl-s as the
inverse stays because that's shared.

Fixes #2271
This commit is contained in:
Fabian Boehm 2022-10-11 17:46:44 +02:00
parent 70d2e97c9a
commit 1e7a4b076d
2 changed files with 3 additions and 0 deletions

View File

@ -442,6 +442,8 @@ Command mode is also known as normal mode.
- :kbd:`[` and :kbd:`]` search the command history for the previous/next token containing the token under the cursor before the search was started. See the :ref:`history <history-search>` section for more information on history searching.
- :kbd:`/` opens the history in a pager. This will show history entries matching the search, a few at a time. Pressing it again will search older entries, pressing :kbd:`Control`\ +\ :kbd:`S` (that otherwise toggles pager search) will go to newer entries. The search bar will always be selected.
- :kbd:`Backspace` moves the cursor left.
.. _vi-mode-insert:

View File

@ -88,6 +88,7 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
bind -s --preset [ history-token-search-backward
bind -s --preset ] history-token-search-forward
bind -s --preset / history-pager
bind -s --preset k up-or-search
bind -s --preset j down-or-search