Skip to content

feat: add fuzzy matching and preview highlights to global search#15285

Open
beeelias wants to merge 1 commit intohelix-editor:masterfrom
beeelias:fuzzy-global-search
Open

feat: add fuzzy matching and preview highlights to global search#15285
beeelias wants to merge 1 commit intohelix-editor:masterfrom
beeelias:fuzzy-global-search

Conversation

@beeelias
Copy link

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

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
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.

1 participant