exo icon indicating copy to clipboard operation
exo copied to clipboard

[FEATURE] "smart case" string filtering

Open brandonbloom opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe.

When filtering logs, I usually want to search case insensitive, but sometimes I want to search case-sensitive.

Describe the solution you'd like

See "smartcase" in vim: https://vim.fandom.com/wiki/Searching

I always have this on by default. Basically, if you search for an all-lowercase string, then the search is case insensitive. If there are any uppercase characters, then the search is case sensitive.

Describe alternatives you've considered

Providing some UI or search/filter directives for toggling case sensitivity on and off. I think that should probably happen first: some more general work to improve filtering/querying expression.

brandonbloom avatar Aug 06 '21 17:08 brandonbloom

I'm not sure if the smart casing is a great option, since it's not especially intuitive. I'd rather expose an "advanced" regex filter interface if you need case sensitivity or a more advanced pattern. Eventually, I would love to implement a fuzzy search that functions more like VSCode's command bar. Thoughts?

kendru avatar Aug 09 '21 18:08 kendru

I agree that some kind of UI for "advanced" filtering is probably the right first step before specific functionality such as ignore or smart case.

brandonbloom avatar Aug 09 '21 21:08 brandonbloom