Advance pager history search with Control-R/Control-S

Note that every change to the search field still starts a new search, from
the end of history. We could change this in future but it's unclear to me
what the expected behavior is. I don't find the traditional readline behavior
very intuitive.
This commit is contained in:
Johannes Altmanninger
2022-07-28 09:44:48 +02:00
parent 24e04daa22
commit 453aac14af
4 changed files with 61 additions and 17 deletions

View File

@@ -197,7 +197,7 @@ The following special input functions are available:
from the current autosuggestion.
``history-pager``
invoke the searchable pager on history (incremental search).
invoke the searchable pager on history (incremental search); or if the history pager is already active, search further backwards in time.
``history-search-backward``
search the history for the previous match
@@ -252,7 +252,7 @@ The following special input functions are available:
only execute the next function if the previous succeeded (note: only some functions report success)
``pager-toggle-search``
toggles the search field if the completions pager is visible.
toggles the search field if the completions pager is visible; or if used after ``history-pager``, search forwards in time.
``prevd-or-backward-word``
if the commandline is empty, then move backward in the directory history, otherwise move one word to the left