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

interactiveSelectList should scroll when the number if items is larger than terminal height #251

Open
mikaelstaldal opened this issue Jan 14, 2025 · 3 comments

Comments

@mikaelstaldal
Copy link

It seems like interactiveSelectList does not work reasonably when the number if items is larger than terminal height. It doesn't scroll as I would have expected it to do.

Tested in XTerm and Gnome Terminal on Ubuntu Linux with Java 21.

@ajalt ajalt changed the title interactiveSelectList does not work reasonably when the number if items is larger than terminal height interactiveSelectList should scroll when the number if items is larger than terminal height Jan 14, 2025
@ajalt
Copy link
Owner

ajalt commented Jan 14, 2025

This should be doable by wrapping the list in a Viewport

@mikaelstaldal
Copy link
Author

This should be doable by wrapping the list in a Viewport

But how can I do that? interactiveSelectList is a function, and ViewPort wants a Widget.

@ajalt
Copy link
Owner

ajalt commented Jan 16, 2025

You're right. If you wanted to do that now, you'd have to manually animate a SelectList widget. We could add the viewport to the widget created by interactiveSelectList to make that easier.

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

2 participants