Skip to content

feat: implemented native cmdk.Command filtering#74

Open
pete-otaqui wants to merge 1 commit intosersavan:mainfrom
pete-otaqui:main
Open

feat: implemented native cmdk.Command filtering#74
pete-otaqui wants to merge 1 commit intosersavan:mainfrom
pete-otaqui:main

Conversation

@pete-otaqui
Copy link
Copy Markdown

  • Removed custom filtering code
  • Implemented support for option.keywords as per cmdk.Command
  • Implemented support for filter as per cmdk.Command
  • Removed announcement of filtered values
  • Updated documentation
  • Added keyword to sample framework for demonstration

--

the underlying Command component from cmdk already has filtering built in. In fact, this isn't even turned off in MultiSelect, so filtering is currently happening twice.

This PR removes the MultiSelect filtering in favor of implementing better support for Command's filtering capabilities, specifically to supply keywords to options, and ultimately to provide a completely custom filter function altogether.

- Removed custom filtering code
- Implemented support for `option.keywords` as per cmdk.Command
- Implemented support for `filter` as per cmdk.Command
- Removed announcement of filtered values
- Updated documentation
- Added keyword to sample framework for demonstration
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Oct 4, 2025

@pete-otaqui is attempting to deploy a commit to the sersavan's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant