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

@std/cli's promptSelect is horrible with large lists #6470

Open
BlackAsLight opened this issue Mar 8, 2025 · 0 comments
Open

@std/cli's promptSelect is horrible with large lists #6470

BlackAsLight opened this issue Mar 8, 2025 · 0 comments

Comments

@BlackAsLight
Copy link
Contributor

When providing a list that ends up larger than the screen size available, it can be pretty hard to see the top results and leads to a lot of spam when scrolling back up.

A better user experience would be to figure out how much real estate is actually available in the terminal and never print more than that. When dealing with lists that would overflow the terminal's height, either pages should be introduced so the user can use the left and right keys to iterate between them or the down and up keys should scroll the list so it's only printing a subsection of the list at a given time.

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

No branches or pull requests

1 participant