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

feat: make long list scrollable for interactive mode #89

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

a1mersnow
Copy link
Contributor

Description

In interactive mode, if our terminal is too short or our deps are too many, we cannot see all deps.
When we use arrow keys to move the selection, the user experience is not good. Especially, when the selection is in the start part, everytime I move the selection, the terminal just scroll back to the bottom, and I can't see the selection anymore. So I have to drag to enlarge the terminal area. But what if our deps are so many that whole screen cannot embrace them or we just don't want to do the drag.

So I made the pr. The method I use is: only render a part of output lines if there is no enough space.

Linked Issues

There is no issue about this now. Feel free to reject this if you consider it not appropriate.

@a1mersnow a1mersnow marked this pull request as ready for review November 27, 2023 04:32
@antfu antfu changed the title feat: make long list scrollable[interactive mode] feat: make long list scrollable for interactive mode Nov 27, 2023
@antfu antfu merged commit 0402966 into antfu-collective:main Nov 27, 2023
5 checks passed
@antfu
Copy link
Member

antfu commented Nov 27, 2023

Awesome, thanks!

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.

None yet

2 participants