nicolaslopezj / searchable

A php trait to search laravel models
MIT License
2.01k stars 291 forks source link

Implement Sublime-like searching #188

Open ajcastro opened 5 years ago

ajcastro commented 5 years ago

image

Is it possible to make the search to work like in sublime? I also have a github package for that, I just want to put that feature here. Maybe this can help... https://github.com/sedp-mis/base-grid-query/blob/master/src/Search/SublimeSearch.php

Please look at the search() and the parseSearchStr() methods.. the parseSearchStr splits every character and put % it between characters so it can match fragments of the words

dasbrowedx commented 5 years ago

I am not sure exactly what you are asking, but you may want to look Twitter Typeahead js - maybe I am miss-understanding your question.