Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse search through history? #87

Open
flriancu opened this issue Jan 31, 2021 · 1 comment
Open

Reverse search through history? #87

flriancu opened this issue Jan 31, 2021 · 1 comment

Comments

@flriancu
Copy link

flriancu commented Jan 31, 2021

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!

@malxau
Copy link
Owner

malxau commented Feb 1, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants