pacocoursey / cmdk

Fast, unstyled command menu React component.
https://cmdk.paco.me
MIT License
9.98k stars 287 forks source link

Suggestion for the State that is used in the useCommandState hook #323

Open Popushka opened 3 weeks ago

Popushka commented 3 weeks ago

Hi, I was playing with the useCommandState and I noticed that you are returning the filtered items that have: -the count of all the active items -the items with itemsID and value -the groupsIDs I was wondering if you could add the groupID in the items, so that we can count how many active items there are in each group. I think it will be a useful change if somebody wants to add the number items each group has in the group heading (example)