-
Notifications
You must be signed in to change notification settings - Fork 304
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
PSReadLine history search with wildcards #3681
Comments
The difficulty with this is I want to search for commands where I have done things with *.tmp or whatever, so how does one differentiate between searching for a wildcard, and searching with a wildcard. If you have predictive history on you can toggle between "Suggest closest" and "Show me options" with F2. So for that example if I know the command is in the history but isn't the most recent I'll start with get-adu and then press F2 and pick the right one. Not perfect, especially if muscle memory is hard coded to |
Yes, being able to use wildcards with predictive history would be great too! 😃 There is already somebody developing something similar but currently only limited to the filesystem.
|
I think this issue should be moved across to the PSReadline repo - @SteveL-MSFT / @daxian-dbw can you do this for me? |
Also this perhaps would be something that could be better achieved whenever this issue gets implemented |
@fullenw1 Just so I'm clear, are you asking for wildcard matching in history prediction, or the history searching, like when using Ctrl+r? |
@daxian-dbw , originally it was for the history searching, like when using However, one can assume that if wildcards can be used with the history prediction too, Currently, I still use both. |
Summary of the new feature / enhancement
Often I remember some elements of former command lines.
However when I used the forward/backward search capability,
I have usually to go trough a lot of suggestions before finding the match.
Being able to use wild cards would dramatically improve the research experience.
Exemple of current behavior:
I need to search for a line with:
Currently I have to go through:
Request:
I wish I could make my search with:
Proposed technical implementation details (optional)
A similar feature already exists, though currently limited to the file system.
https://github.com/Ink230/DirectoryPredictor
The text was updated successfully, but these errors were encountered: