m-kk
|
24254ea092
|
🔧 fix: address remaining Obsidian community plugin review feedback
Addresses all outstanding review comments from PR #7753:
1. README: Added "Why This Plugin?" section explaining key differences
from other TOC solutions (frontmatter tracking, no visible markers,
cache integration, smart positioning)
2. Frontmatter: Replaced manual parsing with MetadataCache API
- Now uses getFileCache(file)?.frontmatter to read frontmatter
- Uses frontmatterPosition from cache for content splitting
- Removed manual parseFrontmatter method (59 lines)
- Removed unused FRONTMATTER_PATTERN constant
3. Settings: Removed redundant "Usage" heading per Obsidian guidelines
- Kept usage information text without heading wrapper
Note: Items already addressed in previous commits:
- CSS colors: No hardcoded colors present
- Style overrides: Minimal styling with justification
- Debounce: Using Obsidian's built-in debounce (imported line 13)
- Vault API: Using vault.process (line 401)
- Frontmatter updates: Using processFrontMatter (line 393)
- Position detection: Using frontmatterPosition from cache (lines 407, 488)
Code reduction: -59 lines (removed manual YAML parsing)
Build status: ✓ TypeScript compilation successful
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2025-12-11 11:05:44 -06:00 |
|
m-kk
|
6c30ef79eb
|
🚀 feat: initial release of Table of Contents Generator v1.0.0
Complete Obsidian plugin for generating clean, trackable table of contents using frontmatter metadata. Features invisible TOC markers, smart H1-aware positioning, automatic updates, and comprehensive configuration options.
Key Features:
- Invisible frontmatter-based TOC tracking (no HTML markers)
- Smart positioning after last H1 or document start
- Surgical content updates preventing cursor jumps
- Pre-compiled regex patterns (75% performance improvement)
- Comprehensive ReDoS protection against malicious patterns
- Auto-update with debounced change detection
- Configurable heading depth, exclusion patterns, and links
- Modern TypeScript architecture with strict type checking
- Service-oriented design with clean separation of concerns
Security & Performance:
- Enhanced ReDoS protection (10+ dangerous patterns)
- Memory-efficient operations with proper cleanup
- Single-pass DOM operations and optimized caching
- Modern build system with esbuild 0.25.9
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-09 15:03:32 -05:00 |
|