-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rawlist - arrows doesn't work #1617
Comments
Hey @td-krzysiek, why not using a I didn't know/remember arrows were working previously, I'm not against re-adding it, but I think overall the |
Hi @SBoudrias, in my use case, I have a menu where most levels have just a few entries, but some options display, say, 15 entries. People usually navigate using arrows, but when many entries appear on the list, it is more convenient to enter a number (unless the option is close to the top or bottom of the list). In worked in inquirer@9: ![]() To reproduce: npm init -y
npm i inquirer@9 main.mjs: import inquirer from 'inquirer'
inquirer.prompt([
{
name: 'question',
type: 'rawlist',
choices: [
{ name: 'abc' },
{ name: 'bcd' }
]
}
]); |
@td-krzysiek the latest select (either in |
Thank you, for a time being we will consider using select but with numeric keyboard it is more convenient to type numbers for larger lists, so rawlist from v9 was ideal for our use case :-) |
…lay the element index Issue: SBoudrias#1617 Signed-off-by: ATAlgaba <atalgaba@gmail.com>
This exact use-case is happening to me right now. As a temporary solution I created a new custom prompt based on I took the chance to add a new configurable setting called |
Issue: SBoudrias#1617 Signed-off-by: ATAlgaba <atalgaba@gmail.com>
Issue: SBoudrias#1617 Signed-off-by: ATAlgaba <atalgaba@gmail.com>
Hello,
In the past rawlist supported up/down arrows to navigate through the options. Currently I can use arrows for 'select' but not for the 'rawlist'. Why this happens, please?
The text was updated successfully, but these errors were encountered: