You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add vimdoc @tag directive to render arbitrary help file tags #17
Vimdoc supports auto-generated tags for most documentation items (sections, functions, commands, etc.), but doesn't have a way to render arbitrary tags.
For instance, something like this would be useful for the maktaba docs:
" @subsection Default Flags
" @tag plugin[]
" @tag plugin[commands]
" @tag plugin[settings]
" @tag plugin[autocmds]
" @tag plugin[mappings]
" @tag instant[]
" Maktaba provides a few built-in flags in every plugin that…
It might also be worth having a corresponding @link(TAG) notation for links instead of using literal helpfile link syntax, "|TAG|", so it works better for generated web documentation. But it would also be possible to process the pipe syntax explicitly and render appropriate web links in web documentation, so maybe we don't need a special directive for it.
We could cross that bridge when we come to it, of course. Or when we get around to open-sourcing vimdoc, at least.
Another detail: Some tags might come at the top and apply to the whole section, but vim help files sometimes just drop tags inline in the middle of the prose. I think we'll want to support "render a tag here" and not just "add tag for this section".
Opened #152. @tag name renders a literal help tag where it appears in the block, and @tag(name) renders it inline. Names such as plugin[] receive no plugin prefix; long standalone tags remain intact.
Acceptance tests cover consecutive tags between prose, inline tags, and long names. The missing-feature cases fail on upstream; all 12 local tests pass with the implementation. README documents both forms and hosted checks are tracked on the PR.
Activity
dbarnett commentedon Jul 24, 2014
Another detail: Some tags might come at the top and apply to the whole section, but vim help files sometimes just drop tags inline in the middle of the prose. I think we'll want to support "render a tag here" and not just "add tag for this section".
vinsymoyya commentedon Nov 14, 2026
Opened #152.
@tag namerenders a literal help tag where it appears in the block, and@tag(name)renders it inline. Names such asplugin[]receive no plugin prefix; long standalone tags remain intact.Acceptance tests cover consecutive tags between prose, inline tags, and long names. The missing-feature cases fail on upstream; all 12 local tests pass with the implementation. README documents both forms and hosted checks are tracked on the PR.