-
-
Notifications
You must be signed in to change notification settings - Fork 793
Support rearranging layers with hotkeys #271
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b05dad9
Support moving single layers
ajweeks 0e2c340
Fix "Move layer to top/bottom" keybinds
ajweeks 5e4d009
Rename things named "move" to "reorder"
ajweeks c3a9f8c
Combine sorted layer helper functions
ajweeks 7663180
Use integer consts for moving layers to front/back
ajweeks cc334cd
Fix merge mistake
ajweeks b7713bc
Fix some clippy lints
TrueDoctor e987e22
Fix panic
ajweeks 91f63a4
Remove "get" prefix from functions
ajweeks 0457b37
Bring layer menu items out to sub-menu
ajweeks d919489
Support moving multiple layers at a time
ajweeks 2dc2af5
Add comment explaining odd keybinding
ajweeks fdcf182
Add reordering tests
ajweeks c18bbb8
Add negative test
ajweeks fbe870f
Add new error type
ajweeks 589f436
Add layer position helper, clean up tests
ajweeks 84db32c
Make position helper return Result
ajweeks d74f2f0
Clean up slice iteration
ajweeks 1462e23
Simplify source_layer_ids computation
TrueDoctor c55172e
Merge branch 'master' into rearrange-layers
TrueDoctor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,5 @@ pub enum DocumentError { | |
InvalidPath, | ||
IndexOutOfBounds, | ||
NotAFolder, | ||
NonReorderableSelection, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.