NEC-285: Sync Markdown Links doesn't work #295
No reviewers
Labels
No labels
area:docs
area:identity
area:ops
area:plugin
area:server
channel:community
channel:direct
channel:owned
channel:press
channel:social
e2ee-constrained
gate:at-ga
gate:pre-ga
marketing
parity
relay:absent
relay:planned
relay:requested
relay:supported
risk:additive
risk:contract
risk:none
usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Nectenda/nectenda!295
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-nec-285-sync-markdown-links-doesnt-work"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task: NEC-285 — https://projectron.nerchure.com/tasks/298
A link or embed written in one vault names a file by a path that includes that vault's local name for the shared folder (testOR/Untitled Kanban.md). In a vault that keeps the folder under another name it was unresolved, and clicking it created an empty note outside the shared folder; images and Excalidraw drawings broke the same way. Note text is shared byte for byte, so it is left as written: the plugin wraps Obsidian's public getFirstLinkpathDest and, when Obsidian finds nothing (or finds a file outside every shared folder, such as the empty note an earlier click made), reads the path as naming the folder by another vault's name and resolves it in this vault's copy, the source's own shared folder first. A file that is missing here, or skipped on this device, stays unresolved rather than resolving to another file of the same name. Canvas keeps its folder-relative form (SAFE-A33); the shared path helpers move into shared-paths.ts and new rule SAFE-A41 says which format uses which mechanism. Verified: unit tests with every rule mutation-checked, a new two-vault e2e (fails with the resolver off), the full gate, about an hour of Excalidraw hardness runs (one failure predates this change, replayed on main: NEC-288), and the user's own test in their vaults. Follow-ups: NEC-286, NEC-287.
Spec:
docs/changes/NEC-285-sync-markdown-links/spec.mdChangelog
Links and embedded images that name a shared folder by another member's name for it now open the right note and show the right image, instead of creating an empty note.