Skip to content

Newcomer questions #698

Answered by asabaylus
brupelo asked this question in Q&A
Discussion options

You must be logged in to vote

Glad your finding it useful.

  • Is it possible somehow to consider the command's category when searching? Ie. I'm using sampleCommandChrome where you can see the command's category displayed in some nice color but these ones won't be taken into consideration on the search (I assume only the name will be considered).
    Duplicate of

Yes, there's an example you can look at here: https://react-command-palette.js.org/?path=/story/command-palette--with-multiple-highlights. You can see this in practices in the Chrome theme example here: https://github.com/asabaylus/react-command-palette/blob/release/examples/sampleChromeCommand.js#L18-L25

<CommandPalette
  commands={commands}
  options={{keys: ["…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by asabaylus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #531 on April 18, 2021 15:13.