Commit Graph
132 Commits
Author SHA1 Message Date
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
AlexKucera da678ada03 Updates export to use new settings structure
Updates the export file function to utilize the new settings structure for page setup and typography.

This change ensures consistency with the modal settings and simplifies the configuration process.
2025-09-05 15:47:39 +02:00
Jarvis 8557720f43 feat: add comprehensive template embedding and release automation
Implements dual-strategy template distribution for reliable plugin deployment:

Template Embedding System:
- Add esbuild plugin to embed .typ templates as base64 strings in main.js
- Create EmbeddedTemplateManager for automatic template extraction
- Add TypeScript declarations for virtual template-embed module
- Templates auto-extract on plugin load if missing from disk

Release Automation:
- Add GitHub Actions workflow for automated ZIP releases
- Create package-plugin.js script for complete distribution packages
- Update version-bump.mjs for Obsidian-compliant tags (no 'v' prefix)
- Ensure releases include templates/ directory for manual installations

Documentation Updates:
- Comprehensive installation instructions with troubleshooting
- Clear warnings about requiring complete ZIP packages
- Multiple installation methods including manual and automated

This ensures the plugin works regardless of installation method:
- ZIP releases provide templates/ directory (primary method)
- Embedded templates auto-extract as fallback (secondary method)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-05 15:34:00 +02:00
AlexKucera d40253e6c4 Enhances template handling for Typst exports.
Improves template resolution for Typst exports by adding the plugin's templates directory as a resource path. This allows Typst to correctly locate and utilize template files within the plugin.

Updates the template path handling to use relative paths from the vault root, ensuring proper import behavior within Typst.
2025-09-05 10:41:31 +02:00
AlexKucera 96660bfbba Prepares plugin for Obsidian submission
Updates the plugin to comply with Obsidian's plugin submission requirements.

This includes removing debug logging, addressing path handling, and improving modal display logic. Also replaces the plugin license from MIT to GPLv3, adds PDF embedding controls, improves export progress display, and enhances resource path caching.

Removes default hotkeys and sharp dependency. Addresses cross-platform path compatibility and enhances security with path validation and sanitization.
2025-09-05 07:47:32 +02:00
AlexKucera 1dced48333 Improves export progress display
Updates the export config modal to hide the form and show the progress container by modifying the display properties.

It ensures that only one section is visible at any given time for a cleaner user experience.
2025-09-04 23:05:15 +02:00
AlexKucera d2eea5f2cb Improves export modal's progress display
Ensures the form container is hidden using CSS classes
during the export process to improve user experience.
2025-09-04 22:59:16 +02:00
AlexKucera e6c6cca5b8 Adds export modal display utilities
Adds CSS classes to control the visibility of the export modal and styles the progress bar.

This allows for dynamically showing and hiding the modal and provides a visual cue for export progress.
2025-09-04 22:55:00 +02:00
AlexKucera 6ff1a24773 Removes excessive logging
Removes console log statements used for debugging during development, resulting in cleaner output and improved performance in production.
2025-09-04 22:48:55 +02:00
AlexKucera 21fdfbf207 Normalizes output folder path for settings
Ensures that the output folder path is normalized before being saved in the settings. This prevents issues with inconsistent or invalid paths.
2025-09-04 22:30:06 +02:00
AlexKucera 151dc537a5 Removes default hotkeys for export commands
Removes the default hotkeys assigned to the export commands.
This allows users to define their own preferred hotkeys
without being restricted by default settings.
2025-09-04 22:26:46 +02:00
Jarvis 70241a012c feat: add PDF embedding and frontmatter display controls
- Add embedPdfFiles setting to control PDF attachment embedding
- Add printFrontmatter setting to display frontmatter as formatted text
- Implement frontmatter formatting with proper line breaks and bullet lists
- Add settings toggles to both plugin settings and export modal
- Fix filename sanitization for PDF preview images with spaces
- Ensure modal export config includes new behavior settings
- Always generate PDF preview images regardless of embedding setting

The frontmatter display formats long comma-separated values (like email lists)
as bulleted lists and adds proper line breaks after each property label.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-04 22:15:08 +02:00
AlexKucera f742f9b1ed Adds code fencing to email example
Adds code fencing to the email example within the documentation for clarity and proper rendering. This ensures the example is displayed correctly.
2025-09-04 17:21:36 +02:00
AlexKucera 4585cdd357 Replaces license with GPLv3
Updates the project license to GNU GPLv3.

