malxau/yori

Reverse search through history?

Opened this issue · 1 comments

Hi!

There is a high chance that I just didn't manage to find the relevant documentation/discussion, but I can't figure out if yori supports reverse search (like ctrl+r in bash or in clink). Any help is appreciated. Thanks!

Ctrl+R has been in the backlog for a while:

yori/TODO

Line 10 in b2a884d

- Ctrl+R

What does exist is Ctrl+Up which is a prefix match through history - type a few chars, hit Ctrl+Up to see commands that started with the same characters.

There's also a history command, which displays history, and could be piped to findstr to find candidates. These won't be entered into the input line buffer though. There's also history -u which displays history in an interactive list, which might be a good thing to use for Ctrl+R when implementing it.