Commit Graph
158 Commits
Author SHA1 Message Date
Jarvis 70ebb6a767 refactor: complete ExportConfigModal.ts refactoring (Step 4.3)
- Remove unused getOutputFilename() method
- Remove unnecessary delegation methods showValidationErrors() and showValidationWarnings()
- Update handleSubmit() to call renderer methods directly
- Clean up excessive blank lines for better readability
- Reduce file size from 237 to 219 lines while maintaining functionality

This completes Phase 4.3 of the large file refactoring plan, achieving
the target of ~200 lines while preserving all modal lifecycle methods,
event handlers, and state management functionality.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 12:49:03 +02:00
Jarvis 53dd1b5903 refactor: extract ModalValidator from ExportConfigModal
Extract validation orchestration logic into dedicated ModalValidator class
as part of Phase 4 modal refactoring to improve maintainability.

Changes:
- Create src/ui/modal/ModalValidator.ts with validateAllSections() method
- Remove validateAllSections() method from ExportConfigModal.ts
- Update ExportConfigModal to delegate validation to ModalValidator
- Fix TypeScript handling of optional warnings property
- Maintain exact same validation behavior and error handling

Build: ✅ npm run build passes
Size: ExportConfigModal.ts reduced by ~20 lines

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 12:37:24 +02:00
Jarvis 41e70e389e refactor: extract ModalRenderer from ExportConfigModal
Create dedicated ModalRenderer class to handle all DOM rendering logic previously embedded in ExportConfigModal. This comprehensive extraction moves substantive implementation rather than just skeletal structures.

Key changes:
• New ModalRenderer.ts - Complete rendering logic (480+ lines)
• Extracted methods with full implementations:
  - createHeader() - Header creation with note info display
  - renderSections() - Section rendering and clearing logic
  - createProgressContainer() - Progress UI with bar and text
  - createActionButtons() - Button creation with event handlers
  - showProgress()/updateProgress() - Progress update logic
  - addModalStyles() - Complete CSS styling (122 lines)
  - showValidationErrors/Warnings() - Error/warning display
• ExportConfigModal updated to use ModalRenderer via dependency injection
• Proper separation: renderer owns DOM, modal handles business logic
• All TypeScript compilation passes

Follows Step 4.1 of refactoring plan. Ready for modal display testing.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 12:30:17 +02:00
Jarvis 3b926fce12 refactor: complete PandocTypstConverter modularization
Extract process execution and PDF embed processing to dedicated modules:
- PandocExecutor: handles pandoc process spawning, monitoring, and error parsing
- PdfEmbedProcessor: manages PDF to image conversion and embed replacement

PandocTypstConverter reduced from 741 to 202 lines, now serves as clean
orchestrator delegating to specialized modules. Maintains identical functionality
while improving maintainability and testability.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 12:17:01 +02:00
Jarvis 1fc47fe9ae refactor: extract ResourcePathResolver from PandocCommandBuilder
Create dedicated ResourcePathResolver to handle resource path discovery and caching:

- Extract resource path caching logic (~110 lines)
- Move vault scanning and attachment directory discovery
- Eliminate code duplication: remove duplicate resolveExecutablePath()
- Simplify PandocCommandBuilder from ~287 to ~204 lines

Changes:
- NEW: src/converters/pandoc/ResourcePathResolver.ts
- MODIFIED: PandocCommandBuilder - use ResourcePathResolver and PathResolver
- MODIFIED: PandocTypstConverter - use centralized PathResolver

Benefits:
- Clear separation of concerns
- Reusable resource path logic
- Reduced code duplication
- Better maintainability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 12:05:57 +02:00
Jarvis 84bd5fb674 refactor: extract TypstVariableMapper from PandocCommandBuilder
Extract comprehensive variable mapping and transformation logic into
dedicated TypstVariableMapper class. This modularizes the variable handling
system for better maintainability and separation of concerns.

Changes:
- Create src/converters/pandoc/TypstVariableMapper.ts (320+ lines)
- Extract addExportConfigVariables and addPluginSettingsVariables methods
- Extract complete variable transformation logic with name mapping
- Extract typography and page setup variable handling
- Update PandocCommandBuilder to use new variable mapper
- Remove 127 lines of variable mapping code from PandocCommandBuilder

