-
Notifications
You must be signed in to change notification settings - Fork 4
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
bug: selection disappears when scrolled to index -1
or n
#13
Comments
uhh i wasn't thinking about this as a bug, rather a feature - when scrolling down you can't see whether the current selection is the last one, so the disappearance of a selection is the only one currently indicator of this. |
wouldn't restarting from the other end of the list indicate to the user that the end/start was reached? this happens after the selection disappears anyway .. i just felt confused when the selection disappeared LOL |
yeah it may not be the most intuitive thing, but let keep this issue opened till ratatui doesn't implement padding for Table |
we could instead have a counter indicator that displays to the user the current position of the selected item in the list e.g. we could place this indicator at the right-hand side of the table header OR at the bottom to the left of the disk size indicator |
i like the bottom better, seems like a place for it |
The next version of ratatui has first, last, next, previous methods on table state and caps the state to 0, items.len() when rendering the table - this might make it possible to remove a bunch of your code. Might be good to throw some feedback about missing things you've had to implement manually in the table if you have time. |
We've implemented:
which could've been just one method, but just with a signed integer. We use them to implement scrolling with PageDown and PageUp. |
Makes sense. Added ratatui/ratatui#1207 |
No description provided.
The text was updated successfully, but these errors were encountered: