Skip to content

Releases: yu-zou/obsidian-auto-numbered-headings

Auto Numbered Headings v2.0.0

29 Jun 16:49

Choose a tag to compare

Official release for Obsidian community plugin submission. Changes: MIT license, fixed manifest author info, lint cleanup, README polish.

1.1.1

13 Mar 13:54

Choose a tag to compare

Bug Fixes

  • Fixed trailing dot not being removed for multi-segment numbers at shallow counter depth (e.g., # 2.1. T now correctly becomes # 1 T)
  • Fixed sequential numbering breaking after dot removal — dotless multi-segment headings are now counted correctly for subsequent renumbering

v1.1.0 - Trailing Dot Format Fix + README

12 Mar 16:28

Choose a tag to compare

Changes

Fixed

  • Multi-segment hierarchical numbers now correctly omit the trailing dot (e.g., ## 1.2 Title instead of ## 1.2. Title)
  • Single-segment numbers continue to preserve the trailing dot (e.g., # 1. Title)

Added

  • Comprehensive README.md documenting plugin usage, settings, and installation

Implementation Details

  • Extended replacement range in heading parser to include trailing dot + separator
  • Added conditional formatting logic in numbering engine:
    • Single-segment numbers: keep trailing dot ("1. ")
    • Multi-segment numbers: remove trailing dot ("1.2 ")
  • Flat/per-level formats unaffected (always use trailing dot for single-segment numbers)

Files Changed

  • src/heading-parser.ts: Extended to calculation to include separator
  • src/numbering-engine.ts: Conditional formatting based on segment count
  • src/types.ts: Updated comment for to field
  • README.md: Complete plugin documentation
  • Version bumped to 1.1.0 in manifest.json, package.json, versions.json

Verification

All implementation and verification tasks passed:

  • ✅ Code quality review (zero antipatterns, TypeScript strict mode)
  • ✅ Logic trace QA (5/5 scenarios verified)
  • ✅ Plan compliance audit (all requirements met)
  • ✅ Scope fidelity check (no scope creep)

1.0.1

11 Mar 16:00

Choose a tag to compare

Fix critical bug: renamed HeadingChange.newText to .insert to match CM6 ChangeSpec API. Without this fix, all renumbering changes were treated as deletions instead of replacements, causing heading corruption.

1.0.0

11 Mar 15:34

Choose a tag to compare

Auto Numbered Headings v1.0.0

Real-time, transparent auto-numbering of headings in Obsidian — no shortcut keys required.

Features

  • Automatic numbering: Type # 1. Title and subsequent numbered headings renumber automatically
  • Hierarchical format: Supports nested numbering (1, 1.1, 1.1.1)
  • Opt-in pattern: Only manages headings with existing number prefixes — plain # Title is never touched
  • Code block aware: Headings inside code fences and frontmatter are excluded
  • Undo-friendly: Single Ctrl+Z reverts both your edit and the renumbering
  • Configurable: Settings for numbering format, separator, and enable/disable toggle

Install via BRAT

  1. Install the BRAT plugin
  2. Add beta plugin: yu-zou/obsidian-auto-numbered-headings
  3. Enable in Settings → Community plugins