vue-word-highlighter
vue-word-highlighter copied to clipboard
Option to pass in a list of indices instead of a query.
It would be nice to have this for use with fuzzy search, for example vueUse/useFuze. It outputs an array of arrays with start and end indices:
Taken from fuze.d.ts:
// Denotes the start/end indices of a match
// start end
// ↓ ↓
type RangeTuple = [number, number]
export type FuseResultMatch = {
indices: ReadonlyArray<RangeTuple>
...
}