-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Feature reorder dock items #477
Feature reorder dock items #477
Conversation
Please note that this will need to be applied to the navigator sidebar (left) and the inspector sidebar (right). Also, keep in mind that we will eventually need the ability to drag these icons down to create a split sidebar like this. This is not required for this PR but we will need this at some point. |
Also, I believe @lilingxi01 is working on dragging to reorder tabs (please confirm). You might coordinate together so that we are consistent in the approach we are taking to do both of these. |
We should just save the list in the preferences, so when the user opens the app again they can get the previous icon positions again. |
This should be saved and synced across all open workspaces, persisting after the app is closed and reopened. It should not be in the preferences UI or in preferences.json. In the View menu, we should have an item labeled “Reset Workspace Layout To Default” that resets this setting to default. This setting should track icon location per pane, per sidebar. So for example, the stored state can look like this:
Updated #41 with this information. |
Please also refer to #479 for additional context around what is planned for sidebar split panels. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the following items before we can merge:
- The cursor should not turn into a "+" as the user hovers over other items.
- The item being dragged should be fully opaque and the original should be 0% opacity.
- As the user hovers, icons should animate to move out of the way to make room for the dropped item.
- Axis should be locked to the X axis unless the cursor exits the sidebar dock (icon tab bar).
The overall interaction should feel like dragging to reorder tabs in Xcode or Finder.
When you are finished, please update the video in the PR description. |
It seems to be behaving as desired. Please see videos |
Please make sure to also fix the SwiftLint errors. For more information on SwiftLint see this Wiki entry |
Quick question: Is the order persistent? Meaning: is it saved to |
It is not. I mentioned that in issue #41. Realistically, I will not be able to complete that piece at this time. |
No problem 😉 just wanted to know |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine to me! Once @austincondiff approves we can merge 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fantastic, great work! 👏
@allcontributors add @jav-solo for code |
I've put up a pull request to add @jav-solo! 🎉 |
Description
Adding the ability to re-order the dock icons in the sidebar
Related Pull Requests
[WIP] Feature drag and drop icons
Related Issues
Checklist
Screenshots
navigator-sidebar-demo.mov
inspector-demo.mov