Key Features:
- TypstVariable interface for structured variable handling
- Priority system: ExportConfig variables override plugin settings
- Complete variable name mapping (bodyFont → font, margins + 'cm', etc.)
- Modular variable mapping: ExportConfig, Typography, PageSetup, Margins
- Unit conversion handling (pt, cm) and paper size mapping
- Pandoc argument generation from mapped variables

Maintains all existing functionality:
- Variable priority and fallback system preserved
- All font, layout, and template variable mappings intact
- Plugin settings integration with proper precedence
- Paper size mapping via mapToTypstPaperSize utility

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 11:52:07 +02:00
Jarvis 3e49d4ade6 refactor: extract PandocCommandBuilder from PandocTypstConverter
Extract comprehensive Pandoc command-line argument construction logic
into dedicated PandocCommandBuilder class. This modularizes the 280-line
buildPandocArgs method and associated utilities for better maintainability.

Changes:
- Create src/converters/pandoc/PandocCommandBuilder.ts (400+ lines)
- Extract buildPandocArgs, resolveExecutablePath methods
- Extract resource path caching and scanning logic
- Extract template configuration, variable mapping, and engine options
- Update PandocTypstConverter to use new command builder
- Extend PandocOptions interface with tempDir, cleanupHandlers, typstSettings

Maintains all existing functionality including:
- 5-minute resource path caching optimization
- ExportConfig variable priority over plugin settings
- Template path resolution and validation
- Intermediate Typst file generation for debugging
- Executable path resolution with system search fallback

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 11:46:44 +02:00
Jarvis 57555fa859 refactor: finalize MarkdownPreprocessor as clean orchestrator
- Remove unused regex patterns (WIKILINK_PATTERN, TAG_PATTERN)
- Fix step numbering in processing pipeline (1-6 sequential)
- Remove extra whitespace and improve code organization
- Reduce from 213 to 204 lines (target ~200 lines achieved)
- Clean orchestration focused on delegation to processors
- Build verification passes without errors

MarkdownPreprocessor now serves as pure orchestrator:
- Configuration management and processor coordination
- 6-step processing pipeline with clear delegation
- No trapped implementation details in main class
- Clean error handling and result compilation

Phase 2 complete: 1792 → 204 lines (88% reduction)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 22:45:46 +02:00
Jarvis 09365e2d75 refactor: remove unused metadata extraction (tags/wordCount)
- Remove extractTags() and calculateWordCount() methods (dead code)
- Keep only extractTitle() method in MetadataExtractor
- Remove includeMetadata option and related infrastructure
- Update PreprocessingResult interfaces across all processors
- Remove wordCount from metadata schema
- Tags still populated from frontmatter (FrontmatterProcessor)
- Build verification passes without errors

Analysis showed these methods extracted data never consumed by Typst
templates or PDF generation pipeline.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 22:39:38 +02:00
Jarvis a6b35d336a refactor: extract MetadataExtractor from MarkdownPreprocessor
- Create MetadataExtractor.ts with static utility methods
- Extract extractTags(), calculateWordCount(), and extractTitle() methods
- Maintain complete implementation logic and regex patterns
- Update MarkdownPreprocessor to use MetadataExtractor
- Remove 65 lines from MarkdownPreprocessor (280→215 lines)
- Build verification passes without errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 22:31:12 +02:00
Jarvis 86a339197f refactor: extract CalloutProcessor from MarkdownPreprocessor
- Create CalloutProcessor.ts with comprehensive callout and email block processing
- Extract 10 methods with complete implementations (~350 lines):
  - processCallouts/processEmailBlocks (main entry points)
  - processMultiLineCallouts/extractCalloutBlock/convertCalloutToTypstFormat
  - processEmailBlock/parseEmailYaml (email block processing)
  - escapeQuotes/escapeBodyForTypst (string escaping utilities)
  - filterUnnecessaryLinks (link filtering)
- Update MarkdownPreprocessor.ts to delegate to CalloutProcessor
- Remove extracted methods and unused pattern constants
- Reduce MarkdownPreprocessor from 653 to 346 lines (307 line reduction)
- Maintain full backward compatibility through delegation pattern

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 22:22:17 +02:00
Jarvis 9960f63650 refactor: extract EmbedProcessor and fix WebP conversion
- Extract embed processing logic from MarkdownPreprocessor to new EmbedProcessor module
- Fix WebP image conversion that was broken during refactoring:
  - Update ImageMagick command from deprecated 'convert' to modern 'magick'
  - Fix field name mismatch: use 'sizeOrAlt' instead of 'alt' in plugin/EmbedProcessor
  - Use PathResolver for proper ImageMagick executable path resolution
