Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Keep BBEdit's notes, Scratchpad and unsaved documents unselected

Țugui Dragoș1de9f2691829
diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
index 5e8ee3bc..b0696356 100644
--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
@@ -244,6 +244,11 @@ enum KeptOnlyHere {
("Library/Application Support/MongoDB Compass", "DataModelDescriptions", .holdsWorkMadeWithTheApp),
// Proxyman's "Lost data after updating Proxyman app?": its debugging rules, settings, and their backups.
("Library/Application Support/com.proxyman.NSProxy", nil, .holdsWorkMadeWithTheApp),
+ // BBEdit's User Manual: its notes, Scratchpad, and worksheet in its application support folder, and the
+ // unsaved documents in `Auto-Save Recovery` in its settings folder, in its container or in `~/Library/BBEdit`.
+ ("Library/Application Support/BBEdit", nil, .holdsWorkMadeWithTheApp),
+ ("Library/BBEdit", "Auto-Save Recovery", .holdsWorkMadeWithTheApp),
+ ("Library/Containers/com.barebones.bbedit", nil, .holdsWorkMadeWithTheApp),
]
/// The same, in the Library every account on the Mac shares.
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
index 6a2628e2..4b4b8114 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
@@ -122,6 +122,11 @@ struct KeptOnlyHereTests {
("Library/Application Support/MongoDB Compass/DataModelDescriptions/1a2b.json", .holdsWorkMadeWithTheApp),
("Library/Application Support/com.proxyman.NSProxy", .holdsWorkMadeWithTheApp),
("Library/Application Support/com.proxyman.NSProxy/user-data-backups/a.zip", .holdsWorkMadeWithTheApp),
+ ("Library/Application Support/BBEdit", .holdsWorkMadeWithTheApp),
+ ("Library/Application Support/BBEdit/Notes.bbnotebookd", .holdsWorkMadeWithTheApp),
+ ("Library/BBEdit", .holdsWorkMadeWithTheApp),
+ ("Library/BBEdit/Auto-Save Recovery/a.bbautosave", .holdsWorkMadeWithTheApp),
+ ("Library/Containers/com.barebones.bbedit", .holdsWorkMadeWithTheApp),
("Library/Application Support/Tunnelblick/Configurations/work.tblk", .holdsVPNConnections),
("Library/Application Support/Viscosity", .holdsVPNConnections),
("Library/Application Support/Steam", .holdsWorkMadeWithTheApp),
@@ -189,6 +194,7 @@ struct KeptOnlyHereTests {
".config/configstore/update-notifier-npm.json", "Library/Application Support/ngrok/logs",
"Library/Preferences/com.carriez.RustDesk.plist", "Library/Application Support/MongoDB Compass/Cache",
"Library/Containers/com.sequel-ace.sequel-ace/Data/Library/Caches",
+ "Library/BBEdit/Document State.plist",
"Library/Application Support/Dolphin/Cache", "Library/Application Support/Dolphin/Logs",
"Library/Containers/com.microsoft.Word/Data/Library/Caches",
"Library/Containers/com.microsoft.Excel/Data/Library/Preferences",