mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
## Why Fuzzy matching lowercased candidates and queries differently, so Greek sigma variants could fail to match. The slash-command popup could also open for fuzzy matches that its exact and prefix filters never displayed, taking over the arrow keys while the user was editing a draft. ## What changed - Apply the same Unicode case folding to both sides of a fuzzy match and use it to rank exact and prefix matches in the skill popup. - Use the same command list and case-insensitive exact and prefix matching rules to open and filter the slash-command popup. ## Testing Cover Greek sigma and long s in the fuzzy matcher, snapshot skill results with a folded exact match above a prefix match, and check that the arrow keys move the cursor through a draft starting with `/ſtatus`. GitOrigin-RevId: 04cf3a65b02204221569c4f7b2d4397f48554e2d
15 lines
213 B
TOML
15 lines
213 B
TOML
[package]
|
|
name = "codex-utils-fuzzy-match"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
nucleo = { workspace = true }
|