Skip to content

feat(tui): add fuzzy search for plugin filter#19

Merged
bojanrajkovic merged 1 commit intomainfrom
piekstra/10-fuzzy-search
Feb 9, 2026
Merged

feat(tui): add fuzzy search for plugin filter#19
bojanrajkovic merged 1 commit intomainfrom
piekstra/10-fuzzy-search

Conversation

@piekstra
Copy link
Copy Markdown
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
@bojanrajkovic bojanrajkovic force-pushed the piekstra/10-fuzzy-search branch from 8d79481 to c1e97ab Compare February 8, 2026 21:25
@bojanrajkovic bojanrajkovic merged commit 09083d9 into main Feb 9, 2026
8 checks passed
@bojanrajkovic bojanrajkovic deleted the piekstra/10-fuzzy-search branch February 9, 2026 02:29
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