Skip to content

Command palette - not fuzzy search? #126

Closed Answered by calebporzio
danielrona asked this question in Feature Requests
Discussion options

You must be logged in to vote

Btw, here is my dream algo as the default:

  • use .includes to narrow the results initially
  • then "score" that subset.
  • highest score for exact match, second for "startsWith", third for "wordStatesWith", fourth for just a substring

However, because we are just filtering DOM elements in-place and not rendering them based on a dataset, anything that changes the order of the search results will have to be done in developerland using Alpine or Livewire. Super bummer, but whatever, .includes is good enough.

Replies: 8 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@schonhoff
Comment options

@calebporzio
Comment options

@danielrona
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@joshhanley
Comment options

@vincentcordel
Comment options

@beneyraheem
Comment options

@schonhoff
Comment options

@mcalonje
Comment options

Comment options

You must be logged in to vote
3 replies
@calebporzio
Comment options

@calebporzio
Comment options

Answer selected by calebporzio
@jeffchown
Comment options

Comment options

You must be logged in to vote
2 replies
@jeffchown
Comment options

@uchajk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #14 on September 27, 2024 12:49.