Token search commands that only match the last token in each line

This add two commands history-last-token-search-backward and
history-last-token-search-forward which behaves like bash's yank-last-arg. So
similar to history-token-search-* but only considers the last argument for
each command.

Closes #10756
Closes #11258
This commit is contained in:
carsonzhu
2025-03-11 13:19:46 +08:00
committed by Johannes Altmanninger
parent 48306409ef
commit 4ce552bf94
5 changed files with 31 additions and 5 deletions

View File

@@ -265,6 +265,12 @@ The following special input functions are available:
``history-token-search-forward``
search the history for the next matching argument
``history-last-token-search-backward``
search the history for the previous matching last argument
``history-last-token-search-forward``
search the history for the next matching last argument
``forward-jump`` and ``backward-jump``
read another character and jump to its next occurrence after/before the cursor