shift-delete to delete current history search match

Popular operating systems support shift-delete to delete the selected item
in an autocompletion widgets.  We already support this in the history pager.
Let's do the same for up-arrow history search.

Related discussion: https://github.com/fish-shell/fish-shell/pull/9515
This commit is contained in:
Johannes Altmanninger
2024-04-13 20:08:12 +02:00
parent 00432df420
commit 29b309dd5f
6 changed files with 41 additions and 6 deletions

View File

@@ -229,7 +229,7 @@ The following special input functions are available:
invoke the searchable pager on history (incremental search); or if the history pager is already active, search further backwards in time.
``history-pager-delete``
permanently delete the history item selected in the history pager
permanently delete the current history item, either from the history pager or from an active up-arrow history search
``history-search-backward``
search the history for the previous match