Environment
- OS: macOS
- Node Version: v22.17.0
- Package:
@clack/prompts
- Package Version: 1.0.0-alpha.1
Describe the bug
Issue no. 1
|
const instructions = [ |
|
`${color.dim('↑/↓')} to navigate`, |
|
`${color.dim('Space:')} select`, |
|
`${color.dim('Enter:')} confirm`, |
|
`${color.dim('Type:')} to search`, |
|
]; |
The hint says that one can use Space to select. However, when one has typed something to narrow the list, then space gets eaten up by filter's input and is not used to select an item. What I found is using Tab key works on both the cases.
Issue no. 2
|
return prompt.prompt() as Promise<Value | symbol>; |
An autocompleteMultiselect returns a list of values, while right now we are returning just Value here.
Environment
@clack/promptsDescribe the bug
Issue no. 1
clack/packages/prompts/src/autocomplete.ts
Lines 276 to 281 in d4de920
The hint says that one can use Space to select. However, when one has typed something to narrow the list, then space gets eaten up by filter's input and is not used to select an item. What I found is using Tab key works on both the cases.
Issue no. 2
clack/packages/prompts/src/autocomplete.ts
Line 318 in d4de920
An
autocompleteMultiselectreturns a list of values, while right now we are returning justValuehere.