mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-25 21:39:49 +08:00
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:
parent
70d2e97c9a
commit
1e7a4b076d
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user