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

Add parameter to New-UDAutocomplete -Multiple selection to only allow each option once #4178

Open
pyramidofgreatness opened this issue Dec 24, 2024 · 0 comments
Labels
enhancement New feature or request PowerShell Universal Issue relates to PowerShell Universal.

Comments

@pyramidofgreatness
Copy link

pyramidofgreatness commented Dec 24, 2024

Summary of the new feature / enhancement

Currently when using New-UDAutocomplete -Multiple, the user can add the same item more than once.

It would be useful to have a parameter to disallow this behavior. For my use case, the majority of the time this would be the preferred functionality.

image

Proposed technical implementation details (optional)

Remove the selected item from the options list, or make it greyed out

@pyramidofgreatness pyramidofgreatness added enhancement New feature or request PowerShell Universal Issue relates to PowerShell Universal. labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PowerShell Universal Issue relates to PowerShell Universal.
Projects
None yet
Development

No branches or pull requests

1 participant