Skip to content

feat(headings): optional outline indent for nested headings (#82)#86

Draft
bircni wants to merge 1 commit into
SeardnaSchmid:mainfrom
bircni:feat/82-heading-nest
Draft

feat(headings): optional outline indent for nested headings (#82)#86
bircni wants to merge 1 commit into
SeardnaSchmid:mainfrom
bircni:feat/82-heading-nest

Conversation

@bircni

@bircni bircni commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements issue #82: optional visual nesting for headings (and optional body under each section until the next peer-or-higher heading).

Changes

  • New settings under markdownInlineEditor.headings.nest.* (off by default).
  • Parser emits headingNest ranges; decorator applies per-line before width from live config.
  • Skips fenced code blocks and frontmatter; skips nest on the active line (same idea as heading raw line).
  • Guide line uses inset box-shadow + --vscode-editorIndentGuide-background instead of a full border (avoids horizontal gutter lines).
  • Parse cache cleared when nest settings change; unit tests + UAT doc under docs/uat/heading-nest.test.md.
image

…chmid#82)

- Add markdownInlineEditor.headings.nest settings (enabled, indentPerLevelCh,
  nestContent, showIndentGuides, maxLevel).
- Emit headingNest decorations from parser; apply via DecorationOptions.
- Skip nest on active heading line; exclude code blocks and frontmatter body.
- Use inset box-shadow for guides instead of full border (avoids horizontal rules).
- Invalidate parse cache when nest settings change; add unit and UAT docs.
@bircni bircni force-pushed the feat/82-heading-nest branch from 28b5b5d to d67a9a8 Compare April 17, 2026 21:57
@bircni

bircni commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

Had a look at it again - tbh I don't really like it...
I used it some days now and it just confused me even more

@bircni bircni marked this pull request as draft May 11, 2026 20:05
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