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

auto select if --query=xxx has a single match (feature request) #544

Open
pl643 opened this issue Sep 28, 2023 · 0 comments
Open

auto select if --query=xxx has a single match (feature request) #544

pl643 opened this issue Sep 28, 2023 · 0 comments

Comments

@pl643
Copy link

pl643 commented Sep 28, 2023

I have a list of a few hundred hostnames, all of them has a number included in the name, ie dell24.domain.com, dell324.domain.com, hp325.domain.com. Most hostnames have unique number with the hostname, but some contains a partial of the other number ie 24 and 324.

sk is already saving me time from not typing the entire hostname, but I'm trying to be extra lazy and not even interact with the sk interface if --query=xxx only have a single hit.

so --query=24 will have 2 hits with the above hostnames, and will work as currently.
but --query=324 will only have 1 hit, so should automatically return dell324.domain.com.

I would suggest another flag like --auto-select-single-query-match to be used along with --query to enable this feature.

Thanks,

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

1 participant