Skip to content

Commit 12bc31e

Browse files
KristofferCKristofferCclaude
committed
Enhance fuzzy matching algorithm with multi-factor scoring (#4287)
Rewrite the fuzzy sorting algorithm to provide more intuitive package name suggestions: Prefix matching prioritized for exact starts (e.g., "Plo" → "Plots") Subsequence matching with position weighting for scattered matches Weighted edit distance with common typo handling (a↔e, c↔k, etc.) Case preservation scoring and length penalties Optional popularity weighting for future use Co-authored-by: KristofferC <[email protected]> Co-authored-by: Claude <[email protected]> (cherry picked from commit 3869055)
1 parent 900125e commit 12bc31e

File tree

4 files changed

+266
-115
lines changed

4 files changed

+266
-115
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Pkg v1.12 Release Notes
55
The functions `Pkg.status`, `Pkg.why`, `Pkg.instantiate`, `Pkg.precompile` (and their REPL variants) have been updated
66
to take a `workspace` option. Read more about this feature in the manual about the TOML-files.
77
- `status` now shows when different versions/sources of dependencies are loaded than that which is expected by the manifest ([#4109])
8+
- Enhanced fuzzy matching algorithm for package name suggestions.
89

910
Pkg v1.11 Release Notes
1011
=======================

src/Types.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,6 @@ function write_env(env::EnvCache; update_undo=true,
12361236
end
12371237
end
12381238
end
1239-
12401239
if (env.project != env.original_project) && (!skip_writing_project)
12411240
write_project(env)
12421241
end

0 commit comments

Comments
 (0)