Skip to content

fix(VHighlight): add ignore-accents support#22922

Draft
J-Sek wants to merge 2 commits into
masterfrom
feat/vhighlight-ignore-accents
Draft

fix(VHighlight): add ignore-accents support#22922
J-Sek wants to merge 2 commits into
masterfrom
feat/vhighlight-ignore-accents

Conversation

@J-Sek

@J-Sek J-Sek commented Jun 11, 2026

Copy link
Copy Markdown
Contributor
  • add ignore-accents prop (boolean | 'query' | 'target')
  • letters NFD leaves untouched (ł, ø, ß, æ, …) are folded anyway

resolves #22917

TODO:

  • cleanup & split changes, so that new prop lands in dropdowns in v4.2.0
  • add { mode, normalize } to the prop type to accept custom normalization logic... or wait for feedback since full DB collation parity may be impossible anyway
  • docs example

Markup:

TODO

@J-Sek J-Sek self-assigned this Jun 11, 2026
@J-Sek J-Sek added T: feature A new feature C: VHighlight i18n Internationalization issue labels Jun 11, 2026
@J-Sek J-Sek changed the base branch from master to dev June 11, 2026 10:18
@J-Sek J-Sek changed the base branch from dev to master June 11, 2026 10:19
J-Sek and others added 2 commits June 11, 2026 12:19
Adds an `ignoreAccents` prop (`boolean | 'query' | 'target'`) so matches
can fold diacritics on either side. Folding is done per character with an
index map, so highlight ranges stay aligned to the original text even when
the source is in decomposed form. Letters NFD leaves untouched (ł, ø, ß,
æ, …) are folded via an explicit map.

Backed by a shared `findMatchRanges` util reused by the filter composable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Exposes `ignoreAccents` (`boolean | 'query' | 'target'`) on the shared
filter props, so VSelect, VAutocomplete, VCombobox, VDataTable and other
filterable components can match accent-insensitively. `defaultFilter` now
emits index-mapped match ranges, so the highlighted spans stay correct.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@J-Sek J-Sek force-pushed the feat/vhighlight-ignore-accents branch from 5706062 to 90fa23e Compare June 11, 2026 10:19
@J-Sek J-Sek changed the title Feat/vhighlight ignore accents fix(VHighlight): add ignore-accents support Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C: VHighlight i18n Internationalization issue T: feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Highlight letters with accent

1 participant