Add comprehensive ExportConfigModal class extending Obsidian Modal
with full UI for PDF export configuration including:
- Export mode selection (current note, note with dependencies, collection)
- Format selection (PDF via Pandoc+Typst, Typst source export)
- Template management with predefined and custom options
- Output settings (filename patterns, destination paths)
- Page configuration (size, orientation, margins)
- Typography settings (fonts, sizes, spacing)
- Real-time validation with visual feedback
- Settings persistence with recent export tracking
- Progress indicator with cancellation capability
- Professional CSS styling for modal appearance
Implements Task 7 and all 5 subtasks (7.1-7.5) from TaskMaster.
Note: Modal implementation complete but not yet connected to
export commands - handleExportWithDependencyCheck still shows
placeholder message and needs integration.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Implements core conversion logic from processed markdown to PDF via Pandoc
and Typst. Creates a robust pipeline with proper error handling, progress
tracking, and cleanup mechanisms.
Key features:
- PandocTypstConverter class with child_process.spawn for execution
- Comprehensive argument building for templates, variables, and options
- Temporary file management with automatic cleanup
- Timeout handling for large document processing
- Progress tracking and error message extraction
- Support for both direct PDF and intermediate .typ file generation
Technical details:
- Uses spawn instead of exec for better control and streaming
- Implements proper cleanup handlers for process termination
- Supports Pandoc 3.x API with --pdf-engine=typst
- Cross-platform compatible with proper path handling
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Add comprehensive dependency checking system for external tools:
- Create DependencyChecker class with cross-platform executable detection
- Implement version validation for Pandoc (3.0.0+) and Typst (0.11.0+)
- Add timeout handling and robust error management for external processes
- Integrate dependency checking with plugin lifecycle and settings interface
- Create DependencyStatusModal with detailed status display and installation guides
- Add platform-specific installation instructions (Windows/Mac/Linux)
- Include user-friendly error messages and troubleshooting guidance
- Add dependency status section to settings with "Check Dependencies" button
- Style dependency modal with Obsidian theme-aware CSS
- Update TypeScript config to exclude reference files from compilation
The dependency checker provides non-blocking startup validation,
export workflow integration, and comprehensive user guidance for
missing or outdated external tools.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fix TypeScript type inconsistencies in main.ts
- Remove sample template components (SampleModal, sample commands)
- Replace sample settings tab with TypstPDFExportSettingTab
- Update package.json metadata to reflect actual plugin identity
- Add basic plugin structure with export command and ribbon icon
- Clean up template comments and unused imports
This establishes a clean foundation for implementing Typst PDF export
functionality by removing all sample plugin template code and setting
up proper plugin structure with placeholder functionality.
Addresses all subtasks in task 1 (1.1-1.5) from project roadmap.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Sets up the basic structure for an Obsidian plugin
designed to export notes to Typst-generated PDFs.
This commit includes:
- Initial plugin manifest and configuration.
- Placeholder plugin class and settings.
- Basic .gitignore to exclude common files.
- Claude.md file to guide Claude AI on development
Task Master is imported for dev workflow.