- Restore comprehensive embed processing including images, PDFs, and files
- Add proper error handling and fallback for WebP conversion failures
- Maintain size parameter parsing (e.g., "400x300") vs alt text differentiation

Resolves WebP conversion issues and completes Step 2.3 of refactoring plan.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 15:58:24 +02:00
Jarvis 989d839de8 refactor: extract WikilinkProcessor from MarkdownPreprocessor
Extract comprehensive wikilink processing functionality into separate module:
- Move processWikilinks() method with complete implementation
- Extract sanitizeFilePath() as public method for reuse by embed processors
- Move sanitizeHeadingForLink() and resolveRelativePath() methods
- Remove duplicate WikilinkConfig interface
- Update all embed processors to use WikilinkProcessor.sanitizeFilePath()
- Add WikilinkProcessor configuration sync in updateConfig()
- Preserve all existing functionality and error handling

Reduces MarkdownPreprocessor from 895 to 816 lines (-79 lines).
WikilinkProcessor: 172 lines of focused wikilink processing logic.
Build passes successfully with no breaking changes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 15:35:44 +02:00
Jarvis 3843788351 refactor: extract FrontmatterProcessor from MarkdownPreprocessor
Extract complete frontmatter processing functionality (260 lines) into a dedicated
FrontmatterProcessor module to improve code organization and maintainability.

Changes:
- Create src/converters/preprocessors/FrontmatterProcessor.ts with complete implementation
- Extract processFrontmatter() method including gray-matter and regex fallback parsing
- Extract formatFrontmatterForDisplay() method with all formatting logic
- Move FRONTMATTER_PATTERN regex and all frontmatter-related dependencies
- Update MarkdownPreprocessor.ts to delegate to FrontmatterProcessor
- Reduce MarkdownPreprocessor.ts from 1,166 to 906 lines (22% reduction)

All functionality preserved:
- Gray-matter primary parsing with js-yaml fallback
- Tag extraction and metadata population
- Title override and noteTitle handling
- preserveFrontmatter and printFrontmatter options
- Error handling and warning accumulation
- Fallback regex parsing for malformed YAML

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 14:41:22 +02:00
Jarvis b7f87e4b7f fix: use Obsidian API for robust file path resolution
- Add app.metadataCache.getFirstLinkpathDest() as primary resolution strategy
- Fix path resolution issues after folder/note renames
- Update both resolvePdfPath and resolveFilePath methods consistently
- Maintain filesystem fallbacks for backward compatibility
- Resolves "PDF not found" errors when attachment folders are renamed
- Now uses Obsidian's native link resolution algorithm

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 14:16:50 +02:00
Jarvis 676d634d0b fix: simplify file type classification to fix DOCX embedding
- Reduce file type classification from 6+ types to 3: image, pdf, file
- Remove processVideoEmbed, processAudioEmbed, processDocumentEmbed methods
- Fix DOCX files not being embedded (were classified as 'document' → links only)
- All non-image/non-PDF files now properly embedded via processFileEmbed
- Update switch statement to handle only the 3 simplified file types
- Maintain backward compatibility for existing functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 10:50:44 +02:00
Jarvis 3c384f1f1b refactor(main): move dependency methods to DependencyChecker
- Move showDependencyStatus() and checkDependenciesAsync() from main.ts to DependencyChecker.ts as static methods
- Replace 31-line implementations with 12-line delegation calls in main.ts
- Add necessary imports (Notice, ExportErrorHandler) to DependencyChecker.ts
- Maintain same public API while improving separation of concerns
- Reduce main.ts from 280 to 253 lines (total 79% reduction from original 1233 lines)

This completes Step 1.10 of the refactoring plan, achieving clean delegation
of dependency management functionality while preserving backward compatibility.

