Skip to content

Select multiple items that are adjacent #3

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

Closed
4 tasks done
codingedgar opened this issue Aug 10, 2021 · 0 comments
Closed
4 tasks done

Select multiple items that are adjacent #3

codingedgar opened this issue Aug 10, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@codingedgar
Copy link
Owner

codingedgar commented Aug 10, 2021

Select multiple items that are adjacent: Click the first item, then press the Shift key and click the last item. All items in between are included in the selection.

### Core

  • When no items are selected, the selection start is the first item in the list.
  • The selection start is from the previous non-adjacent-selection (single-click, select-multiple) .

Edge cases

  • If the selection goes over previously selected items, the items become part of the same selection (ex: if then the select-adjacent range changes leaving the previously non-adjacent-selected items deselected, then they will be deselected, they won't preserve their original selection partition)
  • if there is a next item after the last selected when toggling selection (deselecting), the next adjacent pivot goes to the next item, if there is no next item, it goes to the last item in the selection.
@codingedgar codingedgar added the enhancement New feature or request label Aug 10, 2021
@codingedgar codingedgar added this to the 0.1.0 milestone Aug 10, 2021
@codingedgar codingedgar self-assigned this Aug 10, 2021
codingedgar added a commit that referenced this issue Aug 12, 2021
codingedgar added a commit that referenced this issue Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant