Add a "Linked from" backlinks row to open notes - #1
Open
AllTerrainDeveloper wants to merge 1 commit into
Open
Conversation
Each rendered note now lists the notes whose bodies wiki-link to it, newest first. Target resolution matches link-click behavior (id or title), links inside fenced or inline code do not count, a note never lists itself, and the row is bounded at 20 entries with a summary for the rest. Covered by a Chrome scenario and a static source check. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ugoy2ZABg1zSBPszPmBaww
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.
What this does
Notes can already link forward with
[[label|note-id]], but there is no way to see which notes point at the one you are reading. This adds a Linked from row at the bottom of every open note, listing the notes that link to it, newest first. Each entry is clickable and opens the linking note.How it works
resolveNote(), exactly like link clicks, so both[[title]]and[[label|note-id]]forms work and dead links are ignored.Tests
PIPLET_REQUIRE_CHROME=1 php tests/run.php→ 433 assertions, plus the unsafe suite.🤖 Generated with Claude Code