Build verified: ✅ TypeScript compilation successful
2025-09-09 10:23:22 +02:00
Jarvis 9427444015 refactor: move modal methods to ExportOrchestrator (step 1.9)
Move export modal orchestration from main.ts to ExportOrchestrator:
- Move showExportModal() and showExportModalForFiles() methods
- Add required imports to ExportOrchestrator (MarkdownView, ExportConfigModal, ModalSettingsHelper)
- Replace main.ts methods with delegation calls to ExportOrchestrator
- Remove unused imports from main.ts (ModalSettingsHelper, ExportConfigModal, etc.)
- Reduce main.ts from 351 → 290 lines (61 lines moved)

Improves separation of concerns by consolidating all export orchestration
logic in ExportOrchestrator, including modal creation and configuration.
Modal functionality preserved through delegation pattern.

Total progress: main.ts reduced from 1233 → 290 lines (943 lines extracted, 76% reduction)

Build passes successfully ✅

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 10:11:24 +02:00
Jarvis 94dfa0da95 refactor: extract EmbedProcessor from main.ts (step 1.8)
Extract all embed processing functionality into dedicated EmbedProcessor module:
- Move processPdfEmbeds(), processImageEmbeds(), processFileEmbeds() methods
- Move helper methods: resolvePdfPath(), copyImageToVaultTemp(), generatePdfEmbedContent(), generateFileEmbedContent(), getMimeTypeFromExtension(), getFileTypeIcon(), resolveFilePath()
- Replace with delegation pattern in main.ts
- Fix TypeScript type issues with proper type guards for path filtering
- Reduce main.ts from 805 → 351 lines (454 lines extracted)

Creates focused 474-line EmbedProcessor module handling:
- PDF embed processing with preview image generation
- Image embed processing with path resolution
- File embed processing with MIME type detection
- Multi-strategy path resolution for vault attachments
- Proper error handling and fallback mechanisms

Build passes successfully ✅

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 10:06:03 +02:00
Jarvis bf2028dc0d refactor: extract ObsidianTypstPDFExportSettingTab to separate module
Extract the complete settings UI class (427 lines) from main.ts into
src/plugin/SettingsTab.ts to improve maintainability and reduce file size.

Changes:
- Create src/plugin/SettingsTab.ts with full settings UI implementation
- Remove ObsidianTypstPDFExportSettingTab class from main.ts
- Add import for extracted SettingsTab class
- Maintain all existing functionality and UI sections

Build verified: npm run build passes successfully
Line reduction: main.ts reduced from 1233 to 805 lines (-428 lines)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 09:55:06 +02:00
Jarvis 0793893228 refactor: extract PathResolver from main.ts - complete Phase 1
Extract all path resolution utilities from main.ts into a focused
PathResolver module, completing the Phase 1 refactoring of main.ts
into 6 focused modules.

- Create PathResolver.ts with path resolution and validation utilities
- Extract resolveExecutablePath() with system search fallback logic
- Extract prepareOutputPath() with directory creation and security validation
- Delegate path operations from main.ts to PathResolver
- Reduce main.ts by ~80 lines while maintaining all functionality

Phase 1 Summary:
- ✅ PluginLifecycle.ts (89 lines) - Plugin initialization & cleanup
- ✅ CommandRegistry.ts (35 lines) - Command registration & handlers
- ✅ EventHandlers.ts (109 lines) - Event handling & menu items
- ✅ ExportOrchestrator.ts (263 lines) - Export workflow coordination
- ✅ FontManager.ts (120 lines) - Font discovery & caching
- ✅ PathResolver.ts (80 lines) - Path resolution utilities

Total: Reduced main.ts from 1792 → ~1100 lines (39% reduction)
All functionality preserved with improved maintainability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 09:39:50 +02:00
Jarvis 35c351d55c refactor: extract FontManager from main.ts
Extract all font management functionality from main.ts into a focused
FontManager module to improve maintainability and reduce complexity.

- Create FontManager.ts with font discovery and caching logic
- Extract cacheAvailableFonts() and getCachedFonts() methods
- Add getAvailableFonts() wrapper method for consistent API
- Delegate font operations from main.ts to FontManager
- Fix initialization order: FontManager before PluginLifecycle
- Make resolveExecutablePath() public for FontManager access
- Reduce main.ts by ~115 lines while maintaining all functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 20:13:07 +02:00
Jarvis 7c6a244976 refactor: extract ExportOrchestrator from main.ts
Extract all export orchestration methods from main.ts into a focused
ExportOrchestrator module to improve maintainability and reduce complexity.

