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

[Question] Option to disable selector from rolling over to first choice #9

Closed
piyush-das opened this issue Jun 11, 2021 · 3 comments
Closed

Comments

@piyush-das
Copy link

Hi,

Currently on trying to scroll down in a select or checkbox prompt, after the end of the choices is encountered, the selector reverts to the first index. Is there a way we can disable this?

Thanks

@kazhala
Copy link
Owner

kazhala commented Jun 11, 2021

Hi @piyush-das ,

At the moment no, but I agree there should be an option to disable it. It would be a fairly simple tweak, I will add that customization over the weekend.

Thanks,
Kevin

@kazhala
Copy link
Owner

kazhala commented Jun 14, 2021

I've added a parameter called cycle in all list type prompts. It's True by default, you can achieve the behaviour you want by setting it to False. It's not yet released, I'll make a new release tmr.

Thanks,
Kevin

@kazhala kazhala closed this as completed Jun 14, 2021
@kazhala
Copy link
Owner

kazhala commented Jul 3, 2021

Hi @piyush-das,

Apologies for the delay, the new version 0.2.1 is released.

Thanks,
Kevin

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

No branches or pull requests

2 participants