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

Case sensitive match #36

Open
gyk opened this issue Jan 29, 2019 · 1 comment
Open

Case sensitive match #36

gyk opened this issue Jan 29, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@gyk
Copy link

gyk commented Jan 29, 2019

Just a feature request: Similar to what some editor's autocomplete does, when the user types in all lowercase letters, behaves case insensitively by default. But if the input contains any uppercase letters, switches to case sensitive mode by giving each exactly matched character some extra points so those candidates rank higher on the list.

This is useful when the command starts with an environment variable, e.g., RUST_LOG=....

@cantino
Copy link
Owner

cantino commented Jan 30, 2019

That's a good suggestion, thanks @gyk. It might be kind of hard to implement with weighting in the current implementation, but it probably wouldn't be too hard to have it switch to case sensitive mode if any capital letters are present.

@cantino cantino added the enhancement New feature or request label Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants