Skip to content

feat(core): support number key jump in select prompt#513

Open
rodindev wants to merge 1 commit intobombshell-dev:mainfrom
rodindev:feat/select-number-jump
Open

feat(core): support number key jump in select prompt#513
rodindev wants to merge 1 commit intobombshell-dev:mainfrom
rodindev:feat/select-number-jump

Conversation

@rodindev
Copy link
Copy Markdown

What does this PR do?

Press keys 1–9 in the select prompt to jump the cursor to that option. Out-of-range digits are ignored; if the target is disabled, the cursor skips forward to the next enabled option (same as the down-arrow). Enter still submits.

Closes #475

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • I have added a changeset

AI-generated code disclosure

  • This PR includes AI-generated code

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 20, 2026

🦋 Changeset detected

Latest commit: d627413

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@clack/core Minor
@clack/prompts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

select: support number key to jump to option

1 participant