Removes gitignored files
removes file that were committed but are actually in gitignore
This commit is contained in:
21 files changed
-2879
No files matched your search
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"mcpServers": {
|
||||
"task-master-ai": {
|
||||
"type": "stdio",
|
||||
"command": "npx",
|
||||
"args": [
|
||||
"-y",
|
||||
"--package=task-master-ai",
|
||||
"task-master-ai"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
/cache
|
||||
@@ -1,35 +0,0 @@
|
||||
# Code Style and Conventions
|
||||
|
||||
## TypeScript Configuration
|
||||
- **Strict Type Checking**: noImplicitAny and strictNullChecks enabled
|
||||
- **Module System**: ESNext modules with Node.js resolution
|
||||
- **Target**: ES6 with DOM, ES5-ES7 lib support
|
||||
- **Source Maps**: Inline source maps for development
|
||||
|
||||
## ESLint Rules
|
||||
- **Base**: TypeScript recommended + ESLint recommended
|
||||
- **Unused Variables**: Error level, args ignored
|
||||
- **TypeScript Comments**: @ts-comment allowed
|
||||
- **Empty Functions**: Allowed (common in plugin lifecycle)
|
||||
- **Prototype Builtins**: Disabled check
|
||||
|
||||
## Naming Conventions
|
||||
- **Classes**: PascalCase (e.g., `obsidianTypstPDFExport`)
|
||||
- **Interfaces**: PascalCase with descriptive suffixes (e.g., `obsidianTypstPDFExportSettings`)
|
||||
- **Constants**: SCREAMING_SNAKE_CASE (e.g., `DEFAULT_SETTINGS`)
|
||||
- **Methods/Properties**: camelCase
|
||||
|
||||
## Code Organization
|
||||
- **Single File Structure**: Main plugin functionality in `main.ts`
|
||||
- **Interface Definitions**: Defined alongside implementation
|
||||
- **Settings**: Object-based configuration with defaults
|
||||
- **Plugin Lifecycle**: Standard Obsidian onload/onunload pattern
|
||||
|
||||
## Type Safety
|
||||
- **Settings Interface**: Strongly typed configuration objects
|
||||
- **Plugin Class**: Proper inheritance from Obsidian Plugin base
|
||||
- **API Integration**: Type-safe Obsidian API usage
|
||||
|
||||
## Current Type Issues (To Fix)
|
||||
- Line 14: `settings: MyPluginSettings` should be `settings: obsidianTypstPDFExportSettings`
|
||||
- Template references need updating for proper typing
|
||||
@@ -1,49 +0,0 @@
|
||||
# Codebase Structure
|
||||
|
||||
## Root Directory Layout
|
||||
```
|
||||
obsidian-typst-pdf-export/
|
||||
├── main.ts # Primary plugin entry point
|
||||
├── manifest.json # Plugin metadata for Obsidian
|
||||
├── package.json # Node.js dependencies and scripts
|
||||
├── tsconfig.json # TypeScript configuration
|
||||
├── esbuild.config.mjs # Build system configuration
|
||||
├── .eslintrc # ESLint configuration
|
||||
├── styles.css # Plugin-specific CSS (currently empty)
|
||||
├── PRD.md # Product Requirements Document
|
||||
├── CLAUDE.md # Development instructions for Claude
|
||||
└── reference/ # Example plugin implementations
|
||||
├── obsidian-better-export-pdf-master/
|
||||
└── obsidian_pdf_multi_export-master/
|
||||
```
|
||||
|
||||
## Core Source Files
|
||||
- **main.ts**: Contains all plugin logic including:
|
||||
- `obsidianTypstPDFExport` class (main plugin)
|
||||
- `obsidianTypstPDFExportSettings` interface
|
||||
- `SampleModal` and `SampleSettingTab` classes (template code)
|
||||
- `DEFAULT_SETTINGS` constant
|
||||
|
||||
## Build Output
|
||||
- **main.js**: Compiled and bundled plugin code (generated by esbuild)
|
||||
- Source maps included in development builds
|
||||
|
||||
## Configuration Files
|
||||
- **tsconfig.json**: TypeScript compilation settings
|
||||
- **esbuild.config.mjs**: Build system with development/production modes
|
||||
- **.eslintrc**: Code linting rules
|
||||
- **manifest.json**: Plugin metadata (name, version, compatibility)
|
||||
|
||||
## Task Master Integration
|
||||
- **.taskmaster/**: Task management and project planning
|
||||
- **.claude/**: Claude Code configuration
|
||||
- **.serena/**: Serena analysis and memory storage
|
||||
|
||||
## Reference Materials
|
||||
- **reference/**: Two example Obsidian PDF export plugins for architecture reference
|
||||
- **PRD.md**: Comprehensive product requirements and feature specifications
|
||||
|
||||
## Development Workflow Files
|
||||
- **package-lock.json**: Locked dependency versions
|
||||
- **versions.json**: Plugin version history
|
||||
- **version-bump.mjs**: Automated version management script
|
||||
@@ -1,68 +0,0 @@
|
||||
# Development Guidelines and Design Patterns
|
||||
|
||||
## Obsidian Plugin Architecture Patterns
|
||||
|
||||
### Core Plugin Structure
|
||||
- **Main Class**: Extends `Plugin` from Obsidian API
|
||||
- **Settings Management**: Interface-based configuration with load/save methods
|
||||
- **Lifecycle Methods**: `onload()` for initialization, `onunload()` for cleanup
|
||||
- **Command Registration**: Use `addCommand()` for palette integration
|
||||
- **UI Integration**: Ribbon icons, status bar, settings tab
|
||||
|
||||
### Settings Pattern
|
||||
```typescript
|
||||
interface PluginSettings {
|
||||
// Configuration properties with types
|
||||
}
|
||||
|
||||
const DEFAULT_SETTINGS: PluginSettings = {
|
||||
// Default values
|
||||
}
|
||||
|
||||
// Load/save pattern in plugin class
|
||||
async loadSettings() {
|
||||
this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());
|
||||
}
|
||||
|
||||
async saveSettings() {
|
||||
await this.saveData(this.settings);
|
||||
}
|
||||
```
|
||||
|
||||
### Modal and UI Patterns
|
||||
- **Modals**: Extend `Modal` class for dialog interfaces
|
||||
- **Settings Tabs**: Extend `PluginSettingTab` for configuration UI
|
||||
- **DOM Events**: Use `registerDomEvent()` for automatic cleanup
|
||||
- **Intervals**: Use `registerInterval()` for automatic cleanup
|
||||
|
||||
## Design Principles
|
||||
|
||||
### Type Safety First
|
||||
- Use strong TypeScript typing throughout
|
||||
- Define interfaces for all configuration objects
|
||||
- Avoid `any` types - use proper type definitions
|
||||
- Leverage Obsidian API types
|
||||
|
||||
### Plugin Integration Best Practices
|
||||
- Follow Obsidian's plugin lifecycle patterns
|
||||
- Use proper event registration for automatic cleanup
|
||||
- Integrate with command palette and ribbon appropriately
|
||||
- Provide clear user feedback via `Notice` class
|
||||
|
||||
### Error Handling
|
||||
- Graceful degradation when external tools unavailable
|
||||
- Clear user messaging for dependency issues
|
||||
- Proper error boundaries in async operations
|
||||
- Logging for debugging without cluttering user experience
|
||||
|
||||
### Code Organization
|
||||
- Keep main plugin class focused on orchestration
|
||||
- Separate concerns into logical modules
|
||||
- Use composition over inheritance where appropriate
|
||||
- Follow single responsibility principle
|
||||
|
||||
## External Tool Integration Patterns
|
||||
- **Dependency Checking**: Verify external tools before usage
|
||||
- **Process Management**: Spawn external processes safely
|
||||
- **Path Handling**: Cross-platform path resolution
|
||||
- **Error Recovery**: Fallback strategies for tool failures
|
||||
@@ -1,24 +0,0 @@
|
||||
# Project Overview - Obsidian Typst PDF Export Plugin
|
||||
|
||||
## Purpose
|
||||
This is an Obsidian plugin that exports notes to high-quality PDFs using Typst, featuring:
|
||||
- Superior typography through Markdown → Pandoc → Typst → PDF pipeline
|
||||
- Two export modes: Typography-pure and Style-preserving
|
||||
- Standard and single-page PDF formats
|
||||
- CSS style preservation capabilities
|
||||
- Dynamic page height adjustment for single-page exports
|
||||
|
||||
## Current Status
|
||||
The project is in early development, currently based on the Obsidian sample plugin template. The main plugin class and interfaces exist but contain mostly template code that needs to be replaced with Typst PDF export functionality.
|
||||
|
||||
## Key Components
|
||||
- **Plugin Class**: `obsidianTypstPDFExport` extends Obsidian's `Plugin` class
|
||||
- **Settings Interface**: `obsidianTypstPDFExportSettings` for configuration
|
||||
- **Template Components**: SampleModal and SampleSettingTab (need replacement)
|
||||
- **External Dependencies**: Will integrate with Pandoc and Typst tools
|
||||
|
||||
## Development Architecture
|
||||
- Built with TypeScript and esbuild
|
||||
- Follows Obsidian plugin architecture patterns
|
||||
- Uses standard Obsidian API for UI integration
|
||||
- Reference implementations available in `reference/` directory
|
||||
@@ -1,67 +0,0 @@
|
||||
# Suggested Commands for Development
|
||||
|
||||
## Core Development Workflow
|
||||
```bash
|
||||
# Install dependencies (run once after clone)
|
||||
npm install
|
||||
|
||||
# Start development with file watching and auto-compilation
|
||||
npm run dev
|
||||
|
||||
# Production build with type checking
|
||||
npm run build
|
||||
|
||||
# Version bump and manifest update
|
||||
npm run version
|
||||
```
|
||||
|
||||
## Build System Details
|
||||
- **Development**: `npm run dev` runs esbuild with watch mode and inline source maps
|
||||
- **Production**: `npm run build` includes TypeScript type checking and minification
|
||||
- **Entry Point**: `main.ts` compiles to `main.js`
|
||||
|
||||
## Code Quality Commands
|
||||
```bash
|
||||
# Type checking (part of build process)
|
||||
tsc -noEmit -skipLibCheck
|
||||
|
||||
# Linting (manual - not in package.json scripts)
|
||||
npx eslint main.ts
|
||||
|
||||
# Format code (if prettier is used)
|
||||
npx prettier --write main.ts
|
||||
```
|
||||
|
||||
## Darwin-Specific System Commands
|
||||
```bash
|
||||
# File operations
|
||||
ls -la # List files with details
|
||||
find . -name "*.ts" # Find TypeScript files
|
||||
grep -r "pattern" . # Search for patterns
|
||||
|
||||
# Git operations
|
||||
git status # Check working directory status
|
||||
git add . # Stage changes
|
||||
git commit -m "message" # Commit with message
|
||||
|
||||
# Process management
|
||||
ps aux | grep node # Find Node.js processes
|
||||
kill -9 <pid> # Force kill process
|
||||
```
|
||||
|
||||
## Plugin Development Testing
|
||||
- Install plugin in Obsidian vault at `.obsidian/plugins/obsidian-typst-pdf-export/`
|
||||
- Use `npm run dev` for live reloading during development
|
||||
- Restart Obsidian or reload plugin after changes
|
||||
|
||||
## External Tool Management (Future)
|
||||
```bash
|
||||
# Check Pandoc installation
|
||||
pandoc --version
|
||||
|
||||
# Check Typst installation
|
||||
typst --version
|
||||
|
||||
# Install via package managers
|
||||
brew install pandoc typst # macOS Homebrew
|
||||
```
|
||||
@@ -1,52 +0,0 @@
|
||||
# Task Completion Checklist
|
||||
|
||||
## Before Marking Task Complete
|
||||
|
||||
### 1. Code Quality Verification
|
||||
```bash
|
||||
# Run type checking
|
||||
npm run build # Includes tsc -noEmit -skipLibCheck
|
||||
|
||||
# Verify no compilation errors
|
||||
# Check that main.js is generated successfully
|
||||
```
|
||||
|
||||
### 2. Code Style Compliance
|
||||
- Follow existing naming conventions (PascalCase for classes, camelCase for methods)
|
||||
- Ensure proper TypeScript typing throughout
|
||||
- Fix any type inconsistencies (like MyPluginSettings → obsidianTypstPDFExportSettings)
|
||||
- Maintain consistent indentation and formatting
|
||||
|
||||
### 3. Plugin Functionality Testing
|
||||
- Test in actual Obsidian environment
|
||||
- Verify plugin loads without errors
|
||||
- Test core functionality manually
|
||||
- Check command palette integration
|
||||
- Verify settings persistence
|
||||
|
||||
### 4. Integration Verification
|
||||
- Ensure Obsidian API usage follows best practices
|
||||
- Check for proper lifecycle management (onload/onunload)
|
||||
- Verify external tool dependencies are handled gracefully
|
||||
- Test error handling and user feedback
|
||||
|
||||
### 5. Documentation Updates
|
||||
- Update relevant comments in code
|
||||
- Document any new interfaces or significant changes
|
||||
- Keep PRD alignment in mind for feature completeness
|
||||
|
||||
## Development Workflow Steps
|
||||
1. Make code changes
|
||||
2. Run `npm run dev` for live development
|
||||
3. Test in Obsidian environment
|
||||
4. Run `npm run build` to verify production build
|
||||
5. Check for TypeScript errors and resolve
|
||||
6. Verify plugin functionality works as expected
|
||||
7. Mark task complete in Task Master
|
||||
|
||||
## Quality Gates
|
||||
- ✅ No TypeScript compilation errors
|
||||
- ✅ Plugin loads in Obsidian without errors
|
||||
- ✅ Core functionality works as designed
|
||||
- ✅ Code follows established patterns and style
|
||||
- ✅ External dependencies handled appropriately
|
||||
@@ -1,33 +0,0 @@
|
||||
# Tech Stack - Obsidian Typst PDF Export Plugin
|
||||
|
||||
## Core Technologies
|
||||
- **TypeScript 4.7.4**: Primary language with strict type checking
|
||||
- **Node.js 16+**: Runtime environment requirement
|
||||
- **esbuild 0.17.3**: Fast bundler and build system
|
||||
- **Obsidian API**: Plugin framework and UI integration
|
||||
|
||||
## Build System
|
||||
- **esbuild**: Bundling, compilation, and development server
|
||||
- **TypeScript Compiler**: Type checking (tsc -noEmit)
|
||||
- **Source Maps**: Inline source maps for development
|
||||
|
||||
## Code Quality Tools
|
||||
- **ESLint**: Linting with TypeScript-specific rules
|
||||
- **@typescript-eslint**: TypeScript ESLint integration
|
||||
- **Prettier**: Code formatting (via .prettierrc in reference)
|
||||
|
||||
## External Tools (Planned)
|
||||
- **Pandoc**: Markdown to intermediate format conversion
|
||||
- **Typst**: Superior typesetting and PDF generation
|
||||
- **System Dependencies**: Will require external tool management
|
||||
|
||||
## Development Dependencies
|
||||
- obsidian: Latest Obsidian API
|
||||
- @types/node: Node.js type definitions
|
||||
- builtin-modules: Node.js built-in module handling
|
||||
- tslib: TypeScript runtime library
|
||||
|
||||
## Module System
|
||||
- **Format**: CommonJS (cjs) for Obsidian compatibility
|
||||
- **Target**: ES2018 for broad compatibility
|
||||
- **Externals**: Obsidian API and built-in modules excluded from bundle
|
||||
@@ -1,68 +0,0 @@
|
||||
# language of the project (csharp, python, rust, java, typescript, go, cpp, or ruby)
|
||||
# * For C, use cpp
|
||||
# * For JavaScript, use typescript
|
||||
# Special requirements:
|
||||
# * csharp: Requires the presence of a .sln file in the project folder.
|
||||
language: typescript
|
||||
|
||||
# whether to use the project's gitignore file to ignore files
|
||||
# Added on 2025-04-07
|
||||
ignore_all_files_in_gitignore: true
|
||||
# list of additional paths to ignore
|
||||
# same syntax as gitignore, so you can use * and **
|
||||
# Was previously called `ignored_dirs`, please update your config if you are using that.
|
||||
# Added (renamed) on 2025-04-07
|
||||
ignored_paths: []
|
||||
|
||||
# whether the project is in read-only mode
|
||||
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
|
||||
# Added on 2025-04-18
|
||||
read_only: false
|
||||
|
||||
|
||||
# list of tool names to exclude. We recommend not excluding any tools, see the readme for more details.
|
||||
# Below is the complete list of tools for convenience.
|
||||
# To make sure you have the latest list of tools, and to view their descriptions,
|
||||
# execute `uv run scripts/print_tool_overview.py`.
|
||||
#
|
||||
# * `activate_project`: Activates a project by name.
|
||||
# * `check_onboarding_performed`: Checks whether project onboarding was already performed.
|
||||
# * `create_text_file`: Creates/overwrites a file in the project directory.
|
||||
# * `delete_lines`: Deletes a range of lines within a file.
|
||||
# * `delete_memory`: Deletes a memory from Serena's project-specific memory store.
|
||||
# * `execute_shell_command`: Executes a shell command.
|
||||
# * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced.
|
||||
# * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type).
|
||||
# * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type).
|
||||
# * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.
|
||||
# * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file.
|
||||
# * `initial_instructions`: Gets the initial instructions for the current project.
|
||||
# Should only be used in settings where the system prompt cannot be set,
|
||||
# e.g. in clients you have no control over, like Claude Desktop.
|
||||
# * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol.
|
||||
# * `insert_at_line`: Inserts content at a given line in a file.
|
||||
# * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol.
|
||||
# * `list_dir`: Lists files and directories in the given directory (optionally with recursion).
|
||||
# * `list_memories`: Lists memories in Serena's project-specific memory store.
|
||||
# * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building).
|
||||
# * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context).
|
||||
# * `read_file`: Reads a file within the project directory.
|
||||
# * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store.
|
||||
# * `remove_project`: Removes a project from the Serena configuration.
|
||||
# * `replace_lines`: Replaces a range of lines within a file with new content.
|
||||
# * `replace_symbol_body`: Replaces the full definition of a symbol.
|
||||
# * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen.
|
||||
# * `search_for_pattern`: Performs a search for a pattern in the project.
|
||||
# * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase.
|
||||
# * `switch_modes`: Activates modes by providing a list of their names
|
||||
# * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information.
|
||||
# * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task.
|
||||
# * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed.
|
||||
# * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store.
|
||||
excluded_tools: []
|
||||
|
||||
# initial prompt for the project. It will always be given to the LLM upon activating the project
|
||||
# (contrary to the memories, which are loaded on demand).
|
||||
initial_prompt: ""
|
||||
|
||||
project_name: "obsidian-typst-pdf-export"
|
||||
@@ -1,417 +0,0 @@
|
||||
# Task Master AI - Agent Integration Guide
|
||||
|
||||
## Essential Commands
|
||||
|
||||
### Core Workflow Commands
|
||||
|
||||
```bash
|
||||
# Project Setup
|
||||
task-master init # Initialize Task Master in current project
|
||||
task-master parse-prd .taskmaster/docs/prd.txt # Generate tasks from PRD document
|
||||
task-master models --setup # Configure AI models interactively
|
||||
|
||||
# Daily Development Workflow
|
||||
task-master list # Show all tasks with status
|
||||
task-master next # Get next available task to work on
|
||||
task-master show <id> # View detailed task information (e.g., task-master show 1.2)
|
||||
task-master set-status --id=<id> --status=done # Mark task complete
|
||||
|
||||
# Task Management
|
||||
task-master add-task --prompt="description" --research # Add new task with AI assistance
|
||||
task-master expand --id=<id> --research --force # Break task into subtasks
|
||||
task-master update-task --id=<id> --prompt="changes" # Update specific task
|
||||
task-master update --from=<id> --prompt="changes" # Update multiple tasks from ID onwards
|
||||
task-master update-subtask --id=<id> --prompt="notes" # Add implementation notes to subtask
|
||||
|
||||
# Analysis & Planning
|
||||
task-master analyze-complexity --research # Analyze task complexity
|
||||
task-master complexity-report # View complexity analysis
|
||||
task-master expand --all --research # Expand all eligible tasks
|
||||
|
||||
# Dependencies & Organization
|
||||
task-master add-dependency --id=<id> --depends-on=<id> # Add task dependency
|
||||
task-master move --from=<id> --to=<id> # Reorganize task hierarchy
|
||||
task-master validate-dependencies # Check for dependency issues
|
||||
task-master generate # Update task markdown files (usually auto-called)
|
||||
```
|
||||
|
||||
## Key Files & Project Structure
|
||||
|
||||
### Core Files
|
||||
|
||||
- `.taskmaster/tasks/tasks.json` - Main task data file (auto-managed)
|
||||
- `.taskmaster/config.json` - AI model configuration (use `task-master models` to modify)
|
||||
- `.taskmaster/docs/prd.txt` - Product Requirements Document for parsing
|
||||
- `.taskmaster/tasks/*.txt` - Individual task files (auto-generated from tasks.json)
|
||||
- `.env` - API keys for CLI usage
|
||||
|
||||
### Claude Code Integration Files
|
||||
|
||||
- `CLAUDE.md` - Auto-loaded context for Claude Code (this file)
|
||||
- `.claude/settings.json` - Claude Code tool allowlist and preferences
|
||||
- `.claude/commands/` - Custom slash commands for repeated workflows
|
||||
- `.mcp.json` - MCP server configuration (project-specific)
|
||||
|
||||
### Directory Structure
|
||||
|
||||
```
|
||||
project/
|
||||
├── .taskmaster/
|
||||
│ ├── tasks/ # Task files directory
|
||||
│ │ ├── tasks.json # Main task database
|
||||
│ │ ├── task-1.md # Individual task files
|
||||
│ │ └── task-2.md
|
||||
│ ├── docs/ # Documentation directory
|
||||
│ │ ├── prd.txt # Product requirements
|
||||
│ ├── reports/ # Analysis reports directory
|
||||
│ │ └── task-complexity-report.json
|
||||
│ ├── templates/ # Template files
|
||||
│ │ └── example_prd.txt # Example PRD template
|
||||
│ └── config.json # AI models & settings
|
||||
├── .claude/
|
||||
│ ├── settings.json # Claude Code configuration
|
||||
│ └── commands/ # Custom slash commands
|
||||
├── .env # API keys
|
||||
├── .mcp.json # MCP configuration
|
||||
└── CLAUDE.md # This file - auto-loaded by Claude Code
|
||||
```
|
||||
|
||||
## MCP Integration
|
||||
|
||||
Task Master provides an MCP server that Claude Code can connect to. Configure in `.mcp.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"task-master-ai": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "--package=task-master-ai", "task-master-ai"],
|
||||
"env": {
|
||||
"ANTHROPIC_API_KEY": "your_key_here",
|
||||
"PERPLEXITY_API_KEY": "your_key_here",
|
||||
"OPENAI_API_KEY": "OPENAI_API_KEY_HERE",
|
||||
"GOOGLE_API_KEY": "GOOGLE_API_KEY_HERE",
|
||||
"XAI_API_KEY": "XAI_API_KEY_HERE",
|
||||
"OPENROUTER_API_KEY": "OPENROUTER_API_KEY_HERE",
|
||||
"MISTRAL_API_KEY": "MISTRAL_API_KEY_HERE",
|
||||
"AZURE_OPENAI_API_KEY": "AZURE_OPENAI_API_KEY_HERE",
|
||||
"OLLAMA_API_KEY": "OLLAMA_API_KEY_HERE"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Essential MCP Tools
|
||||
|
||||
```javascript
|
||||
help; // = shows available taskmaster commands
|
||||
// Project setup
|
||||
initialize_project; // = task-master init
|
||||
parse_prd; // = task-master parse-prd
|
||||
|
||||
// Daily workflow
|
||||
get_tasks; // = task-master list
|
||||
next_task; // = task-master next
|
||||
get_task; // = task-master show <id>
|
||||
set_task_status; // = task-master set-status
|
||||
|
||||
// Task management
|
||||
add_task; // = task-master add-task
|
||||
expand_task; // = task-master expand
|
||||
update_task; // = task-master update-task
|
||||
update_subtask; // = task-master update-subtask
|
||||
update; // = task-master update
|
||||
|
||||
// Analysis
|
||||
analyze_project_complexity; // = task-master analyze-complexity
|
||||
complexity_report; // = task-master complexity-report
|
||||
```
|
||||
|
||||
## Claude Code Workflow Integration
|
||||
|
||||
### Standard Development Workflow
|
||||
|
||||
#### 1. Project Initialization
|
||||
|
||||
```bash
|
||||
# Initialize Task Master
|
||||
task-master init
|
||||
|
||||
# Create or obtain PRD, then parse it
|
||||
task-master parse-prd .taskmaster/docs/prd.txt
|
||||
|
||||
# Analyze complexity and expand tasks
|
||||
task-master analyze-complexity --research
|
||||
task-master expand --all --research
|
||||
```
|
||||
|
||||
If tasks already exist, another PRD can be parsed (with new information only!) using parse-prd with --append flag. This will add the generated tasks to the existing list of tasks..
|
||||
|
||||
#### 2. Daily Development Loop
|
||||
|
||||
```bash
|
||||
# Start each session
|
||||
task-master next # Find next available task
|
||||
task-master show <id> # Review task details
|
||||
|
||||
# During implementation, check in code context into the tasks and subtasks
|
||||
task-master update-subtask --id=<id> --prompt="implementation notes..."
|
||||
|
||||
# Complete tasks
|
||||
task-master set-status --id=<id> --status=done
|
||||
```
|
||||
|
||||
#### 3. Multi-Claude Workflows
|
||||
|
||||
For complex projects, use multiple Claude Code sessions:
|
||||
|
||||
```bash
|
||||
# Terminal 1: Main implementation
|
||||
cd project && claude
|
||||
|
||||
# Terminal 2: Testing and validation
|
||||
cd project-test-worktree && claude
|
||||
|
||||
# Terminal 3: Documentation updates
|
||||
cd project-docs-worktree && claude
|
||||
```
|
||||
|
||||
### Custom Slash Commands
|
||||
|
||||
Create `.claude/commands/taskmaster-next.md`:
|
||||
|
||||
```markdown
|
||||
Find the next available Task Master task and show its details.
|
||||
|
||||
Steps:
|
||||
|
||||
1. Run `task-master next` to get the next task
|
||||
2. If a task is available, run `task-master show <id>` for full details
|
||||
3. Provide a summary of what needs to be implemented
|
||||
4. Suggest the first implementation step
|
||||
```
|
||||
|
||||
Create `.claude/commands/taskmaster-complete.md`:
|
||||
|
||||
```markdown
|
||||
Complete a Task Master task: $ARGUMENTS
|
||||
|
||||
Steps:
|
||||
|
||||
1. Review the current task with `task-master show $ARGUMENTS`
|
||||
2. Verify all implementation is complete
|
||||
3. Run any tests related to this task
|
||||
4. Mark as complete: `task-master set-status --id=$ARGUMENTS --status=done`
|
||||
5. Show the next available task with `task-master next`
|
||||
```
|
||||
|
||||
## Tool Allowlist Recommendations
|
||||
|
||||
Add to `.claude/settings.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"allowedTools": [
|
||||
"Edit",
|
||||
"Bash(task-master *)",
|
||||
"Bash(git commit:*)",
|
||||
"Bash(git add:*)",
|
||||
"Bash(npm run *)",
|
||||
"mcp__task_master_ai__*"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Configuration & Setup
|
||||
|
||||
### API Keys Required
|
||||
|
||||
At least **one** of these API keys must be configured:
|
||||
|
||||
- `ANTHROPIC_API_KEY` (Claude models) - **Recommended**
|
||||
- `PERPLEXITY_API_KEY` (Research features) - **Highly recommended**
|
||||
- `OPENAI_API_KEY` (GPT models)
|
||||
- `GOOGLE_API_KEY` (Gemini models)
|
||||
- `MISTRAL_API_KEY` (Mistral models)
|
||||
- `OPENROUTER_API_KEY` (Multiple models)
|
||||
- `XAI_API_KEY` (Grok models)
|
||||
|
||||
An API key is required for any provider used across any of the 3 roles defined in the `models` command.
|
||||
|
||||
### Model Configuration
|
||||
|
||||
```bash
|
||||
# Interactive setup (recommended)
|
||||
task-master models --setup
|
||||
|
||||
# Set specific models
|
||||
task-master models --set-main claude-3-5-sonnet-20241022
|
||||
task-master models --set-research perplexity-llama-3.1-sonar-large-128k-online
|
||||
task-master models --set-fallback gpt-4o-mini
|
||||
```
|
||||
|
||||
## Task Structure & IDs
|
||||
|
||||
### Task ID Format
|
||||
|
||||
- Main tasks: `1`, `2`, `3`, etc.
|
||||
- Subtasks: `1.1`, `1.2`, `2.1`, etc.
|
||||
- Sub-subtasks: `1.1.1`, `1.1.2`, etc.
|
||||
|
||||
### Task Status Values
|
||||
|
||||
- `pending` - Ready to work on
|
||||
- `in-progress` - Currently being worked on
|
||||
- `done` - Completed and verified
|
||||
- `deferred` - Postponed
|
||||
- `cancelled` - No longer needed
|
||||
- `blocked` - Waiting on external factors
|
||||
|
||||
### Task Fields
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "1.2",
|
||||
"title": "Implement user authentication",
|
||||
"description": "Set up JWT-based auth system",
|
||||
"status": "pending",
|
||||
"priority": "high",
|
||||
"dependencies": ["1.1"],
|
||||
"details": "Use bcrypt for hashing, JWT for tokens...",
|
||||
"testStrategy": "Unit tests for auth functions, integration tests for login flow",
|
||||
"subtasks": []
|
||||
}
|
||||
```
|
||||
|
||||
## Claude Code Best Practices with Task Master
|
||||
|
||||
### Context Management
|
||||
|
||||
- Use `/clear` between different tasks to maintain focus
|
||||
- This CLAUDE.md file is automatically loaded for context
|
||||
- Use `task-master show <id>` to pull specific task context when needed
|
||||
|
||||
### Iterative Implementation
|
||||
|
||||
1. `task-master show <subtask-id>` - Understand requirements
|
||||
2. Explore codebase and plan implementation
|
||||
3. `task-master update-subtask --id=<id> --prompt="detailed plan"` - Log plan
|
||||
4. `task-master set-status --id=<id> --status=in-progress` - Start work
|
||||
5. Implement code following logged plan
|
||||
6. `task-master update-subtask --id=<id> --prompt="what worked/didn't work"` - Log progress
|
||||
7. `task-master set-status --id=<id> --status=done` - Complete task
|
||||
|
||||
### Complex Workflows with Checklists
|
||||
|
||||
For large migrations or multi-step processes:
|
||||
|
||||
1. Create a markdown PRD file describing the new changes: `touch task-migration-checklist.md` (prds can be .txt or .md)
|
||||
2. Use Taskmaster to parse the new prd with `task-master parse-prd --append` (also available in MCP)
|
||||
3. Use Taskmaster to expand the newly generated tasks into subtasks. Consdier using `analyze-complexity` with the correct --to and --from IDs (the new ids) to identify the ideal subtask amounts for each task. Then expand them.
|
||||
4. Work through items systematically, checking them off as completed
|
||||
5. Use `task-master update-subtask` to log progress on each task/subtask and/or updating/researching them before/during implementation if getting stuck
|
||||
|
||||
### Git Integration
|
||||
|
||||
Task Master works well with `gh` CLI:
|
||||
|
||||
```bash
|
||||
# Create PR for completed task
|
||||
gh pr create --title "Complete task 1.2: User authentication" --body "Implements JWT auth system as specified in task 1.2"
|
||||
|
||||
# Reference task in commits
|
||||
git commit -m "feat: implement JWT auth (task 1.2)"
|
||||
```
|
||||
|
||||
### Parallel Development with Git Worktrees
|
||||
|
||||
```bash
|
||||
# Create worktrees for parallel task development
|
||||
git worktree add ../project-auth feature/auth-system
|
||||
git worktree add ../project-api feature/api-refactor
|
||||
|
||||
# Run Claude Code in each worktree
|
||||
cd ../project-auth && claude # Terminal 1: Auth work
|
||||
cd ../project-api && claude # Terminal 2: API work
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### AI Commands Failing
|
||||
|
||||
```bash
|
||||
# Check API keys are configured
|
||||
cat .env # For CLI usage
|
||||
|
||||
# Verify model configuration
|
||||
task-master models
|
||||
|
||||
# Test with different model
|
||||
task-master models --set-fallback gpt-4o-mini
|
||||
```
|
||||
|
||||
### MCP Connection Issues
|
||||
|
||||
- Check `.mcp.json` configuration
|
||||
- Verify Node.js installation
|
||||
- Use `--mcp-debug` flag when starting Claude Code
|
||||
- Use CLI as fallback if MCP unavailable
|
||||
|
||||
### Task File Sync Issues
|
||||
|
||||
```bash
|
||||
# Regenerate task files from tasks.json
|
||||
task-master generate
|
||||
|
||||
# Fix dependency issues
|
||||
task-master fix-dependencies
|
||||
```
|
||||
|
||||
DO NOT RE-INITIALIZE. That will not do anything beyond re-adding the same Taskmaster core files.
|
||||
|
||||
## Important Notes
|
||||
|
||||
### AI-Powered Operations
|
||||
|
||||
These commands make AI calls and may take up to a minute:
|
||||
|
||||
- `parse_prd` / `task-master parse-prd`
|
||||
- `analyze_project_complexity` / `task-master analyze-complexity`
|
||||
- `expand_task` / `task-master expand`
|
||||
- `expand_all` / `task-master expand --all`
|
||||
- `add_task` / `task-master add-task`
|
||||
- `update` / `task-master update`
|
||||
- `update_task` / `task-master update-task`
|
||||
- `update_subtask` / `task-master update-subtask`
|
||||
|
||||
### File Management
|
||||
|
||||
- Never manually edit `tasks.json` - use commands instead
|
||||
- Never manually edit `.taskmaster/config.json` - use `task-master models`
|
||||
- Task markdown files in `tasks/` are auto-generated
|
||||
- Run `task-master generate` after manual changes to tasks.json
|
||||
|
||||
### Claude Code Session Management
|
||||
|
||||
- Use `/clear` frequently to maintain focused context
|
||||
- Create custom slash commands for repeated Task Master workflows
|
||||
- Configure tool allowlist to streamline permissions
|
||||
- Use headless mode for automation: `claude -p "task-master next"`
|
||||
|
||||
### Multi-Task Updates
|
||||
|
||||
- Use `update --from=<id>` to update multiple future tasks
|
||||
- Use `update-task --id=<id>` for single task updates
|
||||
- Use `update-subtask --id=<id>` for implementation logging
|
||||
|
||||
### Research Mode
|
||||
|
||||
- Add `--research` flag for research-based AI enhancement
|
||||
- Requires a research model API key like Perplexity (`PERPLEXITY_API_KEY`) in environment
|
||||
- Provides more informed task creation and updates
|
||||
- Recommended for complex technical tasks
|
||||
|
||||
---
|
||||
|
||||
_This guide ensures Claude Code has immediate access to Task Master's essential functionality for agentic development workflows._
|
||||
@@ -1,37 +0,0 @@
|
||||
{
|
||||
"models": {
|
||||
"main": {
|
||||
"provider": "claude-code",
|
||||
"modelId": "sonnet",
|
||||
"maxTokens": 64000,
|
||||
"temperature": 0.2
|
||||
},
|
||||
"research": {
|
||||
"provider": "claude-code",
|
||||
"modelId": "opus",
|
||||
"maxTokens": 32000,
|
||||
"temperature": 0.1
|
||||
},
|
||||
"fallback": {
|
||||
"provider": "claude-code",
|
||||
"modelId": "sonnet",
|
||||
"maxTokens": 64000,
|
||||
"temperature": 0.2
|
||||
}
|
||||
},
|
||||
"global": {
|
||||
"logLevel": "info",
|
||||
"debug": false,
|
||||
"defaultNumTasks": 10,
|
||||
"defaultSubtasks": 5,
|
||||
"defaultPriority": "medium",
|
||||
"projectName": "Taskmaster",
|
||||
"ollamaBaseURL": "http://localhost:11434/api",
|
||||
"bedrockBaseURL": "https://bedrock.us-east-1.amazonaws.com",
|
||||
"responseLanguage": "English",
|
||||
"defaultTag": "master",
|
||||
"azureOpenaiBaseURL": "https://your-endpoint.openai.azure.com/",
|
||||
"userId": "1234567890"
|
||||
},
|
||||
"claudeCode": {}
|
||||
}
|
||||
@@ -1,392 +0,0 @@
|
||||
# Product Requirements Document: Obsidian Typst PDF Export
|
||||
|
||||
## Executive Summary
|
||||
|
||||
**Product Name:** Obsidian Typst PDF Export
|
||||
**Version:** 1.0.0
|
||||
**Goal:** Create an Obsidian plugin that exports notes to aesthetically superior PDFs using Typst, with a unique single-page PDF option that dynamically adjusts page height to content.
|
||||
|
||||
## Problem Statement
|
||||
|
||||
Current PDF export solutions in Obsidian have limitations:
|
||||
- Standard PDF exports lack aesthetic appeal and typography control
|
||||
- Embedded images and PDFs format poorly
|
||||
- No option for continuous single-page PDFs that adapt to content length
|
||||
- Limited typography and layout customization
|
||||
- Plugin-specific CSS styles are often lost in exports
|
||||
|
||||
## Solution Overview
|
||||
|
||||
A plugin that leverages Typst's superior typesetting capabilities through a Markdown → Pandoc → Typst → PDF pipeline, offering both standard pagination and innovative single-page exports, with optional CSS style preservation.
|
||||
|
||||
## Core Features
|
||||
|
||||
### 1. Export Modes
|
||||
|
||||
#### 1.1 Typography-Pure Export (Default)
|
||||
- **Pipeline:** Markdown → Pandoc → Typst → PDF
|
||||
- **Benefits:** Superior typography, consistent formatting, academic quality
|
||||
- **Use Cases:** Papers, documentation, books, reports
|
||||
|
||||
#### 1.2 Style-Preserving Export
|
||||
- **Pipeline:** Markdown → HTML+CSS → Typst-enhanced → PDF
|
||||
- **Benefits:** Maintains Obsidian theme and plugin styles
|
||||
- **Use Cases:** Notes with custom styling, plugin-rendered content
|
||||
|
||||
### 2. Export Formats
|
||||
|
||||
#### 2.1 Standard PDF Export
|
||||
- Traditional paginated PDFs
|
||||
- Page sizes: A4, A5, Letter, Legal, Custom
|
||||
- Portrait/Landscape orientation
|
||||
- Configurable margins and headers/footers
|
||||
|
||||
#### 2.2 Single-Page PDF Export
|
||||
- Continuous PDF with dynamic height
|
||||
- No page breaks - content flows continuously
|
||||
- Ideal for web viewing and documentation
|
||||
- Implementation using Typst's `height: auto` feature
|
||||
|
||||
### 3. Conversion Pipeline
|
||||
|
||||
```
|
||||
Obsidian Note
|
||||
↓
|
||||
[Preprocess Obsidian Syntax]
|
||||
↓
|
||||
[Extract Frontmatter & Metadata]
|
||||
↓
|
||||
[Typography Mode] ←→ [Style Mode]
|
||||
↓ ↓
|
||||
[Pandoc → Typst] [Extract CSS]
|
||||
↓ ↓
|
||||
[Apply Template] [Map to Typst]
|
||||
↓ ↓
|
||||
└──────────┬──────────┘
|
||||
↓
|
||||
[Generate PDF]
|
||||
↓
|
||||
[Post-process]
|
||||
```
|
||||
|
||||
## Technical Architecture
|
||||
|
||||
### Directory Structure
|
||||
|
||||
```
|
||||
src/
|
||||
├── converters/
|
||||
│ ├── markdown-preprocessor.ts # Obsidian syntax handling
|
||||
│ ├── css-extractor.ts # Capture Obsidian styles
|
||||
│ ├── html-renderer.ts # HTML+CSS rendering
|
||||
│ ├── pandoc-typst.ts # Pandoc-Typst conversion
|
||||
│ └── css-to-typst-mapper.ts # Style mapping
|
||||
├── exporters/
|
||||
│ ├── standard-exporter.ts # Regular pagination
|
||||
│ ├── single-page-exporter.ts # Dynamic height
|
||||
│ └── batch-exporter.ts # Folder/vault export
|
||||
├── templates/
|
||||
│ ├── default.typ # Standard template
|
||||
│ ├── article.typ # Academic article
|
||||
│ ├── report.typ # Business report
|
||||
│ └── single-page.typ # Continuous page
|
||||
├── ui/
|
||||
│ ├── export-modal.ts # Export configuration
|
||||
│ ├── settings-tab.ts # Plugin settings
|
||||
│ └── progress-indicator.ts # Export progress
|
||||
├── utils/
|
||||
│ ├── dependency-checker.ts # Verify Pandoc/Typst
|
||||
│ ├── file-manager.ts # Output handling
|
||||
│ └── error-handler.ts # User feedback
|
||||
└── main.ts # Plugin entry point
|
||||
```
|
||||
|
||||
### Key Components
|
||||
|
||||
#### Markdown Preprocessor
|
||||
- Convert wikilinks `[[note]]` to standard markdown links
|
||||
- Handle Obsidian embeds `![[image.png]]` and `![[note.md]]`
|
||||
- Process callouts and custom code blocks
|
||||
- Preserve frontmatter for template variables
|
||||
|
||||
#### CSS Extractor
|
||||
```typescript
|
||||
function getAllStyles(): string[] {
|
||||
const cssTexts: string[] = [];
|
||||
Array.from(document.styleSheets).forEach((sheet) => {
|
||||
Array.from(sheet.cssRules).forEach((rule) => {
|
||||
cssTexts.push(rule.cssText);
|
||||
});
|
||||
});
|
||||
return cssTexts;
|
||||
}
|
||||
```
|
||||
|
||||
#### Pandoc-Typst Converter
|
||||
```typescript
|
||||
async function convertToTypst(markdown: string, config: ExportConfig) {
|
||||
const args = [
|
||||
'input.md',
|
||||
'-o', 'output.pdf',
|
||||
'--pdf-engine=typst',
|
||||
'-V', `template=${config.template}`,
|
||||
...config.variables.map(([k, v]) => ['-V', `${k}=${v}`]).flat()
|
||||
];
|
||||
return await execPandoc(args);
|
||||
}
|
||||
```
|
||||
|
||||
#### Single-Page Template
|
||||
```typst
|
||||
#set page(
|
||||
paper: "a4",
|
||||
height: auto, // Dynamic height
|
||||
margin: (x: 2cm, y: 2cm),
|
||||
)
|
||||
|
||||
#set text(
|
||||
font: $font$,
|
||||
size: $fontSize$,
|
||||
)
|
||||
|
||||
#set pagebreak(weak: true) // No page breaks
|
||||
|
||||
$body$
|
||||
```
|
||||
|
||||
## User Experience
|
||||
|
||||
### Export Workflow
|
||||
|
||||
1. **Initiate Export**
|
||||
- Right-click on note/folder → "Export to Typst PDF"
|
||||
- Command palette → "Typst PDF: Export current note"
|
||||
- Ribbon icon for quick export
|
||||
|
||||
2. **Configure Export**
|
||||
- Select export mode (Typography/Style-preserving)
|
||||
- Choose format (Standard/Single-page)
|
||||
- Pick template (Default/Article/Report/Custom)
|
||||
- Set output location
|
||||
|
||||
3. **Process**
|
||||
- Progress indicator shows conversion steps
|
||||
- Cancel option available
|
||||
- Error messages if dependencies missing
|
||||
|
||||
4. **Complete**
|
||||
- PDF opens automatically (configurable)
|
||||
- Success notification with file location
|
||||
- Recent exports in status bar
|
||||
|
||||
### Settings Interface
|
||||
|
||||
```typescript
|
||||
interface PluginSettings {
|
||||
// Paths
|
||||
pandocPath: string; // Path to Pandoc executable
|
||||
typstPath: string; // Path to Typst executable
|
||||
outputFolder: string; // Default export location
|
||||
|
||||
// Defaults
|
||||
defaultTemplate: string; // Template name
|
||||
defaultFormat: 'standard' | 'single-page';
|
||||
defaultExportMode: 'typography' | 'style-preserving';
|
||||
|
||||
// Typography
|
||||
defaultFont: string; // Main text font
|
||||
defaultFontSize: number; // In points
|
||||
mathFont: string; // Math equations font
|
||||
codeFont: string; // Code blocks font
|
||||
|
||||
// Page Setup
|
||||
defaultPageSize: string; // A4, Letter, etc.
|
||||
defaultOrientation: 'portrait' | 'landscape';
|
||||
defaultMargins: {
|
||||
top: string;
|
||||
bottom: string;
|
||||
left: string;
|
||||
right: string;
|
||||
};
|
||||
|
||||
// Behavior
|
||||
openAfterExport: boolean; // Auto-open PDF
|
||||
preserveFolderStructure: boolean; // For batch export
|
||||
includeMetadata: boolean; // Export frontmatter
|
||||
includeCssStyles: boolean; // Capture CSS
|
||||
|
||||
// Advanced
|
||||
pandocArgs: string; // Additional Pandoc arguments
|
||||
typstArgs: string; // Additional Typst arguments
|
||||
customTemplatesFolder: string; // User templates location
|
||||
concurrency: number; // Batch export parallelism
|
||||
debugMode: boolean; // Show conversion details
|
||||
}
|
||||
```
|
||||
|
||||
## Implementation Phases
|
||||
|
||||
### Phase 1: Core Foundation (Week 1)
|
||||
- [ ] Clean up template code and fix TypeScript issues
|
||||
- [ ] Set up project structure and interfaces
|
||||
- [ ] Implement basic Pandoc integration
|
||||
- [ ] Create minimal Typst template
|
||||
- [ ] Test basic markdown → PDF conversion
|
||||
|
||||
### Phase 2: Obsidian Integration (Week 2)
|
||||
- [ ] Preprocess wikilinks and embeds
|
||||
- [ ] Handle frontmatter extraction
|
||||
- [ ] Process callouts and custom blocks
|
||||
- [ ] Support tags and metadata
|
||||
- [ ] Test with various Obsidian features
|
||||
|
||||
### Phase 3: Single-Page Feature (Week 3)
|
||||
- [ ] Create single-page Typst template
|
||||
- [ ] Implement height calculation algorithm
|
||||
- [ ] Handle content overflow edge cases
|
||||
- [ ] Test with documents of various lengths
|
||||
- [ ] Optimize performance for large documents
|
||||
|
||||
### Phase 4: Style Preservation (Week 4)
|
||||
- [ ] Extract CSS from Obsidian
|
||||
- [ ] Build CSS to Typst mapping system
|
||||
- [ ] Handle plugin-specific styles
|
||||
- [ ] Create hybrid export mode
|
||||
- [ ] Test with popular themes and plugins
|
||||
|
||||
### Phase 5: UI and Polish (Week 5)
|
||||
- [ ] Build export configuration modal
|
||||
- [ ] Create settings tab
|
||||
- [ ] Add template management
|
||||
- [ ] Implement progress indicators
|
||||
- [ ] Add comprehensive error handling
|
||||
|
||||
### Phase 6: Advanced Features (Week 6)
|
||||
- [ ] Batch export for folders/vault
|
||||
- [ ] Custom template support
|
||||
- [ ] Export presets/profiles
|
||||
- [ ] Command-line interface
|
||||
- [ ] Documentation and examples
|
||||
|
||||
## Technical Considerations
|
||||
|
||||
### Dependencies
|
||||
- **Pandoc:** Required, version 3.0+
|
||||
- **Typst:** Required, version 0.11+
|
||||
- **Node.js:** Built-in with Obsidian
|
||||
- **pdf-lib:** Bundled for PDF manipulation
|
||||
|
||||
### Performance Targets
|
||||
- Single note export: < 3 seconds
|
||||
- 10-page document: < 5 seconds
|
||||
- 100-page document: < 30 seconds
|
||||
- Batch export: Parallel processing with configurable concurrency
|
||||
|
||||
### Error Handling
|
||||
- Clear messages for missing dependencies
|
||||
- Fallback options when features unavailable
|
||||
- Detailed logs in debug mode
|
||||
- Recovery from partial failures
|
||||
|
||||
### Compatibility
|
||||
- Obsidian version: 0.15.0+
|
||||
- Operating Systems: Windows, macOS, Linux
|
||||
- Themes: Test with top 10 popular themes
|
||||
- Plugins: Ensure compatibility with:
|
||||
- Dataview
|
||||
- Templater
|
||||
- Email Block Plugin
|
||||
- Excalidraw
|
||||
- Advanced Tables
|
||||
|
||||
## Success Metrics
|
||||
|
||||
### Functional Requirements
|
||||
- ✅ Export completes successfully for 95% of notes
|
||||
- ✅ Single-page PDFs render without content cutoff
|
||||
- ✅ Obsidian syntax correctly converted (90%+ accuracy)
|
||||
- ✅ CSS styles preserved when requested (best effort)
|
||||
- ✅ Templates customizable without code changes
|
||||
|
||||
### Performance Requirements
|
||||
- ✅ Export time within targets for 90% of documents
|
||||
- ✅ Memory usage < 500MB for typical exports
|
||||
- ✅ No UI freezing during export
|
||||
|
||||
### User Experience
|
||||
- ✅ Clear error messages with actionable solutions
|
||||
- ✅ Intuitive configuration interface
|
||||
- ✅ Consistent export quality
|
||||
- ✅ Reliable batch processing
|
||||
|
||||
## Future Enhancements
|
||||
|
||||
### Version 1.1
|
||||
- Live preview in export modal
|
||||
- More built-in templates
|
||||
|
||||
### Version 1.2
|
||||
- Bibliography and citation support
|
||||
- Table of contents generation
|
||||
- Index generation
|
||||
- Cross-reference handling
|
||||
|
||||
## Risks and Mitigation
|
||||
|
||||
| Risk | Impact | Mitigation |
|
||||
|------|---------|------------|
|
||||
| Dependency installation complexity | High | none |
|
||||
| CSS mapping limitations | Medium | Set expectations, focus on common styles |
|
||||
| Performance with large documents | Medium | Implement streaming, pagination options |
|
||||
| Template compatibility issues | Low | Extensive testing, template validation |
|
||||
| Cross-platform differences | Medium | Platform-specific testing, CI/CD |
|
||||
|
||||
## Appendix
|
||||
|
||||
### A. Obsidian Syntax Support
|
||||
|
||||
- [x] Wikilinks: `[[note]]`, `[[note|alias]]`
|
||||
- [x] Embeds: `![[note]]`, `![[image.png]]`
|
||||
- [x] Tags: `#tag`, `#nested/tag`
|
||||
- [x] Callouts: `> [!note]`, `> [!warning]`
|
||||
- [x] Code blocks with syntax highlighting
|
||||
- [x] Tables (including advanced tables)
|
||||
- [x] Footnotes: `[^1]`
|
||||
- [x] Math: `$inline$`, `$$display$$`
|
||||
- [x] Mermaid diagrams
|
||||
- [ ] Excalidraw drawings (future)
|
||||
- [ ] Canvas exports (future)
|
||||
|
||||
### B. Template Variables
|
||||
|
||||
Available variables for Typst templates:
|
||||
|
||||
```typst
|
||||
$title$ // From frontmatter
|
||||
$author$ // From frontmatter
|
||||
$date$ // From frontmatter or current
|
||||
$tags$ // Array of tags
|
||||
$font$ // User-selected font
|
||||
$fontSize$ // User-selected size
|
||||
$pageSize$ // A4, Letter, etc.
|
||||
$margins$ // Margin configuration
|
||||
$headerText$ // Custom header
|
||||
$footerText$ // Custom footer
|
||||
$body$ // Document content
|
||||
```
|
||||
|
||||
### C. CSS to Typst Mapping Examples
|
||||
|
||||
| CSS Property | Typst Equivalent |
|
||||
|--------------|------------------|
|
||||
| `font-size: 14px` | `#set text(size: 14pt)` |
|
||||
| `color: #333` | `#set text(fill: rgb("#333"))` |
|
||||
| `font-weight: bold` | `#strong[text]` |
|
||||
| `font-style: italic` | `#emph[text]` |
|
||||
| `text-align: center` | `#align(center)[text]` |
|
||||
| `border: 1px solid` | `#box(stroke: 1pt)` |
|
||||
| `background: #f0f0f0` | `#box(fill: rgb("#f0f0f0"))` |
|
||||
|
||||
---
|
||||
|
||||
*This PRD is a living document and will be updated as the project evolves.*
|
||||
@@ -1,93 +0,0 @@
|
||||
{
|
||||
"meta": {
|
||||
"generatedAt": "2025-08-29T14:37:49.593Z",
|
||||
"tasksAnalyzed": 10,
|
||||
"totalTasks": 10,
|
||||
"analysisCount": 10,
|
||||
"thresholdScore": 5,
|
||||
"projectName": "Taskmaster",
|
||||
"usedResearch": true
|
||||
},
|
||||
"complexityAnalysis": [
|
||||
{
|
||||
"taskId": 1,
|
||||
"taskTitle": "Fix TypeScript Issues and Clean Template Code",
|
||||
"complexityScore": 2,
|
||||
"recommendedSubtasks": 3,
|
||||
"expansionPrompt": "Break down fixing TypeScript issues and template cleanup into: 1) Fix type declarations (obsidianTypstPDFExportSettings vs MyPluginSettings, obsidianTypstPDFExport vs MyPlugin), 2) Remove template components (SampleModal, sample commands, status bar), 3) Update package.json metadata to reflect Typst PDF Export plugin identity",
|
||||
"reasoning": "Simple type fixes and template removal. Current code shows basic template structure with clear type mismatches on lines 14, 111, 113. Straightforward refactoring with low risk."
|
||||
},
|
||||
{
|
||||
"taskId": 2,
|
||||
"taskTitle": "Define Core Interfaces and Settings Structure",
|
||||
"complexityScore": 4,
|
||||
"recommendedSubtasks": 5,
|
||||
"expansionPrompt": "Design comprehensive interface structure: 1) Create PluginSettings interface with external tool paths and export defaults, 2) Define ExportConfig interface for per-export settings, 3) Create ExportMode and ExportFormat enums, 4) Design Template interface for Typst template management, 5) Implement settings serialization/deserialization with validation",
|
||||
"reasoning": "Moderate complexity requiring careful interface design. Reference plugin shows complex settings structure with 11+ properties. Need to balance feature richness with maintainability."
|
||||
},
|
||||
{
|
||||
"taskId": 3,
|
||||
"taskTitle": "Implement Dependency Checker and External Tool Management",
|
||||
"complexityScore": 6,
|
||||
"recommendedSubtasks": 4,
|
||||
"expansionPrompt": "Build robust dependency checking: 1) Create DependencyChecker class with child_process.spawn for tool detection, 2) Implement platform-specific executable resolution (Windows .exe, Unix PATH), 3) Build user-friendly error reporting with installation guidance, 4) Add settings integration for custom executable paths with validation",
|
||||
"reasoning": "High complexity due to cross-platform considerations, process spawning, and error handling. Requires handling multiple failure modes and providing clear user guidance."
|
||||
},
|
||||
{
|
||||
"taskId": 4,
|
||||
"taskTitle": "Build Markdown Preprocessor for Obsidian Syntax",
|
||||
"complexityScore": 7,
|
||||
"recommendedSubtasks": 6,
|
||||
"expansionPrompt": "Create comprehensive Obsidian syntax processor: 1) Implement wikilink parsing [[note]] and [[note|alias]] with edge cases, 2) Handle embed syntax ![[image.png]] and ![[note.md]] conversion, 3) Convert callouts > [!note] to standard blockquotes, 4) Extract and process tags #tag for metadata, 5) Preserve and parse frontmatter using gray-matter, 6) Handle complex edge cases (nested brackets, special characters, relative paths)",
|
||||
"reasoning": "High complexity due to numerous Obsidian-specific syntax patterns, regex complexity, and edge case handling. Each syntax type has its own challenges and interactions."
|
||||
},
|
||||
{
|
||||
"taskId": 5,
|
||||
"taskTitle": "Create Pandoc-Typst Conversion Pipeline",
|
||||
"complexityScore": 8,
|
||||
"recommendedSubtasks": 6,
|
||||
"expansionPrompt": "Build robust conversion pipeline: 1) Create PandocTypstConverter class with process spawning, 2) Implement Pandoc argument building for templates and variables, 3) Add temporary file management with proper cleanup, 4) Build error parsing and progress tracking, 5) Support both direct PDF and intermediate .typ generation, 6) Add timeout handling and memory management for large documents",
|
||||
"reasoning": "Very high complexity involving external process management, file I/O, error handling, and resource management. Critical path component requiring robust error handling."
|
||||
},
|
||||
{
|
||||
"taskId": 6,
|
||||
"taskTitle": "Develop Typst Template System",
|
||||
"complexityScore": 5,
|
||||
"recommendedSubtasks": 4,
|
||||
"expansionPrompt": "Create flexible template management: 1) Build TemplateManager class with embedded default templates (default.typ, article.typ, report.typ, single-page.typ), 2) Implement variable substitution system for $title$, $author$, $date$, etc., 3) Create single-page template with Typst 'height: auto' feature, 4) Add custom template support with validation and error handling",
|
||||
"reasoning": "Moderate-high complexity requiring Typst syntax knowledge, string templating, and file management. Template system needs to be flexible while maintaining validation."
|
||||
},
|
||||
{
|
||||
"taskId": 7,
|
||||
"taskTitle": "Implement Export Configuration Modal",
|
||||
"complexityScore": 6,
|
||||
"recommendedSubtasks": 5,
|
||||
"expansionPrompt": "Build intuitive export UI: 1) Create ExportConfigModal extending Obsidian Modal with form sections, 2) Implement export mode selection and format choices with validation, 3) Add template selection with preview capabilities, 4) Create output settings (location, filename patterns), 5) Add progress indicator with cancellation support",
|
||||
"reasoning": "High complexity due to UI components, state management, validation, and integration with Obsidian's modal system. Reference plugin shows complex modal with many form elements."
|
||||
},
|
||||
{
|
||||
"taskId": 8,
|
||||
"taskTitle": "Build CSS Extraction and Style Preservation System",
|
||||
"complexityScore": 9,
|
||||
"recommendedSubtasks": 6,
|
||||
"expansionPrompt": "Create advanced style preservation: 1) Build CSSExtractor class using document.styleSheets API, 2) Implement CSSToTypstMapper for property conversion (font-size, color, font-weight, etc.), 3) Handle theme-specific variables and computed styles, 4) Add support for popular themes (default, minimal, blue topaz), 5) Create hybrid export mode combining extracted styles with Typst typography, 6) Handle plugin-specific styles and CSS specificity",
|
||||
"reasoning": "Very high complexity requiring deep CSS knowledge, DOM manipulation, and Typst styling understanding. CSS-to-Typst mapping is non-trivial with many edge cases."
|
||||
},
|
||||
{
|
||||
"taskId": 9,
|
||||
"taskTitle": "Add Export Commands and Menu Integration",
|
||||
"complexityScore": 4,
|
||||
"recommendedSubtasks": 4,
|
||||
"expansionPrompt": "Integrate export functionality: 1) Register Obsidian commands for single file and batch export, 2) Add ribbon icon with Typst logo for quick access, 3) Implement context menu integration in file explorer, 4) Create batch export with parallel processing and configurable concurrency",
|
||||
"reasoning": "Moderate complexity with good reference patterns from better-export-pdf plugin. Obsidian API integration is well-documented, but batch processing adds complexity."
|
||||
},
|
||||
{
|
||||
"taskId": 10,
|
||||
"taskTitle": "Implement Settings Tab and Plugin Configuration",
|
||||
"complexityScore": 5,
|
||||
"recommendedSubtasks": 5,
|
||||
"expansionPrompt": "Create comprehensive settings interface: 1) Build SettingsTab extending PluginSettingTab with organized sections, 2) Add external tools configuration with dependency checking integration, 3) Implement default export preferences with validation, 4) Create typography and page layout settings with previews, 5) Add template management (import/export) with file picker integration",
|
||||
"reasoning": "Moderate-high complexity requiring extensive form validation, file system integration, and dependency checker integration. Reference plugin shows complex settings with multiple sections."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"currentTag": "master",
|
||||
"lastSwitched": "2025-08-29T14:11:44.406Z",
|
||||
"branchTagMapping": {},
|
||||
"migrationNoticeShown": false
|
||||
}
|
||||
@@ -1,682 +0,0 @@
|
||||
{
|
||||
"master": {
|
||||
"tasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Fix TypeScript Issues and Clean Template Code",
|
||||
"description": "Resolve TypeScript type inconsistencies and remove sample plugin template code",
|
||||
"details": "Fix type mismatches in main.ts: Line 14 should use 'obsidianTypstPDFExportSettings' instead of 'MyPluginSettings', lines 111 and 113 should use 'obsidianTypstPDFExport' instead of 'MyPlugin'. Remove sample modal and template functionality. Update plugin metadata in package.json to reflect the actual Typst PDF Export plugin. This establishes a clean foundation for implementing the core functionality.",
|
||||
"testStrategy": "Verify TypeScript compilation passes without errors using 'npm run build'. Confirm plugin loads in Obsidian without console errors.",
|
||||
"priority": "high",
|
||||
"dependencies": [],
|
||||
"status": "done",
|
||||
"subtasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Fix TypeScript Type Declarations in main.ts",
|
||||
"description": "Correct type inconsistencies by replacing MyPluginSettings and MyPlugin references with proper types",
|
||||
"dependencies": [],
|
||||
"details": "Fix line 14: change 'settings: MyPluginSettings' to 'settings: obsidianTypstPDFExportSettings'. Fix line 111: change 'plugin: MyPlugin' to 'plugin: obsidianTypstPDFExport'. Fix line 113: change constructor parameter 'plugin: MyPlugin' to 'plugin: obsidianTypstPDFExport'. These changes will ensure TypeScript compilation passes without type errors.",
|
||||
"status": "done",
|
||||
"testStrategy": "Run 'npm run build' to verify TypeScript compilation passes without type errors"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Remove Sample Template Components",
|
||||
"description": "Delete SampleModal class and remove all template commands and functionality",
|
||||
"dependencies": [
|
||||
"1.1"
|
||||
],
|
||||
"details": "Remove the entire SampleModal class (lines 94-108). Remove all sample commands: 'open-sample-modal-simple', 'sample-editor-command', and 'open-sample-modal-complex' from the onload method. Remove associated ribbon icon, status bar item, and DOM event listeners that are part of the template code. Clean up any unused imports if they become redundant.",
|
||||
"status": "done",
|
||||
"testStrategy": "Verify plugin loads without console errors and no sample functionality appears in Command Palette"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Replace Sample Settings Tab with Minimal Implementation",
|
||||
"description": "Replace SampleSettingTab class with a basic settings tab for the Typst PDF Export plugin",
|
||||
"dependencies": [
|
||||
"1.1"
|
||||
],
|
||||
"details": "Rename SampleSettingTab class to TypstPDFExportSettingTab. Update the class to use proper plugin type references. Replace the sample setting ('Setting #1') with a placeholder message indicating settings will be implemented later. Update the settings interface to remove 'mySetting' and add a placeholder property. Update DEFAULT_SETTINGS accordingly.",
|
||||
"status": "done",
|
||||
"testStrategy": "Verify settings tab opens without errors and shows appropriate placeholder content"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Update package.json Metadata",
|
||||
"description": "Change package.json to reflect the actual Typst PDF Export plugin identity",
|
||||
"dependencies": [],
|
||||
"details": "Change 'name' from 'obsidian-sample-plugin' to 'obsidian-typst-pdf-export'. Update 'description' from sample plugin text to 'Export Obsidian notes to PDF using Typst typesetting system'. Add 'author' field with appropriate value. Add relevant 'keywords' like 'pdf', 'export', 'typst', 'obsidian-plugin'. Ensure version and other metadata remain consistent with manifest.json.",
|
||||
"status": "done",
|
||||
"testStrategy": "Verify package.json contains accurate plugin metadata and version matches manifest.json"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Clean Up Template Comments and Add Basic Plugin Structure",
|
||||
"description": "Remove template comments and add minimal structure for Typst PDF export functionality",
|
||||
"dependencies": [
|
||||
"1.2",
|
||||
"1.3"
|
||||
],
|
||||
"details": "Remove the comment 'Remember to rename these classes and interfaces!' and other template-specific comments. Add a basic command for Typst PDF export (placeholder implementation that shows a notice). Update the ribbon icon to use 'file-text' icon and change the tooltip to 'Export to PDF with Typst'. Add basic plugin description comment at the top of the file. Ensure the plugin class is ready for future Typst functionality implementation.",
|
||||
"status": "done",
|
||||
"testStrategy": "Verify plugin loads successfully, shows correct ribbon icon, and basic export command appears in Command Palette"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Define Core Interfaces and Settings Structure",
|
||||
"description": "Create comprehensive TypeScript interfaces for plugin configuration, export modes, and internal data structures",
|
||||
"details": "Replace basic settings interface with comprehensive PluginSettings including paths (pandocPath, typstPath, outputFolder), export defaults (template, format, mode), typography settings (fonts, sizes), page setup (size, orientation, margins), and behavior flags (openAfterExport, preserveFolderStructure). Create ExportConfig interface for per-export settings, ExportMode enum ('typography' | 'style-preserving'), ExportFormat enum ('standard' | 'single-page'), and Template interface for Typst template management. Follow current Obsidian plugin patterns from reference plugins.",
|
||||
"testStrategy": "Ensure all interfaces compile correctly and settings can be serialized/deserialized. Create unit tests for default settings object structure.",
|
||||
"priority": "high",
|
||||
"dependencies": [
|
||||
1
|
||||
],
|
||||
"status": "done",
|
||||
"subtasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Create Main PluginSettings Interface",
|
||||
"description": "Define the comprehensive PluginSettings interface with external tool paths, export defaults, typography settings, and page setup configuration",
|
||||
"dependencies": [],
|
||||
"details": "Create PluginSettings interface containing: pandocPath and typstPath for external tool locations, outputFolder for default export directory, export defaults (template, format, mode), typography settings (fonts, font sizes), page setup configuration (page size, orientation, margins), and behavior flags (openAfterExport, preserveFolderStructure). Include proper JSDoc documentation for each property.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Define ExportConfig and Mode Enums",
|
||||
"description": "Create per-export configuration interface and define ExportMode and ExportFormat enumerations",
|
||||
"dependencies": [],
|
||||
"details": "Define ExportConfig interface for per-export settings that can override plugin defaults. Create ExportMode enum with values 'typography' and 'style-preserving' for different export approaches. Create ExportFormat enum with values 'standard' and 'single-page' for output format options. Ensure enums are properly typed and documented.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Design Template Interface System",
|
||||
"description": "Create Template interface for Typst template management and validation",
|
||||
"dependencies": [],
|
||||
"details": "Design Template interface with properties for template name, file path, variables, and metadata. Include template validation structure for required variables and compatibility checking. Define template variable types and default value specifications. Create interface for template discovery and loading mechanisms.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Implement Settings Serialization Logic",
|
||||
"description": "Create serialization and deserialization methods for plugin settings with validation",
|
||||
"dependencies": [
|
||||
"2.1"
|
||||
],
|
||||
"details": "Implement loadSettings() and saveSettings() methods that properly serialize/deserialize the PluginSettings interface. Add validation for required paths, enum values, and configuration consistency. Include migration logic for settings format updates and proper error handling for corrupted settings.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Replace Template Settings Interface",
|
||||
"description": "Update main.ts to use new comprehensive settings interface and remove template code references",
|
||||
"dependencies": [
|
||||
"2.1",
|
||||
"2.4"
|
||||
],
|
||||
"details": "Replace the existing obsidianTypstPDFExportSettings interface in main.ts with the new comprehensive PluginSettings interface. Update all references to use proper TypeScript types. Remove any remaining template/sample code references to settings. Ensure proper initialization of default settings values.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Implement Dependency Checker and External Tool Management",
|
||||
"description": "Create system to verify and manage Pandoc and Typst installations with clear user guidance",
|
||||
"details": "Build DependencyChecker class using Node.js child_process.spawn to verify Pandoc 3.0+ and Typst 0.11+ installations. Implement platform-specific executable detection (Windows .exe, Unix PATH lookup). Create user-friendly error messages with installation links and troubleshooting steps. Add settings UI for custom executable paths. Handle cases where tools are not in PATH but manually specified. Use current best practices: spawn with timeout, proper error handling, and cross-platform path resolution using Node.js path module.",
|
||||
"testStrategy": "Test on Windows, macOS, and Linux with both PATH-available and custom-path scenarios. Verify error messages are clear and actionable. Mock child_process for unit testing.",
|
||||
"priority": "high",
|
||||
"dependencies": [
|
||||
2
|
||||
],
|
||||
"status": "done",
|
||||
"subtasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Create DependencyChecker class with platform detection",
|
||||
"description": "Build the core DependencyChecker class that can detect platform-specific executables and handle cross-platform path resolution",
|
||||
"dependencies": [],
|
||||
"details": "Create a TypeScript class that uses Node.js built-in modules (child_process, path, fs) to detect executables. Implement platform-specific detection logic using process.platform to handle Windows .exe extensions vs Unix PATH lookup. Include methods for resolving executable paths both in system PATH and custom user-specified locations. Use the path module for cross-platform path operations and proper path resolution.",
|
||||
"status": "done",
|
||||
"testStrategy": "Unit tests for platform detection logic, path resolution on different operating systems, and executable detection in both PATH and custom locations. Mock child_process and fs modules for deterministic testing."
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Implement version checking for Pandoc and Typst",
|
||||
"description": "Add functionality to verify that detected Pandoc and Typst installations meet minimum version requirements (3.0+ and 0.11+ respectively)",
|
||||
"dependencies": [
|
||||
"3.1"
|
||||
],
|
||||
"details": "Implement version detection by executing --version commands using child_process.spawn with proper timeout handling. Parse version strings to extract semantic version numbers and compare against minimum requirements. Handle various version output formats and edge cases. Include proper error handling for cases where executables exist but version cannot be determined.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test version parsing with various version string formats from different Pandoc and Typst versions. Test timeout handling and error cases where version commands fail. Mock child_process.spawn for controlled testing scenarios."
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Create user-friendly error messages and installation guidance",
|
||||
"description": "Develop comprehensive error messaging system with helpful installation links and troubleshooting steps",
|
||||
"dependencies": [],
|
||||
"details": "Create an error messaging system that provides clear, actionable feedback when dependencies are missing or outdated. Include platform-specific installation instructions with direct links to official installation pages. Add troubleshooting guidance for common issues like PATH configuration problems. Implement different message types for missing tools, outdated versions, and permission issues.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test error message generation for various failure scenarios. Verify that installation links are correct and accessible. Test message clarity and usefulness with different types of dependency issues."
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Integrate DependencyChecker with plugin settings interface",
|
||||
"description": "Add dependency checking functionality to the main plugin with settings UI for custom executable paths",
|
||||
"dependencies": [
|
||||
"3.1",
|
||||
"3.2",
|
||||
"3.3"
|
||||
],
|
||||
"details": "Integrate the DependencyChecker into the main plugin class, adding it to the onload lifecycle. Create settings interface elements for users to specify custom Pandoc and Typst executable paths. Add validation buttons or indicators that show dependency status in real-time. Include settings persistence and proper initialization of custom paths on plugin startup.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test settings UI integration and persistence of custom paths. Verify dependency checking works correctly with both auto-detected and manually specified executables. Test settings validation and error display in the UI."
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Add timeout handling and robust error management",
|
||||
"description": "Implement comprehensive timeout and error handling for all external process execution",
|
||||
"dependencies": [
|
||||
"3.1",
|
||||
"3.2"
|
||||
],
|
||||
"details": "Add configurable timeout handling to all child_process.spawn calls to prevent hanging operations. Implement proper error categorization for different failure types (missing executable, permission denied, timeout, invalid version output). Create graceful degradation when dependencies are partially available. Include retry logic for transient failures and proper cleanup of spawned processes.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test timeout behavior with artificially slow processes. Verify error handling covers all expected failure modes. Test cleanup of processes and resources during timeout scenarios. Verify retry logic works correctly for transient failures."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Build Markdown Preprocessor for Obsidian Syntax",
|
||||
"description": "Convert Obsidian-specific markdown syntax to standard markdown compatible with Pandoc",
|
||||
"details": "Create MarkdownPreprocessor class to handle: wikilinks [[note]] and [[note|alias]] conversion to [alias](note.md), embed syntax ![[image.png]] and ![[note.md]] to standard markdown image/link references, callouts > [!note] to standard blockquotes with appropriate styling markers, tags #tag extraction for metadata, frontmatter preservation and parsing using gray-matter library (latest version ~4.0.3). Handle edge cases like nested brackets, special characters in filenames, and relative path resolution within Obsidian vault structure. Use current markdown processing best practices with regex patterns and AST manipulation.",
|
||||
"testStrategy": "Create comprehensive test suite with various Obsidian syntax combinations. Test with real Obsidian notes containing complex wikilinks, embeds, and callouts. Verify output is valid standard markdown.",
|
||||
"priority": "medium",
|
||||
"dependencies": [
|
||||
2
|
||||
],
|
||||
"status": "done",
|
||||
"subtasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Create MarkdownPreprocessor Class Structure",
|
||||
"description": "Create the foundational MarkdownPreprocessor class with TypeScript interfaces and basic initialization",
|
||||
"dependencies": [],
|
||||
"details": "Create src/MarkdownPreprocessor.ts with class definition, constructor accepting vault path and settings. Define TypeScript interfaces for PreprocessorOptions (includeMetadata, preserveFrontmatter, baseUrl), WikilinkConfig (format, extension), and PreprocessingResult (content, metadata, errors). Initialize class properties for regex patterns and processing state. Follow existing plugin architecture patterns from main.ts.",
|
||||
"status": "done",
|
||||
"testStrategy": "Create unit tests for class instantiation and basic property initialization. Test interface type checking and default configuration handling."
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Implement Wikilink Conversion System",
|
||||
"description": "Build comprehensive wikilink parsing and conversion from [[note]] and [[note|alias]] to standard markdown links",
|
||||
"dependencies": [
|
||||
"4.1"
|
||||
],
|
||||
"details": "Implement parseWikilinks() method using regex patterns to handle: simple wikilinks [[note]] converting to [note](note.md), aliased wikilinks [[note|alias]] converting to [alias](note.md), nested brackets and special characters in filenames, relative path resolution within vault structure. Handle edge cases like escaped brackets, malformed links, and non-existent files. Support configurable link formats and extensions.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test with various wikilink formats including nested brackets, special characters, spaces, and malformed syntax. Verify proper path resolution and error handling for missing files."
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Build Embed Syntax Processor",
|
||||
"description": "Convert Obsidian embed syntax ![[file]] to standard markdown image/link references",
|
||||
"dependencies": [
|
||||
"4.1"
|
||||
],
|
||||
"details": "Implement parseEmbeds() method to handle: image embeds ![[image.png]] converting to , note embeds ![[note.md]] converting to standard link references, file type detection and appropriate markdown syntax selection, path resolution for embedded files within vault structure. Support size parameters and display options. Handle edge cases like missing files, unsupported file types, and nested embeds.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test embed conversion with various file types (images, documents, audio). Verify proper path resolution and handling of missing or unsupported files."
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Create Callout Conversion Engine",
|
||||
"description": "Transform Obsidian callouts > [!type] to standard blockquotes with styling markers",
|
||||
"dependencies": [
|
||||
"4.1"
|
||||
],
|
||||
"details": "Implement parseCallouts() method to convert callout syntax: > [!note] to standard blockquotes with CSS class markers, support for different callout types (note, tip, warning, error, etc.), preserve callout content and nested formatting, handle multi-line callouts and nested elements, add appropriate styling markers for Typst conversion. Map Obsidian callout types to equivalent styling in standard markdown with data attributes or CSS classes.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test callout conversion with various types and nested content. Verify preservation of formatting and proper blockquote structure generation."
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Integrate Frontmatter and Tag Processing",
|
||||
"description": "Add gray-matter library integration for frontmatter parsing and implement tag extraction system",
|
||||
"dependencies": [
|
||||
"4.1",
|
||||
"4.2",
|
||||
"4.3",
|
||||
"4.4"
|
||||
],
|
||||
"details": "Install and integrate gray-matter library (~4.0.3) for frontmatter parsing. Implement processFrontmatter() method to preserve existing frontmatter and add extracted metadata. Create extractTags() method using regex to find #tag patterns, handle nested tags and special characters, extract tags for metadata inclusion. Combine all preprocessing methods in main process() method with proper error handling and result aggregation. Handle edge cases like malformed frontmatter and tag conflicts.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test frontmatter preservation and tag extraction with various markdown files. Verify proper metadata generation and error handling for malformed content. Integration test combining all preprocessing features."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Create Pandoc-Typst Conversion Pipeline",
|
||||
"description": "Implement core conversion logic from processed markdown to PDF via Pandoc and Typst",
|
||||
"details": "Build PandocTypstConverter class using child_process.spawn to execute Pandoc with --pdf-engine=typst. Implement argument building for templates, variables, and custom options. Create temporary file management for intermediate processing with proper cleanup using Node.js fs.promises and tmp library. Handle Pandoc output parsing, error message extraction, and conversion progress tracking. Support both direct PDF output and intermediate .typ file generation for debugging. Use current Pandoc 3.x API with proper argument escaping and environment variable handling. Implement timeout handling for large documents and memory management for batch processing.",
|
||||
"testStrategy": "Test conversion pipeline with various document sizes and complexity levels. Verify proper error handling for malformed markdown, missing dependencies, and file system errors. Test cleanup of temporary files.",
|
||||
"priority": "high",
|
||||
"dependencies": [
|
||||
3,
|
||||
4
|
||||
],
|
||||
"status": "done",
|
||||
"subtasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Create PandocTypstConverter Class Structure",
|
||||
"description": "Design and implement the core PandocTypstConverter class with TypeScript interfaces and basic constructor",
|
||||
"dependencies": [],
|
||||
"details": "Create a new TypeScript class PandocTypstConverter with proper interface definitions for conversion options, template settings, and output configurations. Define types for PandocOptions, TypstSettings, and ConversionResult. Set up the class constructor to accept configuration parameters. Create proper import statements and exports following the existing codebase patterns from main.ts.",
|
||||
"status": "done",
|
||||
"testStrategy": "Verify class instantiation with various configuration options. Test TypeScript compilation without errors."
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Implement Pandoc Process Execution with child_process.spawn",
|
||||
"description": "Build the core Pandoc execution logic using Node.js child_process.spawn for cross-platform compatibility",
|
||||
"dependencies": [
|
||||
"5.1"
|
||||
],
|
||||
"details": "Implement the executePandoc method using child_process.spawn instead of exec for better control and streaming capabilities. Handle platform-specific executable detection (pandoc.exe on Windows). Build proper argument arrays for --pdf-engine=typst and other Pandoc 3.x options. Implement timeout handling for large documents using AbortController. Add proper error handling for process failures and non-zero exit codes.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test with mock child_process.spawn calls. Verify proper argument building and timeout functionality. Test cross-platform executable detection."
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Build Argument Construction System",
|
||||
"description": "Create flexible system for building Pandoc command-line arguments with templates, variables, and custom options",
|
||||
"dependencies": [
|
||||
"5.1"
|
||||
],
|
||||
"details": "Implement buildPandocArgs method to construct argument arrays for templates, variables (-V key=value), input/output files, and custom options. Support template file paths, metadata variables, and Typst-specific parameters. Handle argument escaping for special characters in file paths and values. Create validation for required arguments and conflict detection between options.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test argument building with various template and variable combinations. Verify proper escaping of special characters and file paths."
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Implement Temporary File Management with Cleanup",
|
||||
"description": "Create robust temporary file handling system using Node.js fs.promises and proper cleanup mechanisms",
|
||||
"dependencies": [
|
||||
"5.1"
|
||||
],
|
||||
"details": "Implement temporary file creation using fs.promises.mkdtemp for secure temp directories. Create methods for generating unique temporary filenames for intermediate .md, .typ, and .pdf files. Implement comprehensive cleanup system using process exit handlers and explicit cleanup methods. Add error handling for file system operations and ensure cleanup occurs even on process termination or errors.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test temporary file creation and cleanup under normal and error conditions. Verify cleanup on process termination and timeout scenarios."
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Add Progress Tracking and Error Parsing",
|
||||
"description": "Implement conversion progress monitoring and intelligent Pandoc error message extraction",
|
||||
"dependencies": [
|
||||
"5.2"
|
||||
],
|
||||
"details": "Build progress tracking system that monitors Pandoc stdout/stderr streams for progress indicators. Implement error message parsing to extract meaningful error information from Pandoc output. Create progress callback system for UI updates during long conversions. Add memory management for large document processing by implementing streaming where possible. Support both direct PDF output and intermediate .typ file generation for debugging purposes.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test progress tracking with documents of varying sizes. Verify error message extraction and parsing accuracy. Test memory usage with large documents."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "Develop Typst Template System",
|
||||
"description": "Create flexible template management system with built-in templates and custom template support",
|
||||
"details": "Build TemplateManager class with embedded default templates (default.typ, article.typ, report.typ, single-page.typ). Implement template variable substitution system for $title$, $author$, $date$, $font$, $fontSize$, $pageSize$, $margins$, $body$ using string templating. Create single-page template using Typst's 'height: auto' feature for dynamic page sizing. Support custom user templates from configurable directory. Implement template validation and variable extraction. Use current Typst 0.11+ syntax with proper page setup, text configuration, and layout control. Include error handling for template parsing issues and missing variables.",
|
||||
"testStrategy": "Test all built-in templates with various content types. Verify single-page template correctly adjusts height for different document lengths. Test custom template loading and variable substitution accuracy.",
|
||||
"priority": "medium",
|
||||
"dependencies": [
|
||||
2
|
||||
],
|
||||
"status": "done",
|
||||
"subtasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Build TemplateManager Class with Embedded Default Templates",
|
||||
"description": "Create TemplateManager class with four embedded default Typst templates (default.typ, article.typ, report.typ, single-page.typ)",
|
||||
"dependencies": [],
|
||||
"details": "Implement TemplateManager class that stores built-in templates as string constants. Create default.typ for basic documents, article.typ for academic content, report.typ for formal reports, and single-page.typ using Typst's 'height: auto' feature. Each template should use proper Typst 0.11+ syntax with page setup, text configuration, and layout control. Templates should include placeholder variables for substitution.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Implement Variable Substitution System",
|
||||
"description": "Create string templating system for replacing template variables like $title$, $author$, $date$, etc.",
|
||||
"dependencies": [
|
||||
"6.1"
|
||||
],
|
||||
"details": "Build variable substitution engine that processes template strings and replaces placeholders ($title$, $author$, $date$, $font$, $fontSize$, $pageSize$, $margins$, $body$) with actual values. Implement secure string replacement that handles edge cases and prevents template injection. Support default values for missing variables and proper escaping of special characters in Typst syntax.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Add Custom User Template Support",
|
||||
"description": "Implement custom template loading from configurable directory with template discovery",
|
||||
"dependencies": [
|
||||
"6.2"
|
||||
],
|
||||
"details": "Create functionality to load custom .typ templates from user-specified directory. Implement template discovery that scans for .typ files and registers them for use. Add template metadata parsing to extract variables and template information. Support template precedence where custom templates can override built-in ones. Include proper file path resolution and cross-platform directory handling.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Implement Template Validation and Error Handling",
|
||||
"description": "Create validation system for templates with variable extraction and comprehensive error handling",
|
||||
"dependencies": [
|
||||
"6.3"
|
||||
],
|
||||
"details": "Build template validation that checks Typst syntax correctness and variable consistency. Implement variable extraction that identifies all placeholder variables in templates. Create comprehensive error handling for template parsing issues, missing variables, invalid Typst syntax, and file system errors. Provide clear error messages with suggestions for fixing template issues. Add validation for both built-in and custom templates.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"title": "Implement Export Configuration Modal",
|
||||
"description": "Create intuitive user interface for configuring export options with real-time preview",
|
||||
"details": "Build ExportConfigModal extending Obsidian's Modal class, following patterns from reference better-export-pdf plugin. Create form sections for export mode selection (typography/style-preserving), format choice (standard/single-page), template selection with preview, output settings (location, filename pattern), page configuration (size, orientation, margins), and typography options (fonts, sizes). Implement settings persistence and restoration from previous exports. Add progress indicator during export process with cancel capability. Use current Obsidian UI components: Setting, ButtonComponent, DropdownComponent. Include real-time validation and preview updates.",
|
||||
"testStrategy": "Test modal functionality with various combinations of settings. Verify settings persistence across plugin reloads. Test export process cancellation and progress reporting accuracy.",
|
||||
"priority": "medium",
|
||||
"dependencies": [
|
||||
6
|
||||
],
|
||||
"status": "done",
|
||||
"subtasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Create ExportConfigModal class structure and constructor",
|
||||
"description": "Build basic ExportConfigModal class extending Modal with constructor, configuration state management, and type definitions",
|
||||
"dependencies": [],
|
||||
"details": "Create ExportConfigModal class extending Obsidian's Modal class. Define comprehensive configuration interface for export settings including export mode, format, template selection, page configuration, and typography options. Initialize modal with default settings and plugin reference, following patterns from reference better-export-pdf plugin modal.ts. Set up basic modal structure with proper TypeScript typing.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test modal can be instantiated, opened, and closed without errors. Verify configuration object initializes with expected default values and types match interface definitions."
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Implement form generation and UI components",
|
||||
"description": "Create comprehensive form interface using Obsidian's Setting components with sections for all export options",
|
||||
"dependencies": [
|
||||
"7.1"
|
||||
],
|
||||
"details": "Build generateForm method creating UI sections for: export mode selection (typography/style-preserving), format choice (standard/single-page), template selection dropdown, output settings (location, filename pattern), page configuration (size, orientation, margins), and typography options (fonts, sizes). Use Obsidian UI components: Setting, ButtonComponent, DropdownComponent following existing patterns. Include proper labeling and organization.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test all form sections render correctly, dropdowns contain expected options, and input fields accept valid values. Verify form layout matches design requirements."
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Add real-time settings validation and preview updates",
|
||||
"description": "Implement live validation and preview functionality for configuration changes",
|
||||
"dependencies": [
|
||||
"7.2"
|
||||
],
|
||||
"details": "Add event handlers for all form inputs to validate settings in real-time. Implement preview update logic that refreshes display when settings change. Add validation for required fields, numeric ranges, and file paths. Show visual feedback for invalid inputs and helpful error messages. Use debounced updates for performance optimization following reference implementation patterns.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test validation triggers on invalid inputs, preview updates reflect configuration changes, and error messages are clear and actionable. Verify performance with rapid setting changes."
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Implement settings persistence and restoration",
|
||||
"description": "Build system to save and restore export configurations across plugin sessions",
|
||||
"dependencies": [
|
||||
"7.1"
|
||||
],
|
||||
"details": "Create settings persistence mechanism to save current export configuration to plugin settings. Implement configuration restoration from previous exports, maintaining user preferences. Handle default settings fallback and migration of settings format changes. Store settings in plugin data using Obsidian's standard settings pattern with proper serialization.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test settings persist across plugin reloads, previous configurations restore correctly, and default settings apply appropriately for new users."
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Add export progress indicator with cancellation capability",
|
||||
"description": "Create progress tracking UI with ability to cancel ongoing export operations",
|
||||
"dependencies": [
|
||||
"7.3"
|
||||
],
|
||||
"details": "Implement progress indicator showing export status and completion percentage. Add cancel button functionality to halt export process safely. Create progress modal or overlay displaying current operation status, files processed, and estimated time remaining. Handle cancellation gracefully by cleaning up temporary files and resetting modal state. Follow patterns from reference implementation's Progress.svelte integration.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test progress indicator shows accurate status during export, cancel functionality works without leaving corrupted files, and modal state resets properly after cancellation."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"title": "Build CSS Extraction and Style Preservation System",
|
||||
"description": "Capture Obsidian theme styles and map them to equivalent Typst styling for style-preserving export mode",
|
||||
"details": "Create CSSExtractor class to capture computed styles from Obsidian's DOM using document.styleSheets API. Build CSSToTypstMapper to convert common CSS properties to Typst equivalents: font-size to #set text(size:), color to #set text(fill: rgb()), font-weight/font-style to #strong/#emph, text-align to #align(), borders and backgrounds to #box() styling. Handle theme-specific variables and plugin-specific styles. Create hybrid export mode combining extracted styles with Typst typography. Use current CSS parsing techniques with proper specificity handling and fallback values. Include support for popular themes (default, minimal, blue topaz) and common plugins (dataview, templater).",
|
||||
"testStrategy": "Test style extraction with various Obsidian themes. Verify CSS to Typst mapping accuracy for common styling patterns. Test style preservation with plugin-generated content.",
|
||||
"priority": "medium",
|
||||
"dependencies": [
|
||||
2
|
||||
],
|
||||
"status": "done",
|
||||
"subtasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Build CSSExtractor Class Foundation",
|
||||
"description": "Create the core CSSExtractor class that captures computed styles from Obsidian's DOM using document.styleSheets API",
|
||||
"dependencies": [],
|
||||
"details": "Implement CSSExtractor class with methods to traverse document.styleSheets, extract computed styles from DOM elements, handle CSS specificity and cascading rules. Include methods to capture theme variables, process CSS custom properties, and filter relevant styles for export. Handle cross-origin stylesheets and inline styles.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Implement CSS Property to Typst Mapping System",
|
||||
"description": "Build CSSToTypstMapper class that converts CSS properties to equivalent Typst styling commands",
|
||||
"dependencies": [
|
||||
"8.1"
|
||||
],
|
||||
"details": "Create mapping functions for: font-size to #set text(size:), color to #set text(fill: rgb()), font-weight/font-style to #strong/#emph, text-align to #align(), line-height, letter-spacing, text-decoration. Handle CSS color formats (hex, rgb, hsl) conversion to Typst color syntax. Implement fallback values for unsupported properties.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Add Theme-Specific Variable Handling",
|
||||
"description": "Implement detection and processing of theme-specific CSS variables and computed styles",
|
||||
"dependencies": [
|
||||
"8.1"
|
||||
],
|
||||
"details": "Create theme detection logic to identify active Obsidian theme. Extract CSS custom properties (--variables) specific to themes. Handle dynamic theme switching and variable resolution. Create mapping tables for popular themes' color schemes and typography settings. Include support for theme inheritance and variable overrides.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Build Popular Theme Support System",
|
||||
"description": "Add dedicated support for popular Obsidian themes including default, minimal, and blue topaz",
|
||||
"dependencies": [
|
||||
"8.2",
|
||||
"8.3"
|
||||
],
|
||||
"details": "Create theme-specific style extraction profiles for default Obsidian theme, Minimal theme, and Blue Topaz theme. Implement theme detection and automatic profile selection. Create fallback mechanisms for unknown themes. Test and validate style extraction accuracy across different theme configurations.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Implement Plugin-Specific Style Handling",
|
||||
"description": "Add support for extracting and converting styles from popular Obsidian plugins",
|
||||
"dependencies": [
|
||||
"8.2"
|
||||
],
|
||||
"details": "Create plugin-specific style extractors for Dataview, Templater, and other popular plugins. Handle plugin-generated DOM elements and their styling. Implement CSS selector matching for plugin content. Create mapping rules for plugin-specific visual elements like tables, buttons, and custom components.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "Create Hybrid Export Mode Integration",
|
||||
"description": "Build the hybrid export mode that combines extracted styles with Typst typography system",
|
||||
"dependencies": [
|
||||
"8.4",
|
||||
"8.5"
|
||||
],
|
||||
"details": "Implement export mode that merges extracted CSS styles with Typst's typography system. Create style precedence rules and conflict resolution. Build template integration that applies extracted styles to Typst templates. Add user controls for style preservation vs. typography optimization balance. Include preview functionality for hybrid styling output.",
|
||||
"status": "done",
|
||||
"testStrategy": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"title": "Add Export Commands and Menu Integration",
|
||||
"description": "Integrate export functionality into Obsidian's command palette, ribbon, and context menus",
|
||||
"details": "Register Obsidian commands for 'Export current note to Typst PDF', 'Export with previous settings', and 'Export folder to PDF'. Add ribbon icon with Typst logo for quick access. Integrate context menu items in file explorer following patterns from reference plugins. Implement batch export functionality for folders with parallel processing using configurable concurrency. Add keyboard shortcuts and command palette integration. Support both single file and multi-file export workflows. Use current Obsidian API: addCommand(), addRibbonIcon(), workspace events. Include proper callback validation and error handling.",
|
||||
"testStrategy": "Test all command registration and menu integration. Verify keyboard shortcuts work correctly. Test batch export performance with various folder sizes and concurrency settings.",
|
||||
"priority": "medium",
|
||||
"dependencies": [
|
||||
7
|
||||
],
|
||||
"status": "done",
|
||||
"subtasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Implement Core Command Registration System",
|
||||
"description": "Create command registration infrastructure for 'Export current note to Typst PDF', 'Export with previous settings', and 'Export folder to PDF' commands with proper checkCallback validation",
|
||||
"dependencies": [],
|
||||
"details": "Implement registerCommand() method following the pattern from the reference better-export-pdf plugin. Register three main commands using this.addCommand() with appropriate checkCallback functions to validate current context (active markdown view, file selection). Set proper command IDs, names, and callback functions that will open the ExportConfigModal. Ensure commands only appear when valid files are selected and handle both single file and folder contexts.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test that commands appear in command palette only when appropriate. Verify commands execute without errors and open the expected modal interface. Test with various file contexts including no active file, markdown files, and folders."
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Add Ribbon Icon with Typst Logo",
|
||||
"description": "Implement ribbon icon using addRibbonIcon() with Typst logo for quick export access",
|
||||
"dependencies": [],
|
||||
"details": "Replace the template ribbon icon (currently 'dice') with a Typst-appropriate icon. Use addRibbonIcon() to create a ribbon button that triggers the export modal for the currently active file. Implement proper click handler that checks for active markdown view and opens ExportConfigModal. Add hover tooltip explaining the export functionality. Consider using 'file-pdf' or custom Typst logo icon if available.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test ribbon icon appears correctly and has appropriate tooltip. Verify clicking ribbon icon opens export modal when a markdown file is active, and shows appropriate message when no file is active."
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Integrate File Explorer Context Menu",
|
||||
"description": "Add context menu items to file explorer using workspace.on('file-menu') event registration following reference plugin patterns",
|
||||
"dependencies": [],
|
||||
"details": "Implement registerEvents() method using this.registerEvent() to add file menu items. Use this.app.workspace.on('file-menu') to add 'Export to Typst PDF' option for individual files and 'Export folder to PDF' for folders. Follow the pattern from better-export-pdf reference plugin with proper menu item configuration including icons, sections, and onClick handlers. Distinguish between single file and folder export options with appropriate submenu structure if needed.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test context menu items appear for both files and folders in file explorer. Verify menu items execute proper export commands and open correct modal configurations. Test with various file types to ensure only markdown files show export options."
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Implement Batch Export Infrastructure",
|
||||
"description": "Create batch processing system for folder exports with configurable concurrency using p-limit pattern from reference plugin",
|
||||
"dependencies": [
|
||||
"9.1",
|
||||
"9.3"
|
||||
],
|
||||
"details": "Implement folder traversal and batch export functionality using patterns from reference plugin. Create utility functions for folder traversal (following traverseFolder from utils.ts reference). Implement parallel processing using p-limit library for configurable concurrency. Add progress tracking and cancellation support for long-running batch operations. Handle file selection logic to export only markdown files within folders and manage temporary file cleanup.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test batch export with folders containing various file types and sizes. Verify concurrency limits work correctly and progress reporting is accurate. Test cancellation functionality and ensure no temporary files are left after completion or cancellation."
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Add Keyboard Shortcuts and Settings Integration",
|
||||
"description": "Configure default keyboard shortcuts for export commands and integrate with plugin settings system",
|
||||
"dependencies": [
|
||||
"9.1"
|
||||
],
|
||||
"details": "Define default keyboard shortcuts for primary export commands in manifest.json or through command registration. Update the plugin settings interface (extending obsidianTypstPDFExportSettings) to include export preferences like default output location, concurrency settings, and previous export configuration storage. Implement settings persistence using loadSettings() and saveSettings() methods. Add settings tab integration for user configuration of shortcuts and export defaults.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test keyboard shortcuts trigger appropriate export commands. Verify settings are properly saved and restored across plugin reloads. Test that previous export settings are remembered and can be reused through 'Export with previous settings' command."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"title": "Implement Settings Tab and Plugin Configuration",
|
||||
"description": "Create comprehensive settings interface for plugin configuration with validation and help text",
|
||||
"details": "Build SettingsTab extending PluginSettingTab with sections for: external tools configuration (Pandoc/Typst paths with validation), default export preferences (template, format, output location), typography settings (default fonts, sizes with preview), page layout defaults (margins, orientation, size), advanced options (concurrency, debug mode, custom arguments), template management (import/export custom templates). Include dependency checking with status indicators, path validation with file picker integration, and help text with links to installation guides. Use current Obsidian settings patterns with proper form validation and immediate feedback.",
|
||||
"testStrategy": "Test all settings persistence and validation. Verify dependency checker integration shows correct status. Test template management functionality and custom path validation across platforms.",
|
||||
"priority": "medium",
|
||||
"dependencies": [
|
||||
8,
|
||||
9
|
||||
],
|
||||
"status": "done",
|
||||
"subtasks": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Create TypstPDFExportSettingTab Class Structure",
|
||||
"description": "Build the main settings tab class extending PluginSettingTab with comprehensive section organization and proper TypeScript typing",
|
||||
"dependencies": [],
|
||||
"details": "Create TypstPDFExportSettingTab class extending Obsidian's PluginSettingTab with proper constructor accepting app and plugin parameters. Define sections for external tools, export preferences, typography, page layout, advanced options, and template management. Set up proper TypeScript interfaces for settings validation and section organization. Follow the pattern from reference better-export-pdf plugin setting.ts with proper containerEl management and section headings using setHeading().",
|
||||
"status": "done",
|
||||
"testStrategy": "Test settings tab can be instantiated and displays without errors. Verify all section headings render correctly and proper TypeScript compilation."
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Implement External Tools Configuration Section",
|
||||
"description": "Build external tools section with Pandoc and Typst path configuration, validation, and dependency status indicators",
|
||||
"dependencies": [
|
||||
"10.1"
|
||||
],
|
||||
"details": "Create external tools section using Setting components with text inputs for Pandoc and Typst executable paths. Add validation buttons that check executable accessibility and version requirements using the DependencyChecker class. Include status indicators (green check/red X) showing dependency status. Add browse/file picker functionality for path selection. Include help text with installation links and platform-specific guidance. Handle custom path validation and proper error messaging.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test path validation works for both valid and invalid executable paths. Verify dependency status indicators update correctly. Test file picker integration and help text accessibility."
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Build Default Export Preferences Section",
|
||||
"description": "Create section for configuring default export settings including template, format, output location with proper persistence",
|
||||
"dependencies": [
|
||||
"10.1"
|
||||
],
|
||||
"details": "Implement default export preferences section with dropdown for template selection, toggle for export format (standard/single-page), text input for default output directory with folder picker, and dropdown for export mode (typography/style-preserving). Add settings persistence using plugin saveSettings() method. Include preview functionality showing how defaults will be applied. Follow patterns from reference better-export-pdf plugin with proper Setting component usage.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test all default settings persist across plugin reloads. Verify dropdown options match available templates. Test folder picker for output directory selection."
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Create Typography and Page Layout Settings Sections",
|
||||
"description": "Implement typography settings with font selection and page layout configuration with margins, orientation, and size options",
|
||||
"dependencies": [
|
||||
"10.1"
|
||||
],
|
||||
"details": "Build typography section with dropdown for default fonts, text input for font sizes with validation, and toggle for font embedding options. Create page layout section with dropdown for page size (A4, Letter, etc.), toggle for orientation (portrait/landscape), and text inputs for margin settings (top, bottom, left, right). Add preview functionality showing layout changes. Include validation for numeric inputs and proper unit handling (pt, mm, in).",
|
||||
"status": "done",
|
||||
"testStrategy": "Test font selection and size validation work correctly. Verify page layout settings apply proper validation and show preview updates. Test margin input validation with various units."
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Implement Advanced Options and Template Management",
|
||||
"description": "Create advanced settings section and template management functionality with import/export capabilities",
|
||||
"dependencies": [
|
||||
"10.2",
|
||||
"10.3",
|
||||
"10.4"
|
||||
],
|
||||
"details": "Build advanced options section with text input for concurrency settings, toggle for debug mode, and text area for custom Pandoc arguments. Create template management section with file picker for importing custom templates, button for exporting current templates, and list display of available templates with delete functionality. Include proper file validation for .typ template files and error handling for template operations. Add help text explaining advanced options and template usage.",
|
||||
"status": "done",
|
||||
"testStrategy": "Test concurrency setting validation and custom argument handling. Verify template import/export functionality works with proper file validation. Test debug mode toggle and advanced option persistence."
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"created": "2025-08-29T14:23:07.961Z",
|
||||
"updated": "2025-08-30T05:57:13.267Z",
|
||||
"description": "Tasks for master context"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
<context>
|
||||
# Overview
|
||||
[Provide a high-level overview of your product here. Explain what problem it solves, who it's for, and why it's valuable.]
|
||||
|
||||
# Core Features
|
||||
[List and describe the main features of your product. For each feature, include:
|
||||
- What it does
|
||||
- Why it's important
|
||||
- How it works at a high level]
|
||||
|
||||
# User Experience
|
||||
[Describe the user journey and experience. Include:
|
||||
- User personas
|
||||
- Key user flows
|
||||
- UI/UX considerations]
|
||||
</context>
|
||||
<PRD>
|
||||
# Technical Architecture
|
||||
[Outline the technical implementation details:
|
||||
- System components
|
||||
- Data models
|
||||
- APIs and integrations
|
||||
- Infrastructure requirements]
|
||||
|
||||
# Development Roadmap
|
||||
[Break down the development process into phases:
|
||||
- MVP requirements
|
||||
- Future enhancements
|
||||
- Do not think about timelines whatsoever -- all that matters is scope and detailing exactly what needs to be build in each phase so it can later be cut up into tasks]
|
||||
|
||||
# Logical Dependency Chain
|
||||
[Define the logical order of development:
|
||||
- Which features need to be built first (foundation)
|
||||
- Getting as quickly as possible to something usable/visible front end that works
|
||||
- Properly pacing and scoping each feature so it is atomic but can also be built upon and improved as development approaches]
|
||||
|
||||
# Risks and Mitigations
|
||||
[Identify potential risks and how they'll be addressed:
|
||||
- Technical challenges
|
||||
- Figuring out the MVP that we can build upon
|
||||
- Resource constraints]
|
||||
|
||||
# Appendix
|
||||
[Include any additional information:
|
||||
- Research findings
|
||||
- Technical specifications]
|
||||
</PRD>
|
||||
@@ -1,392 +0,0 @@
|
||||
# Product Requirements Document: Obsidian Typst PDF Export
|
||||
|
||||
## Executive Summary
|
||||
|
||||
**Product Name:** Obsidian Typst PDF Export
|
||||
**Version:** 1.0.0
|
||||
**Goal:** Create an Obsidian plugin that exports notes to aesthetically superior PDFs using Typst, with a unique single-page PDF option that dynamically adjusts page height to content.
|
||||
|
||||
## Problem Statement
|
||||
|
||||
Current PDF export solutions in Obsidian have limitations:
|
||||
- Standard PDF exports lack aesthetic appeal and typography control
|
||||
- Embedded images and PDFs format poorly
|
||||
- No option for continuous single-page PDFs that adapt to content length
|
||||
- Limited typography and layout customization
|
||||
- Plugin-specific CSS styles are often lost in exports
|
||||
|
||||
## Solution Overview
|
||||
|
||||
A plugin that leverages Typst's superior typesetting capabilities through a Markdown → Pandoc → Typst → PDF pipeline, offering both standard pagination and innovative single-page exports, with optional CSS style preservation.
|
||||
|
||||
## Core Features
|
||||
|
||||
### 1. Export Modes
|
||||
|
||||
#### 1.1 Typography-Pure Export (Default)
|
||||
- **Pipeline:** Markdown → Pandoc → Typst → PDF
|
||||
- **Benefits:** Superior typography, consistent formatting, academic quality
|
||||
- **Use Cases:** Papers, documentation, books, reports
|
||||
|
||||
#### 1.2 Style-Preserving Export
|
||||
- **Pipeline:** Markdown → HTML+CSS → Typst-enhanced → PDF
|
||||
- **Benefits:** Maintains Obsidian theme and plugin styles
|
||||
- **Use Cases:** Notes with custom styling, plugin-rendered content
|
||||
|
||||
### 2. Export Formats
|
||||
|
||||
#### 2.1 Standard PDF Export
|
||||
- Traditional paginated PDFs
|
||||
- Page sizes: A4, A5, Letter, Legal, Custom
|
||||
- Portrait/Landscape orientation
|
||||
- Configurable margins and headers/footers
|
||||
|
||||
#### 2.2 Single-Page PDF Export
|
||||
- Continuous PDF with dynamic height
|
||||
- No page breaks - content flows continuously
|
||||
- Ideal for web viewing and documentation
|
||||
- Implementation using Typst's `height: auto` feature
|
||||
|
||||
### 3. Conversion Pipeline
|
||||
|
||||
```
|
||||
Obsidian Note
|
||||
↓
|
||||
[Preprocess Obsidian Syntax]
|
||||
↓
|
||||
[Extract Frontmatter & Metadata]
|
||||
↓
|
||||
[Typography Mode] ←→ [Style Mode]
|
||||
↓ ↓
|
||||
[Pandoc → Typst] [Extract CSS]
|
||||
↓ ↓
|
||||
[Apply Template] [Map to Typst]
|
||||
↓ ↓
|
||||
└──────────┬──────────┘
|
||||
↓
|
||||
[Generate PDF]
|
||||
↓
|
||||
[Post-process]
|
||||
```
|
||||
|
||||
## Technical Architecture
|
||||
|
||||
### Directory Structure
|
||||
|
||||
```
|
||||
src/
|
||||
├── converters/
|
||||
│ ├── markdown-preprocessor.ts # Obsidian syntax handling
|
||||
│ ├── css-extractor.ts # Capture Obsidian styles
|
||||
│ ├── html-renderer.ts # HTML+CSS rendering
|
||||
│ ├── pandoc-typst.ts # Pandoc-Typst conversion
|
||||
│ └── css-to-typst-mapper.ts # Style mapping
|
||||
├── exporters/
|
||||
│ ├── standard-exporter.ts # Regular pagination
|
||||
│ ├── single-page-exporter.ts # Dynamic height
|
||||
│ └── batch-exporter.ts # Folder/vault export
|
||||
├── templates/
|
||||
│ ├── default.typ # Standard template
|
||||
│ ├── article.typ # Academic article
|
||||
│ ├── report.typ # Business report
|
||||
│ └── single-page.typ # Continuous page
|
||||
├── ui/
|
||||
│ ├── export-modal.ts # Export configuration
|
||||
│ ├── settings-tab.ts # Plugin settings
|
||||
│ └── progress-indicator.ts # Export progress
|
||||
├── utils/
|
||||
│ ├── dependency-checker.ts # Verify Pandoc/Typst
|
||||
│ ├── file-manager.ts # Output handling
|
||||
│ └── error-handler.ts # User feedback
|
||||
└── main.ts # Plugin entry point
|
||||
```
|
||||
|
||||
### Key Components
|
||||
|
||||
#### Markdown Preprocessor
|
||||
- Convert wikilinks `[[note]]` to standard markdown links
|
||||
- Handle Obsidian embeds `![[image.png]]` and `![[note.md]]`
|
||||
- Process callouts and custom code blocks
|
||||
- Preserve frontmatter for template variables
|
||||
|
||||
#### CSS Extractor
|
||||
```typescript
|
||||
function getAllStyles(): string[] {
|
||||
const cssTexts: string[] = [];
|
||||
Array.from(document.styleSheets).forEach((sheet) => {
|
||||
Array.from(sheet.cssRules).forEach((rule) => {
|
||||
cssTexts.push(rule.cssText);
|
||||
});
|
||||
});
|
||||
return cssTexts;
|
||||
}
|
||||
```
|
||||
|
||||
#### Pandoc-Typst Converter
|
||||
```typescript
|
||||
async function convertToTypst(markdown: string, config: ExportConfig) {
|
||||
const args = [
|
||||
'input.md',
|
||||
'-o', 'output.pdf',
|
||||
'--pdf-engine=typst',
|
||||
'-V', `template=${config.template}`,
|
||||
...config.variables.map(([k, v]) => ['-V', `${k}=${v}`]).flat()
|
||||
];
|
||||
return await execPandoc(args);
|
||||
}
|
||||
```
|
||||
|
||||
#### Single-Page Template
|
||||
```typst
|
||||
#set page(
|
||||
paper: "a4",
|
||||
height: auto, // Dynamic height
|
||||
margin: (x: 2cm, y: 2cm),
|
||||
)
|
||||
|
||||
#set text(
|
||||
font: $font$,
|
||||
size: $fontSize$,
|
||||
)
|
||||
|
||||
#set pagebreak(weak: true) // No page breaks
|
||||
|
||||
$body$
|
||||
```
|
||||
|
||||
## User Experience
|
||||
|
||||
### Export Workflow
|
||||
|
||||
1. **Initiate Export**
|
||||
- Right-click on note/folder → "Export to Typst PDF"
|
||||
- Command palette → "Typst PDF: Export current note"
|
||||
- Ribbon icon for quick export
|
||||
|
||||
2. **Configure Export**
|
||||
- Select export mode (Typography/Style-preserving)
|
||||
- Choose format (Standard/Single-page)
|
||||
- Pick template (Default/Article/Report/Custom)
|
||||
- Set output location
|
||||
|
||||
3. **Process**
|
||||
- Progress indicator shows conversion steps
|
||||
- Cancel option available
|
||||
- Error messages if dependencies missing
|
||||
|
||||
4. **Complete**
|
||||
- PDF opens automatically (configurable)
|
||||
- Success notification with file location
|
||||
- Recent exports in status bar
|
||||
|
||||
### Settings Interface
|
||||
|
||||
```typescript
|
||||
interface PluginSettings {
|
||||
// Paths
|
||||
pandocPath: string; // Path to Pandoc executable
|
||||
typstPath: string; // Path to Typst executable
|
||||
outputFolder: string; // Default export location
|
||||
|
||||
// Defaults
|
||||
defaultTemplate: string; // Template name
|
||||
defaultFormat: 'standard' | 'single-page';
|
||||
defaultExportMode: 'typography' | 'style-preserving';
|
||||
|
||||
// Typography
|
||||
defaultFont: string; // Main text font
|
||||
defaultFontSize: number; // In points
|
||||
mathFont: string; // Math equations font
|
||||
codeFont: string; // Code blocks font
|
||||
|
||||
// Page Setup
|
||||
defaultPageSize: string; // A4, Letter, etc.
|
||||
defaultOrientation: 'portrait' | 'landscape';
|
||||
defaultMargins: {
|
||||
top: string;
|
||||
bottom: string;
|
||||
left: string;
|
||||
right: string;
|
||||
};
|
||||
|
||||
// Behavior
|
||||
openAfterExport: boolean; // Auto-open PDF
|
||||
preserveFolderStructure: boolean; // For batch export
|
||||
includeMetadata: boolean; // Export frontmatter
|
||||
includeCssStyles: boolean; // Capture CSS
|
||||
|
||||
// Advanced
|
||||
pandocArgs: string; // Additional Pandoc arguments
|
||||
typstArgs: string; // Additional Typst arguments
|
||||
customTemplatesFolder: string; // User templates location
|
||||
concurrency: number; // Batch export parallelism
|
||||
debugMode: boolean; // Show conversion details
|
||||
}
|
||||
```
|
||||
|
||||
## Implementation Phases
|
||||
|
||||
### Phase 1: Core Foundation (Week 1)
|
||||
- [ ] Clean up template code and fix TypeScript issues
|
||||
- [ ] Set up project structure and interfaces
|
||||
- [ ] Implement basic Pandoc integration
|
||||
- [ ] Create minimal Typst template
|
||||
- [ ] Test basic markdown → PDF conversion
|
||||
|
||||
### Phase 2: Obsidian Integration (Week 2)
|
||||
- [ ] Preprocess wikilinks and embeds
|
||||
- [ ] Handle frontmatter extraction
|
||||
- [ ] Process callouts and custom blocks
|
||||
- [ ] Support tags and metadata
|
||||
- [ ] Test with various Obsidian features
|
||||
|
||||
### Phase 3: Single-Page Feature (Week 3)
|
||||
- [ ] Create single-page Typst template
|
||||
- [ ] Implement height calculation algorithm
|
||||
- [ ] Handle content overflow edge cases
|
||||
- [ ] Test with documents of various lengths
|
||||
- [ ] Optimize performance for large documents
|
||||
|
||||
### Phase 4: Style Preservation (Week 4)
|
||||
- [ ] Extract CSS from Obsidian
|
||||
- [ ] Build CSS to Typst mapping system
|
||||
- [ ] Handle plugin-specific styles
|
||||
- [ ] Create hybrid export mode
|
||||
- [ ] Test with popular themes and plugins
|
||||
|
||||
### Phase 5: UI and Polish (Week 5)
|
||||
- [ ] Build export configuration modal
|
||||
- [ ] Create settings tab
|
||||
- [ ] Add template management
|
||||
- [ ] Implement progress indicators
|
||||
- [ ] Add comprehensive error handling
|
||||
|
||||
### Phase 6: Advanced Features (Week 6)
|
||||
- [ ] Batch export for folders/vault
|
||||
- [ ] Custom template support
|
||||
- [ ] Export presets/profiles
|
||||
- [ ] Command-line interface
|
||||
- [ ] Documentation and examples
|
||||
|
||||
## Technical Considerations
|
||||
|
||||
### Dependencies
|
||||
- **Pandoc:** Required, version 3.0+
|
||||
- **Typst:** Required, version 0.11+
|
||||
- **Node.js:** Built-in with Obsidian
|
||||
- **pdf-lib:** Bundled for PDF manipulation
|
||||
|
||||
### Performance Targets
|
||||
- Single note export: < 3 seconds
|
||||
- 10-page document: < 5 seconds
|
||||
- 100-page document: < 30 seconds
|
||||
- Batch export: Parallel processing with configurable concurrency
|
||||
|
||||
### Error Handling
|
||||
- Clear messages for missing dependencies
|
||||
- Fallback options when features unavailable
|
||||
- Detailed logs in debug mode
|
||||
- Recovery from partial failures
|
||||
|
||||
### Compatibility
|
||||
- Obsidian version: 0.15.0+
|
||||
- Operating Systems: Windows, macOS, Linux
|
||||
- Themes: Test with top 10 popular themes
|
||||
- Plugins: Ensure compatibility with:
|
||||
- Dataview
|
||||
- Templater
|
||||
- Email Block Plugin
|
||||
- Excalidraw
|
||||
- Advanced Tables
|
||||
|
||||
## Success Metrics
|
||||
|
||||
### Functional Requirements
|
||||
- ✅ Export completes successfully for 95% of notes
|
||||
- ✅ Single-page PDFs render without content cutoff
|
||||
- ✅ Obsidian syntax correctly converted (90%+ accuracy)
|
||||
- ✅ CSS styles preserved when requested (best effort)
|
||||
- ✅ Templates customizable without code changes
|
||||
|
||||
### Performance Requirements
|
||||
- ✅ Export time within targets for 90% of documents
|
||||
- ✅ Memory usage < 500MB for typical exports
|
||||
- ✅ No UI freezing during export
|
||||
|
||||
### User Experience
|
||||
- ✅ Clear error messages with actionable solutions
|
||||
- ✅ Intuitive configuration interface
|
||||
- ✅ Consistent export quality
|
||||
- ✅ Reliable batch processing
|
||||
|
||||
## Future Enhancements
|
||||
|
||||
### Version 1.1
|
||||
- Live preview in export modal
|
||||
- More built-in templates
|
||||
|
||||
### Version 1.2
|
||||
- Bibliography and citation support
|
||||
- Table of contents generation
|
||||
- Index generation
|
||||
- Cross-reference handling
|
||||
|
||||
## Risks and Mitigation
|
||||
|
||||
| Risk | Impact | Mitigation |
|
||||
|------|---------|------------|
|
||||
| Dependency installation complexity | High | none |
|
||||
| CSS mapping limitations | Medium | Set expectations, focus on common styles |
|
||||
| Performance with large documents | Medium | Implement streaming, pagination options |
|
||||
| Template compatibility issues | Low | Extensive testing, template validation |
|
||||
| Cross-platform differences | Medium | Platform-specific testing, CI/CD |
|
||||
|
||||
## Appendix
|
||||
|
||||
### A. Obsidian Syntax Support
|
||||
|
||||
- [x] Wikilinks: `[[note]]`, `[[note|alias]]`
|
||||
- [x] Embeds: `![[note]]`, `![[image.png]]`
|
||||
- [x] Tags: `#tag`, `#nested/tag`
|
||||
- [x] Callouts: `> [!note]`, `> [!warning]`
|
||||
- [x] Code blocks with syntax highlighting
|
||||
- [x] Tables (including advanced tables)
|
||||
- [x] Footnotes: `[^1]`
|
||||
- [x] Math: `$inline$`, `$$display$$`
|
||||
- [x] Mermaid diagrams
|
||||
- [ ] Excalidraw drawings (future)
|
||||
- [ ] Canvas exports (future)
|
||||
|
||||
### B. Template Variables
|
||||
|
||||
Available variables for Typst templates:
|
||||
|
||||
```typst
|
||||
$title$ // From frontmatter
|
||||
$author$ // From frontmatter
|
||||
$date$ // From frontmatter or current
|
||||
$tags$ // Array of tags
|
||||
$font$ // User-selected font
|
||||
$fontSize$ // User-selected size
|
||||
$pageSize$ // A4, Letter, etc.
|
||||
$margins$ // Margin configuration
|
||||
$headerText$ // Custom header
|
||||
$footerText$ // Custom footer
|
||||
$body$ // Document content
|
||||
```
|
||||
|
||||
### C. CSS to Typst Mapping Examples
|
||||
|
||||
| CSS Property | Typst Equivalent |
|
||||
|--------------|------------------|
|
||||
| `font-size: 14px` | `#set text(size: 14pt)` |
|
||||
| `color: #333` | `#set text(fill: rgb("#333"))` |
|
||||
| `font-weight: bold` | `#strong[text]` |
|
||||
| `font-style: italic` | `#emph[text]` |
|
||||
| `text-align: center` | `#align(center)[text]` |
|
||||
| `border: 1px solid` | `#box(stroke: 1pt)` |
|
||||
| `background: #f0f0f0` | `#box(fill: rgb("#f0f0f0"))` |
|
||||
|
||||
---
|
||||
|
||||
*This PRD is a living document and will be updated as the project evolves.*
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"folders":
|
||||
[
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,395 +0,0 @@
|
||||
{
|
||||
"auto_complete":
|
||||
{
|
||||
"selected_items":
|
||||
[
|
||||
]
|
||||
},
|
||||
"buffers":
|
||||
[
|
||||
],
|
||||
"build_system": "",
|
||||
"build_system_choices":
|
||||
[
|
||||
],
|
||||
"build_varint": "",
|
||||
"command_palette":
|
||||
{
|
||||
"height": 0.0,
|
||||
"last_filter": "",
|
||||
"selected_items":
|
||||
[
|
||||
[
|
||||
"make",
|
||||
"Make file executable"
|
||||
],
|
||||
[
|
||||
"josn",
|
||||
"JSON Reindent: reindent file or selection"
|
||||
],
|
||||
[
|
||||
"json",
|
||||
"JSON Reindent: reindent file or selection"
|
||||
],
|
||||
[
|
||||
"jso",
|
||||
"JSON Reindent: reindent file or selection"
|
||||
],
|
||||
[
|
||||
"jsoncom",
|
||||
"Preferences: JSONComma Settings"
|
||||
],
|
||||
[
|
||||
"packa",
|
||||
"Package Control: Install Package"
|
||||
],
|
||||
[
|
||||
"prev",
|
||||
"Markdown Preview: Preview in Browser"
|
||||
],
|
||||
[
|
||||
"previ",
|
||||
"Markdown Preview: Preview in Browser"
|
||||
],
|
||||
[
|
||||
"mak",
|
||||
"Make file executable"
|
||||
],
|
||||
[
|
||||
"tem",
|
||||
"Create file from Template"
|
||||
],
|
||||
[
|
||||
"inst",
|
||||
"Package Control: Install Package"
|
||||
]
|
||||
],
|
||||
"width": 0.0
|
||||
},
|
||||
"console":
|
||||
{
|
||||
"height": 0.0,
|
||||
"history":
|
||||
[
|
||||
]
|
||||
},
|
||||
"distraction_free":
|
||||
{
|
||||
"menu_visible": true,
|
||||
"show_minimap": false,
|
||||
"show_open_files": false,
|
||||
"show_tabs": false,
|
||||
"side_bar_visible": false,
|
||||
"status_bar_visible": false
|
||||
},
|
||||
"expanded_folders":
|
||||
[
|
||||
"/Users/alex/Obsidian/Dev/.obsidian/plugins/obsidian-typst-pdf-export"
|
||||
],
|
||||
"file_history":
|
||||
[
|
||||
"/Users/alex/Obsidian/Dev/.obsidian/plugins/obsidian-typst-pdf-export/manifest.json",
|
||||
"/Users/alex/Obsidian/Dev/.obsidian/plugins/obsidian-pdf-export/manifest.json",
|
||||
"/Users/alex/Library/Mobile Documents/iCloud~md~obsidian/Documents/Alex IdeaVault/emails/2023-05-04 - Arbeitskreis zum Gedenken an die Opfer der NS-Zeit in Geinsheim - 10.5., 1930 Uhr.md",
|
||||
"/Users/alex/Projects/scripting/tinkertoys/python/data/Extracting_Email_to_Obsidian.py",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.taskmaster/tasks/tasks.json",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.taskmaster/config.json",
|
||||
"/Users/alex/.claude/commands/assistant-primer.md",
|
||||
"/Users/alex/Atomic Note-Taking - Full PDF Ebook (2 Dec 2023).md",
|
||||
"/Users/alex/.claude.json",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.simone/10_STATE_OF_PROJECT/2025-08-22-11-27-critical-issues.md",
|
||||
"/Users/alex/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/Alex/assets/Bewegungspark_Geinsheim_1755852377341_0.edn",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.simone/00_PROJECT_MANIFEST.md",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.simone/01_PROJECT_DOCS/ARCHITECTURE.md",
|
||||
"/Users/alex/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/Alex/logseq/config.edn",
|
||||
"/Users/alex/Downloads/Testament.md",
|
||||
"/Users/alex/.logseq/settings/logseq-monokai.json",
|
||||
"/Users/alex/.claude/commands/continue.md",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.mcp.json",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/config.json",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.taskmaster/docs/prd.txt",
|
||||
"/Users/alex/Projects/scripting/tinkertoys/configs/starship.toml",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/plan.md",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.simone/02_REQUIREMENTS/M02_Daily_Data_Entry_MVP/SPECS_TodayView_Implementation.md",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.simone/02_REQUIREMENTS/M02_Daily_Data_Entry_MVP/SPECS_Time_Aware_Navigation.md",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.simone/02_REQUIREMENTS/M02_Daily_Data_Entry_MVP/SPECS_AMEND_01_Localization_Migration.md",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.simone/02_REQUIREMENTS/M02_Daily_Data_Entry_MVP/PRD_Daily_Data_Entry_MVP.md",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.simone/02_REQUIREMENTS/M02_Daily_Data_Entry_MVP/M02_milestone_meta.md",
|
||||
"/Users/alex/Projects/scripting/claude-manager/templates/comprehensive-suite.json",
|
||||
"/Users/alex/Projects/scripting/claude-manager/templates/task-management.json",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/links.alexanderkucera.de/accounts/fde7da99d3c2/1615039710/.apikey",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/links.alexanderkucera.de/accounts/d0f7ab7fcf51/200013880/.apikey",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/site/snippets/head.php",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/site/snippets/blocks/photo_gallery.php",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/fastapi/config/fastapi-env.sh",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/log_collector/1852293247/log_sources.conf",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/assets/python/webcatcher.py",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/assets/python/metadata_builder.py",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/assets/python/file_operations.py",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/assets/python/file_archiver.py",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/assets/python/archiver_base.py",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/assets/python/webarchive.py",
|
||||
"/Users/alex/Projects/scripting/claude-manager/templates/ai-infrastructure.json",
|
||||
"/Users/alex/nginx.txt",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/links.alexanderkucera.de/1300722708/fastapi-env.sh",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/links.alexanderkucera.de/fastapi/services/1519751188/parallel_archiver.py",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/reports/task-complexity-report_falcon.json",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/reports/task-complexity-report_granite.json",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/reports/task-complexity-report_qwen3.json",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/reports/task-complexity-report_codellama.json",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/reports/task-complexity-report_qwen3-coder.json",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/reports/task-complexity-report-Sonnet4.json",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/claude_config.json",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/reports/task-complexity-report_deepseek-coder-v2.json",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/reports/task-complexity-report_mistral.json",
|
||||
"/Users/alex/.claude/claudemd-extensions/python-development.md",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/ollama_config.json",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/links.alexanderkucera.de/fastapi/routers/2058416136/page_routes.py",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/links.alexanderkucera.de/assets/python/-1619180627/start-daemon.sh",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/assets/python/config/daemon.ini",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/etc/services.d/1159105873/links-daemon.ini",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/fastapi/start-fastapi.sh",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/log_collector/-2106355230/log_sources.conf",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/etc/services.d/-2035667508/links.ini",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/etc/services.d/2111495053/fastapi.ini",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/etc/services.d/-166565421/fastapi.ini",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/fastapi/config/fastapi.ini",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/logs/webserver/380664251/error_log_apache",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/logs/2033202386/error_log_php",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/.taskmaster/config.json",
|
||||
"/Users/alex/.config/crush/crush.json",
|
||||
"/Users/alex/Library/Preferences/code-audit-mcp-nodejs/config.json",
|
||||
"/Users/alex/.serena/serena_config.yml",
|
||||
"/Users/alex/Projects/_project-incubator/specs/personal-hypertrophy-fitness-tracker.md",
|
||||
"/Users/alex/Projects/_project-incubator/specs/fitness-app/spec.md",
|
||||
"/Users/alex/Projects/_project-incubator/specs/fitness-app/README.md",
|
||||
"/Users/alex/.claude/CLAUDE.md",
|
||||
"/Users/alex/.claude/commands/task-primer.md",
|
||||
"/Users/alex/Projects/_project-incubator/specs/pdf-knowledge-consolidation-system.md",
|
||||
"/Users/alex/Projects/_project-incubator/specs/docdistill/README.md",
|
||||
"/Users/alex/Projects/scripting/claude-manager/docs/template.json",
|
||||
"/Users/alex/Projects/_project-incubator/specs/pdf-chunker/README.md",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.claude/TM_COMMANDS_GUIDE.md",
|
||||
"/Users/alex/Projects/scripting/claude-manager/.taskmaster/CLAUDE.md",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.serena/project.yml",
|
||||
"/Users/alex/Projects/scripting/tinkertoys/python/ai/llama_parse.py",
|
||||
"/Users/alex/my_safari_session.txt",
|
||||
"/Users/alex/Projects/ai/llama-fs/.env",
|
||||
"/Users/alex/Projects/scripting/tinkertoys/bash/media/convert_to_gif.sh",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/dialysisPal/PERFORMANCE_BASELINE.md",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/measure_performance.sh",
|
||||
"/Users/alex/Projects/_project-incubator/tools/incubator",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/dialysepal.de/540419020/nocontent.html",
|
||||
"/Users/alex/Projects/scripting/tinkertoys/dotfiles/dotzshrc",
|
||||
"/Users/alex/Projects/scripting/tinkertoys/dotfiles/dotzprofile",
|
||||
"/Users/alex/Projects/scripting/tinkertoys/dotfiles/dotzshenv",
|
||||
"/Users/alex/Projects/scripting/tinkertoys/bash/development/claude_code.sh",
|
||||
"/Users/alex/Projects/scripting/tinkertoys/bash/system/claude_code.sh",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.gitignore",
|
||||
"/Users/alex/Projects/web_development/babylondreams-links/_asset_creation/Links Sales Plan.md",
|
||||
"/Users/alex/Projects/ios_development/dialysispal/.claude/commands/simone/do_task.md",
|
||||
"/opt/homebrew/lib/node_modules/@byterover/cipher/dist/.env",
|
||||
"/opt/homebrew/lib/node_modules/@byterover/cipher/memAgent/cipher.yml",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/.gitignore",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/content/home/home.txt",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/.ssh/-172486307/id_ed25519.pub",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/dev.monikakucera.de/content/1759255524/.gitignore",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/site/plugins/git-content/README.md",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/dev.monikakucera.de/781484132/.htaccess",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/git_repos/kindertagespflege.git/hooks/-446071532/post-receive",
|
||||
"/Users/alex/Projects/_project-incubator/specs/dialysispal/README.md",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/_deploy/post-receive-bidirectional-sync.sh",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/_deploy/cleanup-production.sh",
|
||||
"/Users/alex/Projects/_project-incubator/docs/project-statuses.md",
|
||||
"/Users/alex/Projects/_project-incubator/conversations/2025-08-01--creation-project-incubator.md",
|
||||
"/Users/alex/Projects/_project-incubator/README.md",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/_deploy/BIDIRECTIONAL_WORKFLOW.md",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/dev.monikakucera.de/site/config/-1199862546/config.php",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-1625e3e5-880a-454d-b9b4-43ade3bdb5d3/var/www/virtual/babylond/dev.monikakucera.de/site/config/1803276110/config.php",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/site/config/config.php",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/site/config/config.production.php",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/site/plugins/kirby-uniform/README.md",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/site/snippets/blocks/welcome_hero.php",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/site/templates/home.php",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/content/site.txt",
|
||||
"/Users/alex/Projects/web_development/kindertagespflege/.htaccess",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/logs/-139707440/error_log_php",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/logs/webserver/1836412810/error_log_apache",
|
||||
"/Users/alex/Library/Containers/ch.sudo.cyberduck/Data/tmp/ch.sudo.cyberduck/editor-6bed4ef6-26e7-4f0b-9294-efab61a8b844/home/babylond/logs/webserver/1316445591/access_log"
|
||||
],
|
||||
"find":
|
||||
{
|
||||
"height": 52.0
|
||||
},
|
||||
"find_in_files":
|
||||
{
|
||||
"height": 132.0,
|
||||
"where_history":
|
||||
[
|
||||
]
|
||||
},
|
||||
"find_state":
|
||||
{
|
||||
"case_sensitive": false,
|
||||
"find_history":
|
||||
[
|
||||
],
|
||||
"highlight": true,
|
||||
"in_selection": false,
|
||||
"preserve_case": false,
|
||||
"regex": false,
|
||||
"replace_history":
|
||||
[
|
||||
],
|
||||
"reverse": false,
|
||||
"scrollbar_highlights": true,
|
||||
"show_context": true,
|
||||
"use_buffer2": true,
|
||||
"use_gitignore": true,
|
||||
"whole_word": false,
|
||||
"wrap": true
|
||||
},
|
||||
"groups":
|
||||
[
|
||||
{
|
||||
"sheets":
|
||||
[
|
||||
]
|
||||
}
|
||||
],
|
||||
"incremental_find":
|
||||
{
|
||||
"height": 23.0
|
||||
},
|
||||
"input":
|
||||
{
|
||||
"height": 0.0
|
||||
},
|
||||
"layout":
|
||||
{
|
||||
"cells":
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1
|
||||
]
|
||||
],
|
||||
"cols":
|
||||
[
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"rows":
|
||||
[
|
||||
0.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"menu_visible": true,
|
||||
"output.Debugger":
|
||||
{
|
||||
"height": 218.0,
|
||||
"history":
|
||||
[
|
||||
]
|
||||
},
|
||||
"output.Debugger Console":
|
||||
{
|
||||
"height": 218.0,
|
||||
"history":
|
||||
[
|
||||
]
|
||||
},
|
||||
"output.LSP Log Panel":
|
||||
{
|
||||
"height": 0.0,
|
||||
"history":
|
||||
[
|
||||
]
|
||||
},
|
||||
"output.SublimeLinter":
|
||||
{
|
||||
"height": 0.0,
|
||||
"history":
|
||||
[
|
||||
]
|
||||
},
|
||||
"output.SublimeLinter Messages":
|
||||
{
|
||||
"height": 110.0,
|
||||
"history":
|
||||
[
|
||||
]
|
||||
},
|
||||
"output.diagnostics":
|
||||
{
|
||||
"height": 0.0,
|
||||
"history":
|
||||
[
|
||||
]
|
||||
},
|
||||
"output.find_results":
|
||||
{
|
||||
"height": 0.0,
|
||||
"history":
|
||||
[
|
||||
]
|
||||
},
|
||||
"output.mdpopups":
|
||||
{
|
||||
"height": 0.0,
|
||||
"history":
|
||||
[
|
||||
]
|
||||
},
|
||||
"pinned_build_system": "",
|
||||
"project": "obsidian-typst-pdf-export.sublime-project",
|
||||
"replace":
|
||||
{
|
||||
"height": 42.0
|
||||
},
|
||||
"save_all_on_build": true,
|
||||
"select_file":
|
||||
{
|
||||
"height": 0.0,
|
||||
"last_filter": "",
|
||||
"selected_items":
|
||||
[
|
||||
],
|
||||
"width": 0.0
|
||||
},
|
||||
"select_project":
|
||||
{
|
||||
"height": 0.0,
|
||||
"last_filter": "",
|
||||
"selected_items":
|
||||
[
|
||||
],
|
||||
"width": 0.0
|
||||
},
|
||||
"select_symbol":
|
||||
{
|
||||
"height": 0.0,
|
||||
"last_filter": "",
|
||||
"selected_items":
|
||||
[
|
||||
],
|
||||
"width": 0.0
|
||||
},
|
||||
"selected_group": 0,
|
||||
"settings":
|
||||
{
|
||||
"lsp_show_inlay_hints": false
|
||||
},
|
||||
"show_minimap": true,
|
||||
"show_open_files": false,
|
||||
"show_tabs": true,
|
||||
"side_bar_visible": true,
|
||||
"side_bar_width": 361.0,
|
||||
"status_bar_visible": true,
|
||||
"template_settings":
|
||||
{
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Reference in new issue
Block a user