add a flag to retain options on the screen even after the user has se… #423
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the problem that this PR addresses?
Closes #313
The issue relates to the default behavior of certain prompts in the questionary library. Currently, when a user selects an option in prompts like select, rawselect, or checkbox, the displayed options disappear immediately after selection. This behavior can make it difficult for users to review the available or selected options.
How did you solve it?
I added a new feature in the form of an optional flag keep_options_displayed to the following prompts:
select
rawselect
checkbox
Feature added:
If keep_options_displayed=True, the options remain displayed after the selection is made.
If keep_options_displayed=False (default behavior), the options disappear immediately after the selection.
Checklist