zoxide/src
Claude c3d33654b4
Match directories containing diacritics
Latin characters with diacritics are now folded to their ASCII
equivalents on both the query and the path, so `z cafe` matches /Café
and `z cafe` matches /Café (decomposed, as macOS stores it).
Combining diacritical marks are stripped, and the ligatures æ/œ/ß are
expanded to ae/oe/ss.

Folding uses nucleo-matcher's `chars::normalize`. Its published version
(0.3.1) has a codegen bug that corrupts the Latin Extended Additional
and super/subscript tables, so folding is restricted to the Latin-1
Supplement, Latin Extended-A, and Latin Extended-B blocks, which it
handles correctly; other characters are left untouched (never
mis-folded). This covers the common European accents; the range can be
widened once the fix is released upstream.

Matching remains case-insensitive; smart-case is left to a follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tx3gvBRHQUhrM9f2pr6gw7
2026-07-16 12:23:24 +00:00
..
cmd import: auto-detect databases; add Atuin support (#1232) 2026-05-11 00:24:43 +05:30
db Match directories containing diacritics 2026-07-16 12:23:24 +00:00
import Remove nix dependency (#1237) 2026-05-12 14:22:25 +05:30
config.rs Update nushell init script (#966) 2025-02-10 02:47:41 +05:30
error.rs Update nushell init script (#966) 2025-02-10 02:47:41 +05:30
import.rs import should skip excluded directories 2026-06-30 11:11:59 +05:30
main.rs import: auto-detect databases; add Atuin support (#1232) 2026-05-11 00:24:43 +05:30
shell.rs chore: improve code comments clarity (#1158) 2026-01-30 16:55:23 +05:30
util.rs Match directories containing diacritics 2026-07-16 12:23:24 +00:00