Repository navigation
feat: auto-save to disk by default; Reload finds the file itself; × on every tab - #84
Merged
Merged
Conversation
…n every tab - Auto-save to disk (on by default, toggle in the toolbar and palette): an edit to a file from disk is written to it as you type, a file is read from disk again when opened, and a change synced from another device is written to the file unless the file changed on disk meanwhile. Off is the old keep-a-copy-until-Ctrl+S way. - Reload on a file with no disk link searches for it (remembered paths, then ~/Desktop, ~/Documents, ~/Downloads, ~, then a bounded walk of home, newest match) instead of asking; the dialog is only the last resort. Launch re-linking still uses remembered paths only, so a note made in readm3 is never tied to an unrelated file. - The tab × shows even on a single tab; closing the last tab opens another file. - desktop/package.json version follows readm3's (the build stamps it anyway). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Anthony after 0.29.0: Reload made him pick the file's location ("why do i have to pick the location when you already know it?"); reading and writing straight to disk should be the default, with the local copy optional; and the tab × had disappeared.
find-opened(paths, search)searches only when Reload asks: first the paths the app remembers opening, then ~/Desktop, ~/Documents, ~/Downloads, ~, ~/src and ~/notes, then a walk of the home folder capped at 4 s, depth 6 and 50k folders. With several matches it takes the newest. The dialog only opens if nothing is found. The automatic re-link at launch still uses remembered paths only, so a note made in readm3 never gets tied to some other file with the same name.Tests: a new spec for auto-save to disk, re-read on open, and the × on a single tab. The Ctrl+S spec now runs with auto-save off. 13 disk, desktop and tab specs pass when run one at a time, and the unit tests pass.
Version 0.30.0. desktop/package.json now matches; the build stamps readm3's version into the app anyway.
🤖 Generated with Claude Code