Add TrueSave - #28
Open
pandas9 wants to merge 4 commits into
Open
Conversation
Contributor
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.

Adds
extensions/markedit-true-save.json.TrueSave — https://github.com/pandas9/MarkEdit-TrueSave
MarkEdit's
editor.autoSaveWhenIdledeliberately skips documents without afileURL:So a brand-new note is the one thing MarkEdit never autosaves — and with
editor.closeAlwaysConfirmsChangesoff, closing that window discards it silently.While a document is untitled, TrueSave mirrors its text to
<folder>/Untitled-<date>-<time>.mda few seconds after you stop typing, reusing thesame file for the life of the window. It's a safety net, not a rename: the window
still reads
Untitled, and once the document has a realfileURLthe extensionstops and the built-in autosave takes over.
It deliberately does not try to turn the document into that file.
openFileroutes through
NSWorkspace/LaunchServices (so it would need MarkEdit to be thedefault
.mdhandler) andsaveDocumentopens a modal panel on an untitleddocument. Neither is silent, so TrueSave stays out of the document's identity.
Configurable via
settings.json:trueSave.folder(default~/Documents) andtrueSave.delay(default3000).minAppVersionis1.29.0, the first release tag containinggetDirectoryPath,the newest API it uses.
urlpoints at thev1.1.0tag.node scripts/build.mjspasses locally (schema + fetch + hash check).