Skip to content

Allow for smartcase search #365

@resolritter

Description

@resolritter

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions