krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
17.79k stars 756 forks source link

Support search function property value #568

Closed WingDust closed 2 years ago

WingDust commented 2 years ago
function ToggleCommandPanel(){
}
ToggleCommandPanel.relate = 'View'
ToggleCommandPanel.key = 'Altx'

  const options = {
    keys:['name','relate']
  }

  const fuse = new Fuse([{Altx:ToggleCommandPanel}],options)

  const re = fuse.search('o')

Object property bind a function ,function propert bind string Can support search function property 's string

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days