Skip to content

Show a heading's link mark only on the heading itself, not on the section or widget it titles - #3971

Merged
max-sixty merged 2 commits into
mainfrom
heading-link-on-m
Oct 25, 2026
Merged

max-sixty merged 2 commits into
mainfrom
heading-link-on-m

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Pressing m lands on a decision whose first child is a heading, and the heading's link mark appeared in the margin beside it, though the user had come to answer the decision, not to link to it. The mark showed while the user was anywhere its link points: on the heading, or on the section, hgroup or widget whose address it copies. It now shows on the heading itself (a fragment link to it, a tap, focus inside it) and under the pointer, as before.

Enter on the section or widget still copies the link, and now shows the mark with its result until the user moves. A keyboard user who reaches a section through a contents link no longer sees the mark there; Enter copies, and the command reference names it.

tests/browser/test_render_heading_links.py now asserts that being on the section shows no mark and that Enter shows it; the first assertion fails on main.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 2 commits October 25, 2026 08:57
…tion or widget it titles

Pressing `m` landed on a decision whose first child is a heading, and the
heading's link mark appeared in the margin beside it, though the user had
come to answer the decision, not to link to it. The mark showed while the
user was anywhere its heading names: on the heading, or on the section,
hgroup or widget whose address the link copies. It now shows on the
heading itself (a fragment link to it, a tap, focus inside it) and under
the pointer, as before.

Enter on the section or widget still copies the link, and now stands the
mark there with its result until the user moves; before, Enter added a
reason for showing it that the next move cleared only because the
location reader tracked the address too. The heading-link test asserts
that being on the section shows no mark and that Enter shows it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit ae65884 into main Oct 25, 2026
4 checks passed
@max-sixty
max-sixty deleted the heading-link-on-m branch October 25, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants