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
Say that Option as Meta and the bell change the Peel theme in use
Țugui Dragoș4ae5d6089ce9
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/TerminalThemeLedgerTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/TerminalThemeLedgerTests.swiftindex c8cc21bd..709e0c84 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/TerminalThemeLedgerTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/TerminalThemeLedgerTests.swift@@ -306,6 +306,19 @@ struct TerminalOptionTests {#expect(terminal.storedProfiles[theme.profileName] != nil)}+ @Test func anOptionChangesAPeelThemeInUseThatPeelNeverWrote() throws {+ let terminal = InMemoryTerminalSettings()+ terminal.storedProfiles[theme.profileName] = ["name": theme.profileName, "columnCount": 80]+ terminal.names[.newWindows] = theme.profileName+ var ledger = TerminalThemeLedger()++ #expect(ledger.set(.optionAsMeta, to: true, in: terminal) == .changed)+ #expect(terminal.storedProfiles[theme.profileName]?["useOptionAsMetaKey"] as? Bool == true)+ #expect(terminal.storedProfiles[theme.profileName]?["columnCount"] as? Int == 80)+ _ = ledger.putBack(in: terminal)+ #expect(terminal.storedProfiles[theme.profileName] != nil, "Put Back took away a profile Peel never wrote")+ }+@Test func theOptionsBelongToPeelsThemesAlone() throws {let terminal = InMemoryTerminalSettings()var ledger = TerminalThemeLedger()diff --git a/SAFETY.md b/SAFETY.mdindex 3aa40a2c..b9addfc5 100644--- a/SAFETY.md+++ b/SAFETY.md@@ -353,9 +353,11 @@ among those: BlueWallet keeps its wallet in its container's caches.The Terminal page changes Terminal's own preferences and nothing else there: it adds Peel's themes as profiles oftheir own, named "Peel" and the theme's name, chooses the profile Terminal opens with, sets Option as Meta and the-bell in the Peel theme in use, and can keep Terminal from reopening its windows. It never changes or removes a-profile it did not write, or one you changed since. Put Back gives Terminal the profiles it used before and takes-away only Peel's own, still as Peel wrote them. Peel writes none of this while Terminal is open, since Terminal+bell in the Peel theme in use, and can keep Terminal from reopening its windows. Choosing a theme never changes or+removes a profile it did not write, or one you changed since. Option as Meta and the bell are the one exception,+since you ask for them: like Terminal's own settings, they change the Peel theme Terminal opens with, whoever wrote+it and whatever you changed in it. Put Back gives Terminal the profiles it used before and takes away only Peel's+own, still as Peel wrote them. Peel writes none of this while Terminal is open, since Terminalwould not see the change and would write its own settings over it, but for the switch that keeps Terminal fromreopening its windows: Terminal reads that one, `NSQuitAlwaysKeepsWindows`, only when it quits, so Peel sets it atonce and it takes effect the next time Terminal quits.