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

@@ -90,6 +90,8 @@ pub enum ReadlineCmd {
BackwardKillToken,
HistoryTokenSearchBackward,
HistoryTokenSearchForward,
HistoryLastTokenSearchBackward,
HistoryLastTokenSearchForward,
SelfInsert,
SelfInsertNotFirst,
TransposeChars,