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

Request: config option to set a different default case matching for regex searches #585

Open
AndydeCleyre opened this issue Aug 9, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@AndydeCleyre
Copy link

Every time I use the regex search, I want to do it case-insensitively. So I type /term/i. This works, of course, but it means I don't benefit from accurate live-filtering in the view as I build the regex, as it's not "proper" until I get to the end and add the /i.

I would like to be able to set the default case-matching mode in my config. Setting it as totally case-insensitive would generally be "good enough," but even better would be something like ripgrep's -S/--smart-case matching:

Searches case insensitively if the pattern is all lowercase. Search case sensitively otherwise.

or the similar behavior seen with Zsh's extended glob flag l:

Lower case characters in the pattern match upper or lower case characters; upper case characters in the pattern still only match upper case characters.

@AndydeCleyre AndydeCleyre added the enhancement New feature or request label Aug 9, 2022
@AndydeCleyre
Copy link
Author

Related: #546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
1 participant