timc1 / kbar

fast, portable, and extensible cmd+k interface for your site
https://kbar.vercel.app
MIT License
4.84k stars 185 forks source link

Excluding specific section from search #201

Closed careless10 closed 2 years ago

careless10 commented 2 years ago

Hi there, First thanks for this amazing lib its working great, Is there a way to exclude items from the search,

Scenario

I am calling an api with the state->search , and extending the result, now the results are already filtered and some of them dont have the exact search value, which means they are being filtered out because they are not matching the exact word, thought they are still related to the search in our logic, so excluding this list from the search would be awesome.

Any suggestion?

timc1 commented 2 years ago

hey @careless10, thanks!

I'm not sure I'm fully understanding this question – do you want to only search within the result returned from your API?

careless10 commented 2 years ago

I opened a PR, with a description about the case, #205 , please take a look whenever you can.

stale[bot] commented 2 years ago

Hey! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.