- Create ExportOrchestrator.ts with export workflow coordination
- Extract exportFile(), exportFiles(), exportFileWithConfig() methods
- Extract processBatchExport(), cancelExport(), handleFolderExport() methods
- Delegate export operations from main.ts to ExportOrchestrator
- Make processing methods public for ExportOrchestrator access
- Reduce main.ts by ~205 lines while maintaining all functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 19:49:20 +02:00
Jarvis d1d322fa17 refactor: extract EventHandlers from main.ts
Extract event handling logic into focused EventHandlers module:
- Create src/plugin/EventHandlers.ts for menu and ribbon handlers
- Move registerEventHandlers() and handleRibbonClick() methods
- Make exportFile(), exportFiles(), showExportModalForFiles(), isMarkdownFile() public
- Reduce main.ts by ~100 lines, improving maintainability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 19:27:38 +02:00
Jarvis 651671da2d refactor: extract CommandRegistry from main.ts
Extract command registration logic into dedicated CommandRegistry
class to improve separation of concerns and reduce main.ts complexity.

- Create src/plugin/CommandRegistry.ts (~35 lines)
- Move registerCommands() method to CommandRegistry
- Extract all 3 command definitions with callbacks:
  * export-current-note
  * export-with-config
  * check-dependencies
- Update main.ts to delegate to CommandRegistry
- Change exportCurrentNote() and showExportModal() to public
- Remove old registerCommands() method from main.ts

Part of comprehensive refactoring plan (main.ts: 1792 lines → 6 modules).
Step 1.2 complete. Commands functionality preserved.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 19:19:01 +02:00
Jarvis 991a9ae0ec refactor: extract PluginLifecycle from main.ts
Extract plugin initialization and cleanup logic into dedicated
PluginLifecycle class to reduce complexity of main.ts file.

- Create src/plugin/PluginLifecycle.ts (~100 lines)
- Move onload/onunload initialization logic
- Move template extraction and component setup
- Move dependency checking and font caching
- Update main.ts to delegate to lifecycle manager
- Change methods to public visibility where needed

Part of comprehensive refactoring plan to break down large files
(main.ts: 1792 lines → 6 focused modules). Step 1.1 complete.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 19:14:11 +02:00
AlexKucera ebdfea0a33 Merge branch 'release/1.0.2' into develop 2025-09-08 11:03:12 +02:00
Jarvis c9f36648d6 1.1.0 2025-09-08 11:00:43 +02:00
Jarvis 6a00786227 docs: prepare release 1.1.0 documentation
- Update CHANGELOG.md with comprehensive 1.1.0 release notes
- Add Generic File Embedding feature to Key Features in README.md
- Document all major fixes and improvements since 1.0.1

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 11:00:30 +02:00
AlexKucera 2fea3fdff3 Merge branch 'hotfix/dependency_fix' into develop 2025-09-08 10:56:27 +02:00
AlexKucera cd3ce0ec89 Add guidance.md to .gitignore
Excludes local guidance documentation from version control

Prevents potential sensitive or personal guidance notes from being tracked in the repository
2025-09-08 10:56:00 +02:00
Jarvis 8879f40be5 fix: update ImageMagick to use 'magick' instead of deprecated 'convert'
- Update default ImageMagick executable from 'convert' to 'magick' in constants
- Remove deprecated 'convert' subcommand from ImageMagick spawn calls
- Update UI labels and settings descriptions to reflect 'magick' command
- Fix pdf2img PATH environment to include Node.js installation paths

This resolves ImageMagick v7 deprecation warning and fixes pdf2img execution
failure caused by missing Node.js in PATH. The 'convert' command was deprecated
in ImageMagick v7 in favor of the unified 'magick' command.

Fixes: "env: node: No such file or directory" error in pdf2img execution

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 10:55:27 +02:00
Jarvis 1b36ebb705 fix(core): enhance dependency checker with comprehensive path resolution
- Add support for user-configured additionalPaths in dependency checking
- Implement comprehensive default system paths (home-relative and absolute)
- Update path resolution to handle both full paths and bare executable names
- Use 'which' command fallback with augmented PATH for executable discovery
- Ensure consistent path handling across sync and async dependency methods

