Skip to content

feat(picker): add select_all and deselect_all helper methods - #168

Open
miskatul-anwar wants to merge 1 commit into
aisk:masterfrom
miskatul-anwar:feat/select-all-deselect-all
Open

feat(picker): add select_all and deselect_all helper methods#168
miskatul-anwar wants to merge 1 commit into
aisk:masterfrom
miskatul-anwar:feat/select-all-deselect-all

Conversation

@miskatul-anwar

Copy link
Copy Markdown

Summary

Adds select_all() and deselect_all() helper methods to Picker for multiselect mode:

  • Picker.select_all(): Selects all available options that are enabled (Option.enabled is not False).
  • Picker.deselect_all(): Clears selected_indexes.
  • Both methods safely return immediately if multiselect=False.

Testing

  • Added unit test test_select_all_and_deselect_all in tests/test_pick.py.
  • Ran full pytest test suite (all passing).
  • Ran mypy type checks (clean).

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

Successfully merging this pull request may close these issues.

1 participant