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

Support smartcase #28

Closed
romgrk opened this issue Jul 10, 2022 · 1 comment
Closed

Support smartcase #28

romgrk opened this issue Jul 10, 2022 · 1 comment
Labels

Comments

@romgrk
Copy link

romgrk commented Jul 10, 2022

It would be nice if the plugin implemented smartcase: if there is an uppercase letter in the input, use case-sensitive search; otherwise, use case-insensitive search.

@ggandor
Copy link
Owner

ggandor commented Jul 10, 2022

It is impossible, unfortunately. It would work for the first input character, but not for the second. We should decide on the label ahead of time. If you enter an uppercase character that means you usually get a shorter "route" to the target (that is, a different label) than if you'd enter the lowercase one (this would be the point of smartcase, after all). See also: ggandor/lightspeed.nvim#64 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants