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

MenuComplete with filtering #2598

Closed
SteveL-MSFT opened this issue Jun 18, 2021 · 3 comments
Closed

MenuComplete with filtering #2598

SteveL-MSFT opened this issue Jun 18, 2021 · 3 comments
Labels
Issue-Enhancement It's a feature request.

Comments

@SteveL-MSFT
Copy link
Member

Description of the new feature/enhancement

There are many cases where tab completion can result in a large list (not just files which is a common case, but think of resources in Azure). It would be useful to have either a new mode for MenuComplete or an alternate where you have a filter line that will dynamically filter results showing matches to the typed filter. In the file case, I should be able to type *.jpg which will filter out to just files with that extension. If I type jpg then any result that contains that string would be shown.

One question is whether the cmdlet participates as an optimization rather than filtering on the client.

@SteveL-MSFT SteveL-MSFT added the Issue-Enhancement It's a feature request. label Jun 18, 2021
@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jun 18, 2021
@SteveL-MSFT
Copy link
Member Author

I think for this feature to work, #2306 needs to be implemented. Then, if the user types ctrl+f, for example, they have a new input line to type a filter that gets applied dynamically and they can tab into the menu complete

@iSazonov
Copy link

iSazonov commented Jun 21, 2021

Does PowerShell Pager already support ctrl+f and return a selection or we need request these features?

@daxian-dbw daxian-dbw removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Sep 20, 2021
@daxian-dbw
Copy link
Member

Close as a duplicate of #1235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement It's a feature request.
Projects
None yet
Development

No branches or pull requests

3 participants