mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
## Why The fuzzy matcher reports grapheme positions, but the terminal file picker uses Unicode scalar offsets. When a path contains a joined emoji or a combining mark, the picker can highlight the wrong characters. ## What changed Let callers choose the unit for match indices. The terminal and CLI use scalar offsets that cover every scalar in each matched grapheme. The terminal's file picker and mention renderer now consume the same offsets. The app server returns grapheme offsets for both one-shot and streaming searches. ## Testing Add regression coverage for basename and full-path matches with joined emoji and combining marks, grapheme offsets in both app-server search modes, and terminal highlights in file and mention results. GitOrigin-RevId: 2da357a404396550333c785640d2c4121cb2ed3f
codex_file_search
Fast fuzzy file search tool for Codex.
Uses https://crates.io/crates/ignore under the hood (which is what ripgrep uses) to traverse a directory (while honoring .gitignore, etc.) to produce the list of files to search and then uses https://crates.io/crates/nucleo-matcher to fuzzy-match the user supplied PATTERN against the corpus.