Skip to content

feat: preview heading body for header-type backlinks - #74

Merged
d12frosted merged 1 commit into
masterfrom
feat/backlinks-header-body-preview
Sep 8, 2026
Merged

d12frosted merged 1 commit into
masterfrom
feat/backlinks-header-body-preview

Conversation

@d12frosted

Copy link
Copy Markdown
Owner

Closes #73.

A link inside a heading line used to preview the heading title, which is already the group label right above it, so the preview line repeated it and showed none of the notes written under the heading.

Now the preview is an excerpt of the heading's body: planning lines and drawers are skipped, child headings are never included, and it is cut at vulpea-ui-backlinks-header-body-chars characters (default 80) with an ellipsis, like prose previews. A heading with no body keeps showing its title. Set the option to nil to get the old behaviour.

Before:

▼ Backlinks (1)
  [2026-03-14 Saturday]
    Follow-up call with vendor about contract renewal
      § Follow-up call with vendor about contract renewal

After:

▼ Backlinks (1)
  [2026-03-14 Saturday]
    Follow-up call with vendor about contract renewal
      § They can do a 2 year term at the current price if we sign before the end of the...

A link inside a heading line used to preview the heading title, which
is already the group label right above it. The preview now shows an
excerpt of the text under that heading, skipping planning lines and
drawers and stopping at the first child heading. The length is
controlled by vulpea-ui-backlinks-header-body-chars (default 80, nil
restores the title-only preview). Headings with no body text keep
showing the title.
@d12frosted
d12frosted merged commit 2cf2098 into master Sep 8, 2026
2 checks passed
@d12frosted
d12frosted deleted the feat/backlinks-header-body-preview branch September 8, 2026 13:57
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.

Include body content in preview for header-type backlinks

1 participant