feat: add fuzzy matching and preview highlights to global search#15285
Open
beeelias wants to merge 1 commit intohelix-editor:masterfrom
Open
feat: add fuzzy matching and preview highlights to global search#15285beeelias wants to merge 1 commit intohelix-editor:masterfrom
beeelias wants to merge 1 commit intohelix-editor:masterfrom
Conversation
Add fuzzy matching mode to global search (Space /) that matches characters in order with flexible gaps, similar to fzf. This is controlled by a new `editor.search.fuzzy` config option (default: true). Changes: - Add `editor.search.fuzzy` config option - Convert fuzzy queries to bounded regexes for grep-based file searching - Show matched line content in the picker's content column - Highlight matched characters in the preview pane using the "special" theme scope, with support for both fuzzy and regex modes - Add `Picker::with_preview_highlights` for per-character overlay highlighting in the preview document - Fix matcher_index tracking for hidden picker columns - Update documentation
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.
Add fuzzy matching mode to global search (Space /) that matches characters in order with flexible gaps, similar to fzf. This is controlled by a new
editor.search.fuzzyconfig option (default: true).Changes:
editor.search.fuzzyconfig optionPicker::with_preview_highlightsfor per-character overlay highlighting in the preview document