cmdk icon indicating copy to clipboard operation
cmdk copied to clipboard

When searching, first item in list of filtered results is selected

Open stevecastaneda opened this issue 1 year ago • 2 comments

Instead of filtering the rendered list when searching, I'd like to select the 1st result of a search. I love this because I can still traverse a list using the keyboard. Is this possible with cmdk?

  1. I can type "1"
  2. Press down
  3. Select 1:30am

2023-06-03 13 20 37

stevecastaneda avatar Jun 03 '23 18:06 stevecastaneda

Maybe if Command.Group had the ability to accept a key for the Command.Item that should be focused/selected in the list? Then when you press enter, it selects it as the input value.

stevecastaneda avatar Jun 03 '23 18:06 stevecastaneda

I was looking for that too!

lucaseduoli avatar Jul 25 '24 19:07 lucaseduoli