Repository navigation
feat: move archives to Trash after extracting from Finder - #330
Open
athousanddetails wants to merge 3 commits into
Open
athousanddetails wants to merge 3 commits into
athousanddetails wants to merge 3 commits into
Conversation
A new General setting, off by default: once Finder's Extract Here, Extract to <folder> or Extract to... has extracted an archive completely, the archive goes to the Trash without a further question. Every volume of a split set goes with it. A failed or cancelled extraction leaves the archive where it is, and the Trash is always the way back.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What & why
A new General setting, off by default: "Move archive to Trash after extracting from Finder". Once Finder's Extract Here, Extract to "" or Extract to… has extracted the whole archive successfully, the archive goes to the Trash. There is no further question, because the Trash itself is the way back. Every volume of a split set goes with it. A failed or cancelled extraction leaves the archive where it is.
This replaces the cleanup part of #285 and the confirmation sub-option in #296, as one small change on current
main. There is no Core cleanup engine and no extra dialog. It is one setting, one check, andFileManager.trashItem.ArchiveState.lastExtractionStaterecords how the lastextract(to:smart:)ended. The progress center drops finished jobs when its window closes, so a caller that waited for the end reads the result here.ArchiveState.sourceFilesreturns the archive's file. For a split set, it returns every volume of the set in the archive's folder, matched by the existingsplitSetName.AppUrlHandler.extractArchivemovessourceFilesto the Trash only when the setting is on and the state is.done.How it was verified
ExtractionProgressTests:extractFullArchiveRecordsItsOutcomeandsourceFilesCoverEveryVolumeOfASplitSet(set.z01,set.z02andset.zipare included;other.zipandset.txtare not). The full suite passes.extractHereURL. The log showsMoved extracted archive to the Trash {"file":"test.zip"}, the contents were extracted, and no dialog appeared.Settings screenshot to follow.
Changelog
Added: 1.1.0, feat, issue 330, in all 16 languages.
Checklist
Config/products/macpacker.json