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

Add a "Reverse" command to the "Order" menu #2271

Closed
Keavon opened this issue Feb 7, 2025 · 3 comments · Fixed by #2273
Closed

Add a "Reverse" command to the "Order" menu #2271

Keavon opened this issue Feb 7, 2025 · 3 comments · Fixed by #2273
Assignees
Labels
Good First Issue Good for newcomers

Comments

@Keavon
Copy link
Member

Keavon commented Feb 7, 2025

Add a "Reverse" command to the bottom of this menu:

Image

  • If multiple noncontiguous ranges are present with the same direct parent (they're siblings in the nesting hierarchy), all the selected items should be swapped as part of the same list: [1], [2], 3, 4, [5], [6] should become [6], [5], 3, 4, [2], [1] (where [] indicates selection).
  • If any selected layer has a selected ancestor, only the ancestor is considered selected and all children/descendants are ignored as part of the selection.
  • If there are separate sets of selected sibling layers, and they aren't descendants of any selected layer, each set gets reversed independently as part of its own sibling set.
  • Any selected layer without at least one other selected sibling is ignored.

So in summary, reversal happens for each set of selected siblings, but not those with selected ancestors.

@Keavon Keavon added the Good First Issue Good for newcomers label Feb 7, 2025
@Keavon Keavon added this to Task Board Feb 7, 2025
@github-project-automation github-project-automation bot moved this to Short-Term in Task Board Feb 7, 2025
@tarunprabhu11
Copy link
Contributor

Can i get a check to make sure I am moving in the right direction please.

@Yash-g2310
Copy link

hey @Keavon !
i am new to opensource contribution and currently learning rust,
can i work on this issue?
also i have set up the codebase

@Keavon
Copy link
Member Author

Keavon commented Feb 7, 2025

Hi @Yash-g2310, it looks like @tarunprabhu11 just opened a PR for this, but I can help you find another task to begin with if you join our Discord server and ask in the #development channel for a first task suggestion. See you there.

@github-project-automation github-project-automation bot moved this from Short-Term to Completed This Milestone in Task Board Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Good for newcomers
Projects
Status: Completed This Milestone
3 participants