feat(search): add fuzzy search with fzy-inspired scoring and position tracking#131
Open
danlylois-code wants to merge 3 commits into
Open
feat(search): add fuzzy search with fzy-inspired scoring and position tracking#131danlylois-code wants to merge 3 commits into
danlylois-code wants to merge 3 commits into
Conversation
- Add fuzzy matching to SearchOptions (fzf-style character-by-character) - Add fuzzy toggle checkbox to search panel UI - Implement fuzzyToPattern() converting queries to non-greedy regex - Support case-sensitive fuzzy search - Escape regex-special characters in fuzzy queries - Add 12 unit and UI integration tests - Roadmap: P2 floatboatai#17
…ggle and comprehensive test coverage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
Add full fuzzy search support to the CodeMirror 6 search plugin: a 3-layer architecture spanning regex-bridge UI integration, fzy-inspired relevance scoring, and backtracking-based character position tracking. 104 tests pass, 0 lint errors.
Motivation / 背景与动机
"fb"→"floatboat") get no matches with exact/regex searchChanges / 变更
packages/plugin-search:Architecture (3-Layer Design) / 架构设计(3层设计)
Design Decisions / 设计决策
.*?between query chars.*would span to last matchTesting / 测试
Scoring Algorithm Invariants Verified / 已验证计分算法的不变量
CS_results ⊆ CI_resultsCompliance / 合规自检
Checklist / 检查清单
Screenshots / Recordings · 截图或录屏 (UI changes)