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

Allow for smartcase search #365

Closed
resolritter opened this issue Jun 1, 2023 · 0 comments · Fixed by #366
Closed

Allow for smartcase search #365

resolritter opened this issue Jun 1, 2023 · 0 comments · Fixed by #366

Comments

@resolritter
Copy link
Contributor

Vim has the 'smartcase' option which works as follows:

Override the 'ignorecase' option if the search pattern contains upper case characters. Only used when the search pattern is typed and 'ignorecase' option is on.

I use that option in Vim, so I would like to have it in ov as well. It could be implemented as follows:

if config.SmartCaseSearch {
  caseSensitive = searchInput.HasUpperCase()
} else {
  caseSensitive = config.CaseSensitive
}
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

Successfully merging a pull request may close this issue.

1 participant