This repository was archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Add drag and drop to move items in FileTreeView #13546
Merged
Merged
Changes from 25 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
5f3c992
Add drag and drop to move items in FileTreeView
boopeshmahendran 88e18f9
Add support for moving items to root directory
boopeshmahendran b856622
Check item dropped onto itself or parent directory
boopeshmahendran a98af02
Add support for moving items by dropping on files
boopeshmahendran dc98af6
Create dragItem action
boopeshmahendran 113d25f
Close directory on drag
boopeshmahendran 4c5bfc2
Open directory on Drop
boopeshmahendran b0f99b4
Open directory on drag over
boopeshmahendran 4699ebf
Address review comments
boopeshmahendran 4d187dc
Add tests for moveItem in FileTreeViewModel
boopeshmahendran 9430b1b
Fix style issues on drag
boopeshmahendran 9ab2c4a
Make styles fast
boopeshmahendran 8651108
Change fileindex to update the moved entry
boopeshmahendran 0954350
Fix lint mistakes
boopeshmahendran 4146637
Set drag image as item name
boopeshmahendran 5f9ebe4
Check if directory is open before opening directory on drop
boopeshmahendran b7df261
Refactor code
boopeshmahendran b0eee1b
Check if item is dropped onto itself or parent directory
boopeshmahendran d148980
Move selected flag when item is moved
boopeshmahendran 5f8f7e7
Merge branch 'master' into dragAndDrop
boopeshmahendran b1f00df
Merge branch 'master' into dragAndDrop
boopeshmahendran 45305cd
Use filter instead of forEach
boopeshmahendran be7a935
Change implementation to reuse rename workflow
boopeshmahendran 0ca8bdf
Fix tests
boopeshmahendran 09efcdb
Add docs and comments
boopeshmahendran e56830b
Address review comments
boopeshmahendran f416c65
Add Error handling
boopeshmahendran ed84e49
Make directory open and adding new item independent
boopeshmahendran 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
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.
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.
Why are we checking equality with both oldpath and newpath? Shouldn't it be just one of them?
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.
Yeah. Changed this.