-
Notifications
You must be signed in to change notification settings - Fork 176
Open
Description
Feature Request
Allow pressing number keys (1-9) to jump to and select the corresponding option in the select prompt.
Current Behavior
Users must use arrow keys to navigate options and press Enter to confirm.
Proposed Behavior
When a select prompt has numbered options, pressing a number key (e.g. 1, 2, 3) should immediately jump to and select that option
This is especially useful for short lists (< 10 items) where pressing a single key is much faster than arrow-key navigation.
Example
const answer = await select({
message: 'Pick a market',
options: [
{ label: 'Market 1' },
{ label: 'Market 2' },
{ label: 'Market 3' },
],
})
// Pressing "2" immediately selects "Market 2"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Needs triage