Make fuzzy file search case insensitive (#15772)

Makes fuzzy file search use case-insensitive matching instead of
smart-case in `codex-file-search`. I find smart-case to be a poor user
experience -using the wrong case for a letter drops its match so
significantly, it often drops off the results list, effectively making a
search case-sensitive.
This commit is contained in:
Peter Meyers authored and GitHub committed 2026-04-01 14:04:33 -04:00
1 parent 75365bf718
commit e8d5c6b446
2 files changed
+26 -2

No files matched your search

+2 -2
View File
@@ -336,7 +336,7 @@ where
fn create_pattern(pattern: &str) -> Pattern {
Pattern::new(
pattern,
CaseMatching::Smart,
CaseMatching::Ignore,
Normalization::Smart,
AtomKind::Fuzzy,
)
@@ -508,7 +508,7 @@ fn matcher_worker(
nucleo.pattern.reparse(
0,
&query,
CaseMatching::Smart,
CaseMatching::Ignore,
Normalization::Smart,
append,
);