Skip to content

feat: scope the links widget to the narrowed region (#68) - #71

Merged
d12frosted merged 1 commit into
masterfrom
feat/narrowing-scoped-links
Aug 25, 2026
Merged

d12frosted merged 1 commit into
masterfrom
feat/narrowing-scoped-links

Conversation

@d12frosted

Copy link
Copy Markdown
Owner

Follow-up to #69/#70, asked for in this comment.

The links widget now consumes the narrowing scope context: with the buffer narrowed, only links positioned inside the restriction are counted, and the header count gets the same narrowed marker as backlinks. Filtering is by link position rather than by owning note, since the file-level note's link list spans the whole file. One caveat, stated in the docs: positions come from the database, so unsaved edits can shift them until the next sync.

Also adds a README tip for refreshing the sidebar instantly on narrow/widen by wrapping org-toggle-narrow-to-subtree (thanks @alexjp).

With the buffer narrowed, the links widget counts only links
positioned inside the restriction, with the same narrowed marker on
the header count as backlinks. Positions come from the database, so
unsaved edits can shift them until the next sync.

Also documents a recipe for refreshing the sidebar instantly on
narrow/widen by wrapping org-toggle-narrow-to-subtree.
@d12frosted
d12frosted merged commit 31ee4bd into master Aug 25, 2026
2 checks passed
@d12frosted
d12frosted deleted the feat/narrowing-scoped-links branch August 25, 2026 17:47
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.

1 participant