Skip to content

Conversation

@piekstra
Copy link
Contributor

Summary

  • Replace substring matching with fuzzy matching using sahilm/fuzzy library
  • Results sorted by match score (best matches first)
  • Matches against plugin name, description, and ID combined

Changes

update.go:

  • Add pluginSearchData type implementing fuzzy.Source interface
  • Update applyFilter() to use fuzzy.FindFrom() instead of strings.Contains()
  • Results automatically sorted by match quality

go.mod:

  • Add github.com/sahilm/fuzzy v0.1.1 dependency

Example

Query: clpm
Matches: claude-plugin-manager (high score due to matching c-l-p-m pattern)

Query: cfg
Matches plugins with "config" in name/description

Closes #10

Replace substring matching with fuzzy matching using sahilm/fuzzy library.
Results are now sorted by match score (best matches first).

The fuzzy search matches against plugin name, description, and ID combined,
allowing queries like "cpm" to match "claude-plugin-manager".

Closes #10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Fuzzy search for plugin filter

2 participants