Skip to content
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

can't override hardcoded keyboard navigation message "(Use arrow keys to reveal more choices)" #1706

Open
at-arc opened this issue Mar 31, 2025 · 1 comment

Comments

@at-arc
Copy link

at-arc commented Mar 31, 2025

hi,

Whenever i have more than the pageSize of items , I get the message:

(Use arrow keys to reveal more choices)

but this seems hardcoded in the code. it can't be localized or customized in any way.

Also, on a separate note, i've cloned the Inquirer.js repo and it seems to be a whopping 2.9 GB. This seems to be coming from the .git folder, it seems at some point some commit may have checked in huge items, but they still remain in history. I suggest you try to fix this, because it's just not right IMO.

Thank you.

@SBoudrias
Copy link
Owner

Happy to consider adding this to become customized.

Here's the relevant lines of code: https://github.com/SBoudrias/Inquirer.js/blob/main/packages/select/src/index.ts#L216-L227

Note you could hack this today by overwriting the theme.style.help to return a different string. But a cleaner approach would be to expose an option to localize this text; kinda like we do on the checkbox prompt here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants