Add File menu autosave toggle#412
Conversation
|
Thanks, @yusufm! Wiring a File-menu Auto Save toggle to the existing Generated by Claude Code |
Adds an **Auto Save** toggle to the File menu, wired to the existing `editorAutoSave` preference (used by `MPDocument.autosavesInPlace`), with standard menu-item validation keeping it checked/unchecked. This is @yusufm's work from #412, rebased onto current `main` to resolve a conflict in `MPDocumentIOTests.m` (both that PR and a since-merged change added a method declaration to the same test category interface — both are kept). The original commit and authorship are preserved. Supersedes #412 (which targets a fork branch that can't be updated here). Related to #301. https://claude.ai/code/session_0137UcTVyFufiiUXv2mtDPpj --- _Generated by [Claude Code](https://claude.ai/code/session_0137UcTVyFufiiUXv2mtDPpj)_ Co-authored-by: Yusuf Mohsinally <[email protected]>
|
Thanks again, @yusufm! This had drifted into a merge conflict with Closing in favor of #459 — the change (File menu Auto Save toggle) is now in Generated by Claude Code |
Summary
editorAutoSavepreference used byMPDocument.autosavesInPlaceRoot cause
Autosave could already be disabled through preferences, but there was no fast document-menu control for users who want prompt-on-close behavior after disabling autosave.
Validation
ibtool --warnings --errors --notices MacDown/Localization/Base.lproj/MainMenu.xibxcodebuild test -workspace 'MacDown 3000.xcworkspace' -scheme MacDown -destination 'platform=macOS' -only-testing:MacDownTests/MPDocumentIOTests/testAutosavesInPlaceRespectsPreference -only-testing:MacDownTests/MPDocumentIOTests/testToggleAutoSaveActionUpdatesPreference -only-testing:MacDownTests/MPDocumentIOTests/testToggleAutoSaveMenuValidationReflectsPreferenceRelated to #301