Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Move file or folder to the trash #3879

Merged
merged 14 commits into from
May 17, 2013
Merged

Move file or folder to the trash #3879

merged 14 commits into from
May 17, 2013

Conversation

gruehle
Copy link
Member

@gruehle gruehle commented May 17, 2013

Supersedes #2203

Add a "Delete" context menu item that moves the selected item (file or folder) to the trash/recycle bin.

The "move to trash" part is easy. The complicated parts are updating the tree and notifying the world that the file has been deleted.

@gruehle
Copy link
Member Author

gruehle commented May 17, 2013

@redmunds would you mind reviewing? I can rebase/squash once the review is complete.

@petetronic
Copy link
Contributor

Cool, delete was an obvious omission - glad we're addressing this!

*/
function notifyFileDeleted(file) {
function notifyFileDeleted(file, skipAutoSelect) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skipAutoSelect parameter is unused.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that should have been passed to closeFullEditor(). Fixed.

@redmunds
Copy link
Contributor

Bug: Find in Files is not updated after a file is deleted. A reference to deleted file is still in list and displays an error if you click on it.

@redmunds
Copy link
Contributor

Bug: If you display an image in Quick View, delete the image, then go back and hover of the image reference again, the image is still displayed. Need to clear a cache somewhere?

@redmunds
Copy link
Contributor

Done with initial review

@peterflynn
Copy link
Member

Re Find in Files: does a similar bug exist with rename? If so the delete case seems puntable & the fixes should be lumped together...

@redmunds
Copy link
Contributor

Re Find in Files: does a similar bug exist with rename?

@peterflynn No, Find in Files results are correctly updated after a file is renamed.

@gruehle
Copy link
Member Author

gruehle commented May 17, 2013

Changes pushed:

  • Find in Files results fixed
  • skipAutoSelect is used

I couldn't find a reliable fix for the Quick View issue. CEF must be caching the image, and there is no way to clear the cache (short of a full refresh of Brackets, which seems excessive).

@redmunds
Copy link
Contributor

Looks good. Squash away!

@gruehle
Copy link
Member Author

gruehle commented May 17, 2013

Ugh. Rebasing 6 month old code is a pain... It would require fixing a ton of manual merge conflicts.

I could do a squashed commit, but then there would be a single commit from me, and I want to make sure @leonuh gets credit for his changes. Let's just merge as-is for now.

In the future, I'll make sure to do the rebase first if the changes are really old.

@redmunds
Copy link
Contributor

Merging.

redmunds added a commit that referenced this pull request May 17, 2013
Move file or folder to the trash
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants