Is there a way to scroll by the number of items displayed in a List? What you traditionally do when scrolling using page up/down.
Not really, the problem is that the state of a list and how much to scroll it by to represent a page is dependent on the size of the space when it’s next rendered, the number and size of each item when it’s next rendered, etc. So the fields / methods for handling this properly are not fully fleshed out well. Probably there needs to be redesign of this so that this sort of thing works a bit better. It might be difficult to make the existing list compatible with such design though.
I suspect the right approach to this is a redesign in a new crate and deprecate the existing list widget.
1 Like
I have a wrapper around List in rat-widget. I’m not sure if its fully API compatible with ratatui::List, but I think so. It can do page up/down.
1 Like