petereon / beaupy

A Python library of interactive CLI elements you have been looking for
https://petereon.github.io/beaupy/
MIT License
181 stars 13 forks source link

select_multiple scrolling feature if number of options exceed console size #55

Closed SamLo322 closed 1 year ago

SamLo322 commented 1 year ago

I made a list with over 40 options available for use to select on, but the console size isn't enough to show all of the item_options. Is there any way to scroll the options ? (Or some features like chosen option stay on the middle while the whole list shift up every time I hit the down arrow until it reaches the last option)

petereon commented 1 year ago

Hi @SamLo322, thank you for the issue.

This is currently a limitation, there is not way to have scrolling or pagination for the options.

I am accepting pull requests, so if you'd like to have a go at this yourself, feel free. Otherwise, I am going to have a look at this over the weekend.

petereon commented 1 year ago

Just an FYI not to duplicate efforts: I have implemented it today. It seems to be working but I don't have it covered by tests yet and it is pending a little refactor. I expect to release it during the weekend.

petereon commented 1 year ago

Released in v3.5.0

SamLo322 commented 1 year ago

Thank you soooo much. Really helps a lot~ :D

petereon commented 1 year ago

Glad to have helped, I should mention that 3.5.0 and 3.5.1 are buggy.