spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.
https://spectreconsole.net
MIT License
8.9k stars 454 forks source link

Add paging function to selection prompt #1537

Open ross-oreto opened 1 month ago

ross-oreto commented 1 month ago

The current paging options for selection prompt only supports client-based paging, meaning all the choices are already in memory. If there are hundreds or thousands of choices possible this is not ideal, and it would be better to go get the next/prev page choices as the user is paging.

Describe the solution you'd like There is a need to page these results dynamically by calling a function to go get the next page/batch of results from whatever storage.

Describe alternatives you've considered I tried to extend the SelectionPrompt class and add the functionality, but it is sealed. Is there a way to add this functionality by way of extending/extension?


Please upvote :+1: this issue if you are interested in it.