English | 简体中文 | 繁體中文 | Deutsch | Français | Русский | Português | 日本語 | Español | 한국어 | Tiếng Việt
An Obsidian plugin for the DocWen desktop application.
- ✅ Sidebar Quick Launch: Add an icon to the Obsidian sidebar for one-click launch
- ✅ Automatic File Passing: Automatically pass the currently open file path to DocWen
- ✅ Command Palette Integration: Quick access via Ctrl/Cmd + P
- ✅ Background Export (CLI): Export to Word/Excel/Markdown via DocWenCLI.exe without opening the GUI (pickers may appear when needed)
- ✅ Heading Numbering (CLI): Add/remove numbering for Markdown headings via DocWenCLI.exe
- ✅ Doctor Check (CLI): One-click environment/diagnostics check
- ✅ Path Validation: Real-time validation of executable path
- ✅ File Browser: Easily select executable file via browse dialog
- ✅ Success Feedback: Friendly notifications on launch
- ✅ Right-click Context Menu: Right-click any file in the explorer → DocWen submenu (convert formats, manage heading numbering, open in DocWen)
- ✅ Single Instance Management: Automatically sends file to running instance
- ✅ Multi-language Support: Supports 11 languages (zh-CN, zh-TW, en, de, fr, ru, pt-BR, ja, ko, es, vi)
-
Install Node.js
- Visit Node.js Official Website
- Download and install the LTS version
- Verify installation:
node -vandnpm -v
-
Install Dependencies
npm install
Use watch mode during development for automatic recompilation on code changes:
npm run devnpm run build:quicknpm run buildnpm run release
# Or run directly: node scripts/build.jsThis command will:
- Compile TypeScript code
- Create release directory
- Copy required files
- Generate usage instructions
- Go to the GitHub Releases page
- Download and extract the latest release
- Copy the
docwen-assistantfolder to<Your Vault>/.obsidian/plugins/ - In Obsidian:
Settings→Community plugins→Reload plugins→ EnableDocWen Assistant
- Install dependencies and build:
npm install npm run release
- Copy the
release/docwen-assistantfolder to<Your Vault>/.obsidian/plugins/ - Reload and enable the plugin in Obsidian
-
Open Obsidian
Settings→Community plugins→DocWen Assistant -
Configure GUI or CLI executable path (either one is enough):
- Full path to
DocWen.exeorDocWenCLI.exe - If only one is set, the plugin tries to auto-detect the other in the same folder (e.g., detect
DocWenCLI.exenext toDocWen.exe, and vice versa)
- Full path to
-
Path validation:
- ✓ Green indicates valid path
- ✗ Red indicates invalid path or file not found
Three ways to launch:
-
Sidebar Icon
- Click the document icon in the left sidebar
-
Command Palette
- Press
Ctrl/Cmd + Pto open command palette - Search for "Launch DocWen"
- Press
-
Launch with Current File
- Search "Launch DocWen with current file" in command palette
- Only available when a file is open
Search in command palette:
- “Export to Word (Docx) in background” — for
.md/.markdown/.txtfiles, select a template from the picker - “Export to Excel (XLSX) in background” — for
.md/.markdown/.txtfiles, select a template from the picker - “Export to Markdown (MD) in background” — if optimization types are available for the current file type and language, select one from the picker (or skip)
Requires DocWenCLI.exe.
Right-click any file in the file explorer to see the DocWen submenu. Available actions depend on file type:
- Convert to Markdown — for docx, xlsx, pdf, images, etc.
- Convert to Word (Docx) / Convert to Excel (XLSX) — for
.md/.markdown/.txtfiles - Add/Remove heading numbering — for
.mdfiles only - Open in DocWen — available for all files
Search in command palette:
- “Add numbering to Markdown headings” — select a numbering scheme from the picker
- “Remove numbering from Markdown headings”
Only available when a .md file is open. Requires DocWenCLI.exe.
Search in command palette:
- “DocWen doctor check”
Requires DocWenCLI.exe.
- If a file is open, the plugin automatically passes its full path to DocWen
- If no file is open, only launches the DocWen program
- First Click → Launch DocWen and pass current file
- Click Again (with file) → Replace with new file (Single File Mode)
- Click Again (no file) → Activate DocWen window
| Command | Description |
|---|---|
npm run dev |
Development mode (watch) |
npm run build |
Full build (type check + minify) |
npm run build:quick |
Quick build (no type check) |
npm run lint |
ESLint check |
npm run lint:fix |
ESLint auto-fix |
node version-bump.js [patch|minor|major] |
Update version number |
npm run release |
Build release package |
Update version number:
# Patch version (1.0.0 → 1.0.1)
node version-bump.js patch
# Minor version (1.0.0 → 1.1.0)
node version-bump.js minor
# Major version (1.0.0 → 2.0.0)
node version-bump.js majordocwen-obsidian/
├── src/ # 📁 Source code directory
│ ├── main.ts # Plugin main logic
│ ├── settings.ts # Settings page
│ ├── i18n.ts # Internationalization module
│ └── utils/ # Utility modules
│ └── suggest-modal.ts # Picker modal
├── dist/ # 🔨 Build output directory
│ └── main.js # Compiled code
├── docs/ # 📄 Documentation
│ └── plugin-readme/ # User-facing README (multi-language)
├── scripts/ # 📜 Build scripts
│ ├── build.bat # Windows one-click build
│ ├── build.js # Cross-platform build script
│ └── README.md # Script usage guide
├── release/ # 📦 Release artifacts
├── .vscode/ # 🛠️ Editor configuration
│ └── settings.json # VS Code settings
├── manifest.json # Plugin manifest
├── package.json # Project configuration
├── tsconfig.json # TypeScript configuration
├── eslint.config.cjs # ESLint configuration
├── .gitignore # Git ignore file
├── version-bump.js # Version management script
├── README.md # This document (English)
└── README_zh-CN.md # Chinese documentation
- Check if
main.jsandmanifest.jsonare correctly copied - Click
Reload pluginsin Obsidian - Check developer console (
Ctrl/Cmd + Shift + I) for errors
- Check if executable path is correct
- Confirm path status shows green ✓
- Confirm executable has proper permissions
- Confirm a file is currently open
- Check if file path contains special characters
- Check console logs for passed arguments
This project is licensed under the MIT License.
- GitHub: https://github.com/ZHYX91/docwen-obsidian
- DocWen Main Project: https://github.com/ZHYX91/docwen
- Contact Author: zhengyx91@hotmail.com
Author: ZhengYX