This change ensures that the software is distributed under a widely recognized and respected open-source license, granting users the freedoms to use, share, and modify the software.
2025-09-04 17:20:05 +02:00
AlexKucera 6273be7c22 Adds Email Block support
Adds support for the YAML Email Block format, enabling users to easily incorporate pre-formatted email templates into their notes.

Provides documentation on how to use the feature.
2025-09-04 17:17:36 +02:00
AlexKucera a15caaef1e Adds type safety to process event handlers
Specifies the types for data and close events in process handlers.

This improves code clarity and maintainability by ensuring that the
data received from stdout and stderr streams is treated as a Buffer,
and the close event receives a number or null for the exit code.
2025-09-04 16:40:02 +02:00
AlexKucera 2c5b916978 Improves resource path caching error handling
Moves the catch block for resource path scanning to be inside the try block.
This ensures that errors during resource path caching do not prevent the timestamp from being updated, potentially leading to repeated scanning.
2025-09-04 16:38:02 +02:00
Jarvis 3fc6219ad1 WIP: Sharp removal changes 2025-09-04 16:32:12 +02:00
AlexKucera 9285f1d852 Updates README for clarity and consistency
Refines the README to improve readability and maintain consistency.

- Rewrites the description for better clarity.
- Renames "Why Typst Over Standard PDF Export?" to "Why Typst?" for conciseness.
- Updates table of contents to reflect the new name and remove unnecessary characters.
- Replaces bullet points in the "Why Typst?" section with a more concise format.
- Adds installation instructions using brew for Pandoc, Typst and ImageMagick.
- Updates GitHub username in contact section.
2025-09-04 16:26:50 +02:00
AlexKucera 40a3c1b579 Updates eslint and globals dependencies
Updates the eslint and globals dependencies in package.json and package-lock.json.

This change brings in the latest versions of these packages,
potentially including bug fixes, performance improvements, and new
features.
2025-09-04 16:24:36 +02:00
AlexKucera f6f0979ad6 Migrates to flat ESLint configuration
Updates ESLint configuration to the new flat config format.

This change removes the old `.eslintrc` and `.eslintignore` files and replaces them with a new `eslint.config.mjs` file.

This provides a more modern and flexible approach to ESLint configuration and should improve performance.
2025-09-04 16:24:18 +02:00
AlexKucera 436fd8ee23 Adds README and funding URLs to manifest
Adds a comprehensive README file detailing the plugin's features, installation, usage, and development.

Includes funding URLs in the manifest to allow users to support the project.
2025-09-04 15:27:37 +02:00
AlexKucera 1b3f83e6e6 Improves export performance with resource path caching
Implements a cache for resource paths to avoid rescanning the vault directory on every export.

This significantly improves the speed of subsequent exports,
especially when the vault contains a large number of files. The cache
expires after a configurable interval (default: 5 minutes) to ensure
that new or removed resources are eventually reflected.
2025-09-04 15:17:35 +02:00
AlexKucera 6af3f74e68 Improves file access using asynchronous methods
Refactors file access operations to use asynchronous methods
instead of synchronous ones. This enhances performance and
responsiveness by preventing blocking operations, especially
during file system interactions.

The changes involve using `fs.promises.access` instead of
`fs.existsSync` and `fs.promises.mkdir` instead of
`fs.mkdirSync`. This ensures non-blocking file system operations
across the application, improving the overall user experience.
2025-09-04 15:09:56 +02:00
AlexKucera 557a0675be Refactors file stat to use async API
Updates file stat operation to use the asynchronous API
to prevent blocking the event loop during file system operations.

This improves the responsiveness of the application, especially
when dealing with potentially slow or numerous file system accesses.
2025-09-04 15:03:43 +02:00
AlexKucera b255b6354e Refactors batch export logic
Consolidates the export files and export files with configuration functionalities into a shared `processBatchExport` method.

This reduces code duplication and improves maintainability
by centralizing the batch processing logic.
2025-09-04 15:01:06 +02:00
AlexKucera c872a56bc2 Improves error reporting for template loading.
Adds error message to the notice when loading templates fails, providing more context for debugging.
2025-09-04 14:36:41 +02:00