Open a note that also links as its article with the note on top

Words carrying a note and a Wikipedia link (one note with a body and a
target, as the bulk linking pass made by merging links onto glosses, or a
note and a link on the same words) opened only the note: a click toggled
the gloss inline in both views, Enter did the same in the column, and in
panes Enter opened the note's pane with the article folded to its summary.

Now Enter or a click opens one page: the note's text first, then the
article in full (in the column the note is hoisted and h returns to its
words; in panes it is the next pane). A note's target is its own or that of
a link on exactly its words. Node and web targets show their card beneath
the note the same way. Browser tests cover click and keyboard in both views
and the same-span case; the old test only covered the folded panes path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-15 21:10:19 -05:00
1 parent f86a06fa06
commit 02e044af35
11 files changed
+187 -57

No files matched your search

+3 -1
View File
@@ -84,7 +84,9 @@ Press `?` for every key. The short version:
- A node can have a **target**: a Wikipedia article, another node in the library, or a web page.
A note with a target and no text of its own is a **link**. Linked words get a thin underline and
a mark after them, after gwern.net: **W** Wikipedia, **§** a node in this library, **↗** the web.
A note that also links keeps its dotted underline and gets the mark.
A note that also links keeps its dotted underline and gets the mark; `Enter` or a click on it (or on
words that carry both a note and a link) opens one page: the note's text first, as the library's,
then the article in full (or the node's or page's card). `h` returns to the words.
- Hovering linked words, or landing on them with `Tab`, previews the target. `Enter` opens it: in
panes in the next pane; in the column a preview first, then the node (Back returns) or the
article as a page of its own. `L` opens a node's own target; a web page opens in a new tab.