Complete Antora xref targets and fragments#82
Merged
Conversation
Inside an xref: in an Antora component, completion now offers the component's pages as targets (pages in other modules prefixed with module:), and after a # it offers the target page's section ids and anchors (read from the resolved page). A same-page xref:# completes against the current buffer. Dot-prefixed entries (lock files, hidden dirs) are skipped, and the page list falls through to the in-buffer xref completion outside Antora. Phase 2b of the Antora/xref work; project-wide find-references is next.
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.
Phase 2b of the Antora/xref work, on top of #81.
Inside an
xref:in an Antora component, completion now helps you author the reference:topic/page.adoc), with pages in other modules prefixedmodule:, plus the in-buffer anchor/section ids (for same-page refs)#, it offers the target page's section ids and anchors, read from the resolved pagexref:#completes against the current bufferDot-prefixed entries (editor lock files, hidden dirs) are filtered out, and outside an Antora component the
xref:completion falls through to the existing in-buffer behavior. Verified againstcider/doc.Next: project-wide
xref-find-references(Phase 2c), then paste-image.eldev test)M-x checkdocwarnings