mirror of
https://github.com/openai/codex.git
synced 2026-12-01 23:43:06 +00:00
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:
1 parent
75365bf718
commit
e8d5c6b446
2 files changed
+26
-2
No files matched your search
@@ -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,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user