Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Forget every receipt with nothing left at once in Package Receipts
Țugui Dragoș87cd7a146336
diff --git a/GUIDE.md b/GUIDE.mdindex 33888e54..612a51e4 100644--- a/GUIDE.md+++ b/GUIDE.md@@ -249,7 +249,8 @@ and how many items the others hold.- **Package Receipts:** what installer packages other than Apple's put on your Mac, item by item, to move to the Trash.Nothing is selected for you, and Select Recommended passes by a folder a package made that now holds what somethingelse put there. Forget Receipt moves the receipt itself to the Trash, through Peel's helper, so macOS no longer counts- the package as installed. An app a package installed follows the rules of its own page, and so does the rest of its+ the package as installed, and Forget All does so at once for every package listed under Receipt Only, which left+ nothing on your Mac. An app a package installed follows the rules of its own page, and so does the rest of itspackage: what is left to Finder or to the maker's uninstaller stays where it is, and what may exist only on this Macis shown and not selected.- **Intel Software:** what still needs Rosetta, which macOS 27 is the last release to offer for most Intel software:diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex 54275920..c2b83957 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -46648,6 +46648,347 @@}}},+ "Forget ^[%lld receipt](inflect: true)?" : {+ "comment" : "The title of the question before Forget All in the Receipt Only section of Package Receipts. %lld is how many receipts.",+ "localizations" : {+ "cs" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Zapomenout %lld záznamy o instalaci?"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Zapomenout %lld záznamu o instalaci?"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Zapomenout %lld záznam o instalaci?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Zapomenout %lld záznamů o instalaci?"+ }+ }+ }+ }+ },+ "de" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld Quittung vergessen?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld Quittungen vergessen?"+ }+ }+ }+ }+ },+ "es" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "¿Olvidar %lld de recibos?"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "¿Olvidar un recibo?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "¿Olvidar %lld recibos?"+ }+ }+ }+ }+ },+ "fr" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Oublier %lld de reçus ?"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Oublier %lld reçu ?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Oublier %lld reçus ?"+ }+ }+ }+ }+ },+ "it" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vuoi dimenticare %lld di ricevute?"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vuoi dimenticare una ricevuta?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vuoi dimenticare %lld ricevute?"+ }+ }+ }+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld個のレシートをゴミ箱に入れますか?"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "수신 정보 %lld개를 제거하겠습니까?"+ }+ },+ "nl" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld installatiebewijs vergeten?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld installatiebewijzen vergeten?"+ }+ }+ }+ }+ },+ "pl" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Zapomnieć %lld potwierdzenia?"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Zapomnieć %lld potwierdzeń?"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Zapomnieć %lld potwierdzenie?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Zapomnieć %lld potwierdzenia?"+ }+ }+ }+ }+ },+ "pt" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Esquecer %lld de recibos?"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Esquecer %lld recibo?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Esquecer %lld recibos?"+ }+ }+ }+ }+ },+ "ro" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Uitați %lld recipise?"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Uitați %lld recipisă?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Uitați %lld de recipise?"+ }+ }+ }+ }+ },+ "ru" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Забыть %lld квитанции?"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Забыть %lld квитанций?"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Забыть %lld квитанцию?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Забыть %lld квитанции?"+ }+ }+ }+ }+ },+ "sv" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vill du glömma %lld kvitto?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vill du glömma %lld kvitton?"+ }+ }+ }+ }+ },+ "tr" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld makbuz unutulsun mu?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld makbuz unutulsun mu?"+ }+ }+ }+ }+ },+ "uk" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Забути %lld квитанції?"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Забути %lld квитанцій?"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Забути %lld квитанцію?"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Забути %lld квитанції?"+ }+ }+ }+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "要移除%lld个回执吗?"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "要移除%lld份收據嗎?"+ }+ }+ }+ },"Forget the receipt of %@?" : {"localizations" : {"cs" : {@@ -142301,6 +142642,113 @@}}},+ "Receipt Only" : {+ "comment" : "The heading of the section of Package Receipts that lists packages macOS still counts as installed though nothing they installed is left. Title case, as a section heading.",+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Jen záznam o instalaci"+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nur Quittung"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Solo el recibo"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Reçu uniquement"+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Solo la ricevuta"+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "レシートのみ"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "수신 정보만 있음"+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Alleen installatiebewijs"+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Tylko potwierdzenie"+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Só o Recibo"+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Doar recipisa"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Только квитанция"+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bara kvitto"+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Yalnızca Makbuz"+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Лише квитанція"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "仅剩回执"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "僅剩收據"+ }+ }+ }+ },"Receipt only" : {"localizations" : {"cs" : {@@ -185200,6 +185648,113 @@}}},+ "Their receipts go to the Trash, so macOS no longer counts these packages as installed. Nothing they put on this Mac is left, and History can put the receipts back.\n\n%@" : {+ "comment" : "The message of the question before Forget All in Package Receipts. %@ is the list of the first packages, one per line.",+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Jejich záznamy o instalaci se přesunou do koše, takže systém macOS už nebude tyto balíčky považovat za nainstalované. Z toho, co do tohoto Macu umístily, už nic nezůstalo, a Historie může záznamy vrátit zpět.\n\n%@"+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Die Quittungen werden in den Papierkorb gelegt, sodass macOS diese Pakete nicht mehr als installiert betrachtet. Von dem, was sie auf diesem Mac abgelegt haben, ist nichts mehr da, und im Verlauf kannst du die Quittungen zurücklegen.\n\n%@"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Sus recibos van a la papelera, así que macOS deja de contar estos paquetes como instalados. No queda nada de lo que pusieron en este Mac, e Historial puede restaurar los recibos.\n\n%@"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Leurs reçus sont placés dans la corbeille : macOS ne considère donc plus ces paquets comme installés. Il ne reste rien de ce qu’ils ont placé sur ce Mac, et l’Historique peut remettre les reçus en place.\n\n%@"+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Le loro ricevute vanno nel Cestino, quindi macOS non considera più installati questi pacchetti. Di ciò che hanno messo su questo Mac non rimane nulla, e la Cronologia può ripristinare le ricevute.\n\n%@"+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "レシートはゴミ箱に入り、macOSはこれらのパッケージをインストール済みと見なさなくなります。これらのパッケージがこのMacに置いたものは何も残っておらず、レシートは履歴から戻すことができます。\n\n%@"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "각 패키지의 수신 정보가 휴지통으로 이동하므로 macOS는 더 이상 이 패키지들을 설치된 것으로 간주하지 않습니다. 이 패키지들이 이 Mac에 설치한 항목은 남아 있지 않으며, 기록에서 수신 정보를 되돌려 놓을 수 있습니다.\n\n%@"+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "De installatiebewijzen gaan naar de prullenmand, zodat macOS deze pakketten niet meer als geïnstalleerd beschouwt. Van wat ze op deze Mac hebben gezet, is niets meer over, en Geschiedenis kan de installatiebewijzen terugzetten.\n\n%@"+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ich potwierdzenia trafią do Kosza, więc macOS przestanie uznawać te pakiety za zainstalowane. Nie zostało nic z tego, co umieściły na tym Macu, a Historia może przywrócić te potwierdzenia.\n\n%@"+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Os recibos deles vão para o Lixo, então o macOS deixa de considerar estes pacotes como instalados. Não resta nada do que eles colocaram neste Mac, e o Histórico pode colocar os recibos de volta.\n\n%@"+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Recipisele lor sunt mutate în Coș, astfel încât macOS nu mai consideră aceste pachete instalate. Din ce au pus pe acest Mac nu a mai rămas nimic, iar recipisele le puteți pune înapoi din Istoric.\n\n%@"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Их квитанции перемещаются в Корзину, и macOS больше не считает эти пакеты установленными. От того, что они поместили на этот Mac, ничего не осталось, а История может восстановить квитанции.\n\n%@"+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Kvittona flyttas till papperskorgen, så macOS räknar inte längre de här paketen som installerade. Inget av det som paketen har placerat på den här datorn finns kvar, och Historik kan lägga tillbaka kvittona.\n\n%@"+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Makbuzları Çöp Sepeti’ne gider, böylece macOS bu paketleri artık yüklü saymaz. Paketlerin bu Mac’e koyduğu şeylerden hiçbiri kalmamış ve Geçmiş makbuzları yerine koyabilir.\n\n%@"+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Їхні квитанції буде переміщено в Смітник, тож macOS більше не вважатиме ці пакети інстальованими. З того, що вони записали на цей Mac, нічого не лишилося, а Історія зможе повернути квитанції.\n\n%@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "它们的回执会移到废纸篓,这样macOS就不再将这些软件包视为已安装。它们放到这台Mac上的内容已全部不在了,“历史记录”可以将这些回执放回原处。\n\n%@"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "它們的收據會丟到「垃圾桶」,macOS就不再將這些套件視為已安裝。它們放在這部Mac上的內容已全部不在,「歷史記錄」可以將收據還原。\n\n%@"+ }+ }+ }+ },"Theme in Use" : {"localizations" : {"cs" : {@@ -223208,6 +223763,347 @@}}},+ "^[%lld package](inflect: true)" : {+ "comment" : "The count beside the Receipt Only heading in Package Receipts.",+ "localizations" : {+ "cs" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld balíčky"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld balíčku"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld balíček"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld balíčků"+ }+ }+ }+ }+ },+ "de" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld Paket"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld Pakete"+ }+ }+ }+ }+ },+ "es" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld de paquetes"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld paquete"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld paquetes"+ }+ }+ }+ }+ },+ "fr" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld de paquets"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld paquet"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld paquets"+ }+ }+ }+ }+ },+ "it" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld di pacchetti"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pacchetto"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pacchetti"+ }+ }+ }+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld個のパッケージ"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "패키지 %lld개"+ }+ },+ "nl" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pakket"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pakketten"+ }+ }+ }+ }+ },+ "pl" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pakiety"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pakietów"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pakiet"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pakietu"+ }+ }+ }+ }+ },+ "pt" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld de pacotes"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pacote"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pacotes"+ }+ }+ }+ }+ },+ "ro" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pachete"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pachet"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld de pachete"+ }+ }+ }+ }+ },+ "ru" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld пакета"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld пакетов"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld пакет"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld пакета"+ }+ }+ }+ }+ },+ "sv" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld paket"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld paket"+ }+ }+ }+ }+ },+ "tr" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld paket"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld paket"+ }+ }+ }+ }+ },+ "uk" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld пакети"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld пакетів"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld пакет"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld пакета"+ }+ }+ }+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld个软件包"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld個套件"+ }+ }+ }+ },"^[%lld package](inflect: true)." : {"localizations" : {"cs" : {@@ -224568,6 +225464,347 @@}}},+ "^[%lld receipt](inflect: true)" : {+ "comment" : "How History names a removal of several package receipts forgotten at once, such as 5 receipts.",+ "localizations" : {+ "cs" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld záznamy o instalaci"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld záznamu o instalaci"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld záznam o instalaci"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld záznamů o instalaci"+ }+ }+ }+ }+ },+ "de" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld Quittung"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld Quittungen"+ }+ }+ }+ }+ },+ "es" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld de recibos"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld recibo"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld recibos"+ }+ }+ }+ }+ },+ "fr" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld de reçus"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld reçu"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld reçus"+ }+ }+ }+ }+ },+ "it" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld di ricevute"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld ricevuta"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld ricevute"+ }+ }+ }+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld個のレシート"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "수신 정보 %lld개"+ }+ },+ "nl" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld installatiebewijs"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld installatiebewijzen"+ }+ }+ }+ }+ },+ "pl" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld potwierdzenia"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld potwierdzeń"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld potwierdzenie"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld potwierdzenia"+ }+ }+ }+ }+ },+ "pt" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld de recibos"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld recibo"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld recibos"+ }+ }+ }+ }+ },+ "ro" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld recipise"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld recipisă"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld de recipise"+ }+ }+ }+ }+ },+ "ru" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld квитанции"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld квитанций"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld квитанция"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld квитанции"+ }+ }+ }+ }+ },+ "sv" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld kvitto"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld kvitton"+ }+ }+ }+ }+ },+ "tr" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld makbuz"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld makbuz"+ }+ }+ }+ }+ },+ "uk" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld квитанції"+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld квитанцій"+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld квитанція"+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld квитанції"+ }+ }+ }+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld个回执"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld份收據"+ }+ }+ }+ },"^[%lld removal](inflect: true)." : {"localizations" : {"cs" : {@@ -234503,6 +235740,113 @@}}},+ "macOS still counts these packages as installed, but nothing they put on this Mac is left. Forgetting their receipts moves them to the Trash, and History can put them back." : {+ "comment" : "The note behind the circled i of the Receipt Only heading in Package Receipts.",+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Systém macOS tyto balíčky stále považuje za nainstalované, ale z toho, co do tohoto Macu umístily, nic nezůstalo. Když jejich záznamy o instalaci zapomenete, přesunou se do koše a Historie je může vrátit zpět."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS betrachtet diese Pakete noch als installiert, aber nichts von dem, was sie auf diesem Mac abgelegt haben, ist noch da. Das Vergessen ihrer Quittungen legt diese in den Papierkorb, und im Verlauf kannst du sie zurücklegen."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS sigue contando estos paquetes como instalados, pero no queda nada de lo que pusieron en este Mac. Olvidar sus recibos los traslada a la papelera, e Historial puede restaurarlos."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS considère toujours ces paquets comme installés, mais il ne reste rien de ce qu’ils ont placé sur ce Mac. Oublier leurs reçus les place dans la corbeille, et l’Historique peut les remettre en place."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS considera ancora installati questi pacchetti, ma di ciò che hanno messo su questo Mac non rimane nulla. Dimenticare le loro ricevute le sposta nel Cestino, e la Cronologia può ripristinarle."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOSはこれらのパッケージをまだインストール済みと見なしていますが、これらのパッケージがこのMacに置いたものは何も残っていません。レシートをゴミ箱に入れても、履歴から戻すことができます。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS는 이 패키지들을 아직 설치된 것으로 간주하지만, 이 패키지들이 이 Mac에 설치한 항목은 남아 있지 않습니다. 수신 정보를 제거하면 휴지통으로 이동하며, 기록에서 되돌려 놓을 수 있습니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS beschouwt deze pakketten nog als geïnstalleerd, maar van wat ze op deze Mac hebben gezet, is niets meer over. Als je de installatiebewijzen ervan vergeet, worden ze naar de prullenmand verplaatst, en Geschiedenis kan ze terugzetten."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS nadal uznaje te pakiety za zainstalowane, ale nie zostało nic z tego, co umieściły na tym Macu. Zapomnienie ich potwierdzeń przenosi je do Kosza, a Historia może je przywrócić."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O macOS ainda considera estes pacotes como instalados, mas não resta nada do que eles colocaram neste Mac. Esquecer os recibos deles os move para o Lixo, e o Histórico pode colocá-los de volta."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS consideră în continuare aceste pachete instalate, dar din ce au pus pe acest Mac nu a mai rămas nimic. Dacă le uitați recipisele, acestea sunt mutate în Coș și le puteți pune înapoi din Istoric."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS по-прежнему считает эти пакеты установленными, но от того, что они поместили на этот Mac, ничего не осталось. Если забыть их квитанции, они переместятся в Корзину, и История сможет их восстановить."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS räknar fortfarande de här paketen som installerade, men inget av det som de har placerat på den här datorn finns kvar. Om du glömmer deras kvitton flyttas kvittona till papperskorgen, och Historik kan lägga tillbaka dem."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS bu paketleri hâlâ yüklü sayıyor ama paketlerin bu Mac’e koyduğu şeylerden hiçbiri kalmamış. Makbuzlarını unutmak onları Çöp Sepeti’ne taşır ve Geçmiş onları yerine koyabilir."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS досі вважає ці пакети інстальованими, але з того, що вони записали на цей Mac, нічого не лишилося. Якщо забути їхні квитанції, їх буде переміщено в Смітник, а Історія зможе їх повернути."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS仍将这些软件包视为已安装,但它们放到这台Mac上的内容已全部不在了。移除它们的回执会将回执移到废纸篓,“历史记录”可以将其放回原处。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "macOS仍將這些套件視為已安裝,但它們放在這部Mac上的內容已全部不在。移除它們的收據會將收據丟到「垃圾桶」,「歷史記錄」可以將收據還原。"+ }+ }+ }+ },"macOS still counts this package as installed, but nothing it put on disk is left." : {"localizations" : {"cs" : {diff --git a/Packages/PeelCore/Sources/PeelCore/Packages/PackageActions.swift b/Packages/PeelCore/Sources/PeelCore/Packages/PackageActions.swiftindex 93f3016d..d9379d46 100644--- a/Packages/PeelCore/Sources/PeelCore/Packages/PackageActions.swift+++ b/Packages/PeelCore/Sources/PeelCore/Packages/PackageActions.swift@@ -42,22 +42,36 @@ public enum PackageActions {/// what the package installed. Files the package installed stay where they are.@concurrentpublic static func forget(_ receipt: PackageReceipt, exclusions: Exclusions = .none) async -> TrashResult {- await forget(receipt, through: TrashService(exclusions: exclusions))+ await forget([receipt], through: TrashService(exclusions: exclusions))}- static func forget(_ receipt: PackageReceipt, through service: TrashService) async -> TrashResult {- let files = receiptFiles(of: receipt.identifier, onVolume: receipt.volume)- guard !receipt.installedAppIsExcluded else {- return TrashResult(failures: files.map { TrashFailure(url: $0, reason: .guarded(.excluded)) })- }- guard !files.isEmpty else {- // Named by the file macOS would keep, so the failure says which receipt rather than which disk. With the- // folder there, the receipt was forgotten some other way since Peel read it.- let folder = receiptsFolder(onVolume: receipt.volume)- let missing = folder.appending(path: receipt.identifier + ".plist")- let why = folder.isRealFolder ? Self.forgottenReceipt : Self.misplacedReceipt- return TrashResult(failures: [TrashFailure(url: missing, reason: .failed(why))])+ /// Forgets several receipts in one removal, which History records as one.+ @concurrent+ public static func forget(_ receipts: [PackageReceipt], exclusions: Exclusions = .none) async -> TrashResult {+ await forget(receipts, through: TrashService(exclusions: exclusions))+ }++ static func forget(_ receipts: [PackageReceipt], through service: TrashService) async -> TrashResult {+ var files: [URL] = []+ var refused: [TrashFailure] = []+ for receipt in receipts {+ let own = receiptFiles(of: receipt.identifier, onVolume: receipt.volume)+ if receipt.installedAppIsExcluded {+ refused += own.map { TrashFailure(url: $0, reason: .guarded(.excluded)) }+ } else if own.isEmpty {+ // Named by the file macOS would keep, so the failure says which receipt rather than which disk. With+ // the folder there, the receipt was forgotten some other way since Peel read it.+ let folder = receiptsFolder(onVolume: receipt.volume)+ let missing = folder.appending(path: receipt.identifier + ".plist")+ let why = folder.isRealFolder ? Self.forgottenReceipt : Self.misplacedReceipt+ refused.append(TrashFailure(url: missing, reason: .failed(why)))+ } else {+ files += own+ }}- return await service.trash(files, usingHelperFor: Set(files))+ guard !files.isEmpty else { return TrashResult(failures: refused) }+ var result = await service.trash(files, usingHelperFor: Set(files))+ result.failures += refused+ return result}}diff --git a/Packages/PeelCore/Tests/PeelCoreTests/PackageActionsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/PackageActionsTests.swiftindex 71f861c3..41c681d9 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/PackageActionsTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/PackageActionsTests.swift@@ -85,13 +85,42 @@ struct PackageActionsTests {moveToTrash: { _ in throw CocoaError(.fileWriteNoPermission) })- let result = await PackageActions.forget(receipt("com.example.tool", on: directory.url), through: service)+ let result = await PackageActions.forget([receipt("com.example.tool", on: directory.url)], through: service)#expect(asked.withLock { $0 }.sorted() == ["com.example.tool.bom", "com.example.tool.plist"])#expect(result.trashed.count == 2, "History needs both, or the receipt cannot be put back whole")#expect(result.failures.isEmpty)}+ @Test func forgetsSeveralReceiptsInOneRemoval() async throws {+ let directory = try TemporaryDirectory()+ for name in ["com.example.one", "com.example.two"] {+ try directory.file("private/var/db/receipts/\(name).bom")+ try directory.file("private/var/db/receipts/\(name).plist")+ }+ let requests = Mutex<[[String]]>([])+ let service = TrashService(+ environment: SearchEnvironment(+ homeDirectory: directory.url.appending(path: "home"),+ rootDirectory: directory.url+ ),+ moveThroughHelper: { urls in+ requests.withLock { $0.append(urls.map(\.lastPathComponent).sorted()) }+ return TrashResult(trashed: urls.map { TrashedItem(originalURL: $0, trashedURL: $0, date: .now) })+ },+ moveToTrash: { _ in throw CocoaError(.fileWriteNoPermission) }+ )+ let receipts = ["com.example.one", "com.example.gone", "com.example.two"].map { receipt($0, on: directory.url) }++ let result = await PackageActions.forget(receipts, through: service)++ #expect(requests.withLock { $0 } == [[+ "com.example.one.bom", "com.example.one.plist", "com.example.two.bom", "com.example.two.plist",+ ]])+ #expect(result.trashed.count == 4)+ #expect(result.failures.map(\.url.lastPathComponent) == ["com.example.gone.plist"])+ }+/// A receipt that is not there is a failure the user is told about, not a silent success, and it names the/// receipt rather than the disk it was looked for on.@Test func aReceiptThatIsNotThereIsAFailure() async throws {@@ -104,14 +133,14 @@ struct PackageActionsTests {moveToTrash: { _ in throw CocoaError(.fileWriteNoPermission) })- let result = await PackageActions.forget(receipt("com.example.gone", on: directory.url), through: service)+ let result = await PackageActions.forget([receipt("com.example.gone", on: directory.url)], through: service)#expect(result.trashed.isEmpty)#expect(result.failures.map(\.url.lastPathComponent) == ["com.example.gone.plist"])#expect(result.failures.map(\.reason) == [.failed(PackageActions.misplacedReceipt)])try directory.directory("private/var/db/receipts")- let forgotten = await PackageActions.forget(receipt("com.example.gone", on: directory.url), through: service)+ let forgotten = await PackageActions.forget([receipt("com.example.gone", on: directory.url)], through: service)#expect(forgotten.failures.map(\.reason) == [.failed(PackageActions.forgottenReceipt)], "it was forgotten already")}}diff --git a/Peel/Model/PackageLibrary.swift b/Peel/Model/PackageLibrary.swiftindex 5067f175..ab68f0fa 100644--- a/Peel/Model/PackageLibrary.swift+++ b/Peel/Model/PackageLibrary.swift@@ -73,6 +73,25 @@ final class PackageLibrary {return result}+ func forget(_ receipts: [PackageReceipt], recording record: (TrashResult) async -> Void) async -> TrashResult {+ isWorking = true+ defer { isWorking = false }+ let result = await QuitGuard.shared.run {+ let result = await PackageActions.forget(receipts, exclusions: ExclusionsStore.shared.exclusions)+ await record(result)+ return result+ }+ await refresh()+ return result+ }++ /// How History names a removal of `receipts`: by their identifiers, or by how many there are past three.+ static func source(of receipts: [PackageReceipt]) -> (source: String, key: String?) {+ guard receipts.count > 3 else { return (receipts.map(\.identifier).joined(separator: ", "), nil) }+ let count = AttributedString(localized: "^[\(receipts.count) receipt](inflect: true)", locale: Locale(identifier: "en"))+ return (String(count.characters), "receipts.\(receipts.count)")+ }+func forget(_ receipt: PackageReceipt, recording record: (TrashResult) async -> Void) async -> TrashResult {isWorking = truedefer { isWorking = false }diff --git a/Peel/Model/RemovalHistoryStore.swift b/Peel/Model/RemovalHistoryStore.swiftindex 0f8e3286..5455c72e 100644--- a/Peel/Model/RemovalHistoryStore.swift+++ b/Peel/Model/RemovalHistoryStore.swift@@ -64,6 +64,9 @@ nonisolated struct RemovalBatch: Identifiable, Hashable {if key.hasPrefix("casks."), let count = Int(key.dropFirst("casks.".count)) {return String(inflecting: "^[\(count) cask](inflect: true)")}+ if key.hasPrefix("receipts."), let count = Int(key.dropFirst("receipts.".count)) {+ return String(inflecting: "^[\(count) receipt](inflect: true)")+ }if key.hasPrefix("reset.") {return String(localized: "Reset of \(String(key.dropFirst("reset.".count)))")}diff --git a/Peel/Views/Packages/ForgetReceiptDialog.swift b/Peel/Views/Packages/ForgetReceiptDialog.swiftindex 466aa3af..0c4933a4 100644--- a/Peel/Views/Packages/ForgetReceiptDialog.swift+++ b/Peel/Views/Packages/ForgetReceiptDialog.swift@@ -59,3 +59,49 @@ extension View {modifier(ForgetReceiptDialog(receipt: receipt, forget: forget))}}++/// The question before forgetting every receipt of the Receipt Only section at once, recorded as one removal.+struct ForgetReceiptsDialog: ViewModifier {+ @Environment(PackageLibrary.self) private var packages+ @Environment(RemovalHistoryStore.self) private var history+ @Environment(RemovalOutcome.self) private var outcome+ @Binding var receipts: [PackageReceipt]?++ func body(content: Content) -> some View {+ content+ .confirmationDialog(title, isPresented: isAsking, presenting: receipts) { receipts in+ Button("Forget All") { forget(receipts) }+ Button("Cancel", role: .cancel) {}+ } message: { receipts in+ Text("Their receipts go to the Trash, so macOS no longer counts these packages as installed. Nothing they put on this Mac is left, and History can put the receipts back.\n\n\(RemovalFailureAlert.firstItems(receipts.map { $0.name ?? $0.identifier }).joined(separator: "\n"))")+ }+ }++ private var title: Text {+ Text(verbatim: String(inflecting: "Forget ^[\(receipts?.count ?? 0) receipt](inflect: true)?"))+ }++ private var isAsking: Binding<Bool> {+ Binding(get: { receipts != nil }, set: { if !$0 { receipts = nil } })+ }++ private func forget(_ receipts: [PackageReceipt]) {+ Task {+ let result = await packages.forget(receipts) { result in+ var sizes: [URL: Int64] = [:]+ for item in result.trashed {+ sizes[item.originalURL] = await FileSize.reclaimableSize(of: item.trashedURL)+ }+ let named = PackageLibrary.source(of: receipts)+ await history.record(result, tool: .packages, source: named.source, sourceKey: named.key, sizes: sizes)+ }+ outcome.report(result)+ }+ }+}++extension View {+ func forgetReceiptsDialog(for receipts: Binding<[PackageReceipt]?>) -> some View {+ modifier(ForgetReceiptsDialog(receipts: receipts))+ }+}diff --git a/Peel/Views/Packages/PackageList.swift b/Peel/Views/Packages/PackageList.swiftindex ea0c3704..16a4f303 100644--- a/Peel/Views/Packages/PackageList.swift+++ b/Peel/Views/Packages/PackageList.swift@@ -4,46 +4,47 @@ import SwiftUIstruct PackageList: View {@Environment(PackageLibrary.self) private var packages@Environment(RemovalHistoryStore.self) private var history+ @Environment(HelperModel.self) private var helper@State private var searchText = ""@State private var isRescanning = false+ @State private var receiptsToForget: [PackageReceipt]?var body: some View {@Bindable var packages = packageslet filtered = filteredReceipts+ let receiptsOnly = filtered.filter(\.nothingLeftOnDisk)- List(filtered, selection: $packages.selection) { receipt in- HStack(spacing: 6) {- VStack(alignment: .leading, spacing: 2) {- Text(receipt.identifier)- .lineLimit(1)- .truncationMode(.middle)- HStack(spacing: 6) {- if let name = receipt.name {- Text(verbatim: name)- }- if receipt.nothingLeftOnDisk {- Text("Receipt only")- } else if !receipt.installedApps.isEmpty {- Text("Still installed")- } else if receipt.holdsNothingToRemove {- Text("Nothing Peel moves")- }- if let version = receipt.version {- Text(verbatim: version)+ List(selection: $packages.selection) {+ if !receiptsOnly.isEmpty {+ Section {+ ForEach(receiptsOnly) { row(for: $0) }+ } header: {+ SectionHeaderLine {+ heading(+ "Receipt Only",+ "macOS still counts these packages as installed, but nothing they put on this Mac is left. Forgetting their receipts moves them to the Trash, and History can put them back."+ )+ } count: {+ Text("^[\(receiptsOnly.count) package](inflect: true)")+ .font(.caption)+ .foregroundStyle(.secondary)+ } actions: {+ Button { receiptsToForget = receiptsOnly } label: {+ Text("Forget All")+ .minimumTarget()}+ .buttonStyle(.borderless)+ .disabled(packages.isWorking || !helper.canAct || !history.mayMove)+ .help(forgetAllHelp)}- .font(.caption)- .foregroundStyle(.secondary)- }- Spacer(minLength: 6)- if !receipt.nothingLeftOnDisk, !receipt.holdsNothingToRemove {- Text(receipt.movable.text)- .rowFigure()}}- .padding(.vertical, 2)+ Section {+ ForEach(filtered.filter { !$0.nothingLeftOnDisk }) { row(for: $0) }+ }}.accessibilityLabel(Text(Tool.packages.title))+ .forgetReceiptsDialog(for: $receiptsToForget).scanState(phase(filtered), isRescanning: isRescanning, scan: packages.scanRun) {if packages.couldNotAsk {ContentUnavailableView(@@ -103,6 +104,47 @@ struct PackageList: View {return .content}+ private func row(for receipt: PackageReceipt) -> some View {+ HStack(spacing: 6) {+ VStack(alignment: .leading, spacing: 2) {+ Text(receipt.identifier)+ .lineLimit(1)+ .truncationMode(.middle)+ HStack(spacing: 6) {+ if let name = receipt.name {+ Text(verbatim: name)+ }+ if receipt.nothingLeftOnDisk {+ Text("Receipt only")+ } else if !receipt.installedApps.isEmpty {+ Text("Still installed")+ } else if receipt.holdsNothingToRemove {+ Text("Nothing Peel moves")+ }+ if let version = receipt.version {+ Text(verbatim: version)+ }+ }+ .font(.caption)+ .foregroundStyle(.secondary)+ }+ Spacer(minLength: 6)+ if !receipt.nothingLeftOnDisk, !receipt.holdsNothingToRemove {+ Text(receipt.movable.text)+ .rowFigure()+ }+ }+ .padding(.vertical, 2)+ .tag(receipt.id)+ }++ private var forgetAllHelp: Text {+ guard helper.canAct else {+ return Text(helper.standing.whyItCannotAct(registeredByAnotherCopy: helper.isRegisteredByAnotherCopy))+ }+ return Text(verbatim: history.holdingReason?.explanation ?? "")+ }+private var filteredReceipts: [PackageReceipt] {let receipts = packages.receipts ?? []guard !searchText.isEmpty else { return receipts }diff --git a/PeelTests/HistoryTitleTests.swift b/PeelTests/HistoryTitleTests.swiftindex f44e9808..5a96b3ac 100644--- a/PeelTests/HistoryTitleTests.swift+++ b/PeelTests/HistoryTitleTests.swift@@ -1,10 +1,26 @@import Foundation@testable import Peel-import PeelCore+@testable import PeelCoreimport Testing@MainActorstruct HistoryTitleTests {+ @Test func namesSeveralForgottenReceiptsByHowManyThereAre() {+ let receipt = { (identifier: String) in+ PackageReceipt(+ identifier: identifier, version: nil, installDate: nil, volume: URL(filePath: "/"), items: [],+ nothingLeftOnDisk: true+ )+ }+ let few = ["org.example.one", "org.example.two"].map(receipt)+ let many = (1...5).map { receipt("org.example.p\($0)") }++ #expect(PackageLibrary.source(of: few) == ("org.example.one, org.example.two", nil))+ #expect(PackageLibrary.source(of: many) == ("5 receipts", "receipts.5"))+ #expect(RemovalBatch.title(source: "written before", key: "receipts.5", tool: .packages)+ == String(inflecting: "^[\(5) receipt](inflect: true)"))+ }+@Test func namesTheFirstPagesOfALongRemovalAndFindsItByAnyOfThem() async throws {let folder = FileManager.default.temporaryDirectory.appending(path: "PeelTests-\(UUID().uuidString)")defer { try? FileManager.default.removeItem(at: folder) }