react-command-palette icon indicating copy to clipboard operation
react-command-palette copied to clipboard

add sections/groups to the results based on category

Open JoeVanGundy opened this issue 2 years ago • 1 comments

Describe the solution you'd like A final result similar to Mac OS's finder. The results are grouped by their category and limited to avoid one category taking up all the space. image

Describe alternatives you've considered For now I can just add the category on each result, but feels a little sub optimal. Could go a long way to be able to limit categories to specific number as well. Example, if the categoryLimit was 3, then the first 3 results would be documents, the next 3 would be definition, etc,

Additional context I went through all of the issues and didn't see any similar requests, but please let me know if I'm missing an easier way to do this!

Thanks for all your hard work!

JoeVanGundy avatar Jan 04 '22 20:01 JoeVanGundy

This is a pretty cool feature to add. I love it. Please feel free to submit a PR. I quite busy so it might take some time before I get around to add this.

How do you think the order of categories would work? Any thoughts about the API?

asabaylus avatar Jan 05 '22 01:01 asabaylus