This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Repository navigation
feat(notes,web): a note link that survives a moved or deleted note - #9
Merged
Merged
Conversation
Every new note's frontmatter holds read_item: /read/item/<id>. The new items.noteStatus asks notes within 5 seconds: present at note_path, else a note with the marker (list_notes property filter), else a note under Reading/ that holds the item's link (at most 50 read). A moved note records its new path; a missing one clears note_path; notes out of reach keeps it and reports the error. The reader asks when it opens an item and when the owner clicks Open in Notes: a missing note turns the button back into Save as note, a moved one opens its new path, and an unreachable notes keeps the link with an error line. readctl gains note-status.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Brian asked on 2026-10-21: when the note an item links to is gone, the reader shows Save as note again; when it was renamed or moved, Open in Notes finds it; when notes cannot be reached, show an error and keep the link.
read_item: /read/item/<id>in their frontmatter.items.noteStatus{id}(5 s):read_noteat the path →present; elselist_notesby theread_itemproperty →moved(path updated); else the first 50 notes underReading/are checked for the item's/read/item/<id>link (notes written before the marker) →moved; elsemissing(path cleared). A transport, auth or protocol error or the timeout →unreachable, path kept.Reading/; a note whose marker and link were edited away; an old note beyond the first 50 underReading/. The spec says so.readctl note-status <id>.make dev-lodge: delete → Save as note; rename → opens the renamed note; move to another folder → found; notesd stopped → error line, link kept.After merge: redeploy to lodge's host and check the deleted test note's item.
Gates:
make check,make web-check(57 tests),make web-build.