This resolves issues where executables installed in common locations like
/opt/homebrew/bin were not found when executable path settings were empty.
The plugin now searches standard package manager installation directories
by default while respecting user-configured additional paths.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 10:32:16 +02:00
Jarvis a1380d88a0 fix: address Obsidian Review Bot feedback for plugin submission
- Replace hardcoded '.obsidian' paths with Vault#configDir for proper config directory support
- Move inline styles to CSS classes for better theme compatibility
- Remove unnecessary type casting by using proper type predicates
- Add proper TypeScript type narrowing for filtered arrays

This addresses all required issues identified by the Obsidian Review Bot:
* TempDirectoryManager now accepts configDir parameter from app.vault.configDir
* PdfToImageConverter uses configDir instead of hardcoded '.obsidian'
* ExportConfigModal uses CSS classes (.export-progress-visible, .export-form-hidden) instead of inline styles
* Progress bar width controlled via CSS custom property --progress-width
* Removed 'as TFile[]' casting by implementing isMarkdownFile type predicate

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-06 23:10:31 +02:00
AlexKucera 20e8c0ccf9 Merge branch 'feature/generic_embed' into develop 2025-09-05 18:32:35 +02:00
AlexKucera 31cbb0010e Merge branch 'develop' into feature/generic_embed 2025-09-05 18:03:49 +02:00
AlexKucera a37aef183c Merge branch 'master' into develop 2025-09-05 18:03:38 +02:00
AlexKucera 38fca744cd Improves plugin path resolution and versioning
Fixes dynamic path detection for plugin resources
Updates version to 1.0.1 across manifest files
Adds version compatibility mapping
Resolves issues with hardcoded directory paths

Ensures more robust plugin directory detection and resource loading
1.0.1
2025-09-05 18:01:16 +02:00
AlexKucera 5f92a07a75 Merge branch 'hotfix/font_caching' into develop 2025-09-05 17:57:13 +02:00
AlexKucera 56ab1ae320 Merge branch 'hotfix/font_caching' 2025-09-05 17:57:13 +02:00
AlexKucera 5519c98957 Improves plugin directory path handling dynamically
Updates file path resolution to use plugin manifest directory dynamically

Replaces hardcoded plugin directory paths with more flexible approach
- Uses `this.manifest.dir!` to determine plugin directory
- Supports better cross-platform and installation compatibility
- Removes static path references in multiple plugin components

Enhances plugin robustness by making directory paths more configurable
2025-09-05 17:56:56 +02:00
AlexKucera 05f28f84f3 Add Generic File embedding 2025-09-05 17:41:18 +02:00
AlexKucera 3cff3ff70a Renames plugin to "Typst PDF Export"
Updates the plugin's name from "Obsidian Typst PDF Export" to "Typst PDF Export".

This change simplifies the plugin's identifier and display name,
making it more concise and user-friendly. It involves updates to
the manifest file, plugin configuration, and references within the
codebase.
1.0.0
2025-09-05 16:57:23 +02:00
AlexKucera 2181b0cea3 Updates GitHub username in README
Updates the GitHub username in the README file to reflect the correct case.
2025-09-05 16:42:17 +02:00
AlexKucera fb843b490b Updates badges and license info in README
Updates the badges in the README to reflect current project status, including download stats and license information.

Changes the project license to GNU GPL v3.0 and updates the license badge accordingly.
2025-09-05 16:41:06 +02:00
AlexKucera b5387722cf Removes unnecessary console logs
Removes console log statements related to template extraction.

These logs were primarily for debugging and are no longer needed in the production code.
2025-09-05 16:15:44 +02:00
AlexKucera c0d9cff790 Shortens plugin name
Updates the plugin's display name for brevity in notices and settings.
2025-09-05 16:10:37 +02:00
AlexKucera 5c3cf06542 Simplifies release name generation
Removes the redundant "v" prefix from the release name and body within the release workflow, resulting in a cleaner and more consistent naming convention.
2025-09-05 16:10:30 +02:00
Jarvis 824985d2e7 fix: update GitHub Actions release workflow
- Fix shell quote escaping in CHANGELOG extraction
- Update to modern softprops/action-gh-release@v1
- Simplify asset uploads with files parameter
- Improve error handling and compatibility

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-05 15:57:59 +02:00
Jarvis 42329c1501 docs: update CHANGELOG for v1.0.0 release
- Add template embedding system features
- Document automated release workflow
- Note export consistency fixes
- Update installation and distribution details

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-05 15:52:43 +02:00