howie26 downloadsCreate, import, and preview XMind files in your vault. Open them in XMind and see your previews update when you save.
Create, import, and preview local XMind maps in Obsidian. Open maps from your vault in XMind and see their previews refresh when you save. Previews use the embedded PNG and work offline.
XMind Bridge supports Obsidian desktop 1.7.2 or later on Windows and macOS. Install XMind if you want to open or edit maps in it. The plugin looks for XMind when you open a map and shows a notice if it cannot find it.
After XMind Bridge is listed in the community directory, go to Settings → Community plugins → Browse, search for XMind Bridge, then install and enable it.
To install manually:
main.js, manifest.json, and styles.css from the latest GitHub release..obsidian/plugins/xmind-bridge/ inside your vault. Create the xmind-bridge folder if needed.Open the command palette with Ctrl+P on Windows or ⌘P on macOS. Search for XMind Bridge to find the commands. The command names currently appear in Chinese.
.xmind file. The plugin copies it into your vault's configured attachment location and inserts an embed in the note..xmind file in the file explorer to open a preview tab, or embed a vault file with ![[Folder/Map.xmind]]. Embedded previews appear in Reading view and Live Preview.在 Obsidian 中新建和预览本地 XMind 文件,在 XMind 中编辑,保存后自动更新。
支持 Windows 和 macOS 桌面版 Obsidian 1.7.2 及以上。预览使用文件内置的静态 PNG,可离线使用。点击打开导图时,插件会自动查找并启动本机的 XMind。找不到时,Obsidian 会提示安装。
社区目录上线后,可在 Obsidian 的「设置 → 第三方插件 → 浏览」搜索 XMind Bridge,安装并启用。
手动安装时,从 GitHub Releases 分别下载 main.js、manifest.json 和 styles.css,放到知识库的 .obsidian/plugins/xmind-bridge/ 目录。若使用本地构建的 ZIP,则解压并将其中的 xmind-bridge 文件夹放到 .obsidian/plugins/。重新加载 Obsidian 后,在「设置 → 第三方插件」启用 XMind Bridge。
安装只涉及知识库的插件目录,不修改 Obsidian 或 XMind 的应用程序文件。
Ctrl+P(Windows)或 ⌘P(macOS),执行 XMind Bridge: 新建 XMind 文件。文件保存到当前文件所在的文件夹,没有打开文件时保存到知识库根目录。.xmind 后缀,使用文件名作为导图的中心主题。若有同名文件,请换一个名称。打开一篇 Markdown 笔记并进入编辑视图,按 Ctrl+P(Windows)或 ⌘P(macOS),执行 XMind Bridge: 插入 XMind 文件,选择电脑上的 .xmind 文件。
![[附件/导图.xmind]]。阅读模式和实时预览模式显示预览;源码模式显示原始引用。.xmind 放入知识库,然后手写嵌入引用。点击左侧文件列表中的文件,在独立标签页预览。Ctrl+S(Windows)或 ⌘S(macOS)保存后,Obsidian 自动刷新,多个嵌入会同时更新。![[附件/导图.xmind|600]] 限制笔记内预览宽度。实时预览中将光标移入引用位置,可编辑引用文字;移开后恢复图片。导入后请通过预览打开并编辑知识库内的副本。编辑外部原件不会更新知识库中的预览。
.xmind;内置 PNG 最大 16 MB、单边不超过 16384 像素且总像素不超过 64 Mi。超限文件仍可在 XMind 中编辑。#、|、[[、]] 视为特殊字符,文件和文件夹命名请避免这些链接分隔符。预览只读取知识库中已引用的 .xmind 文件。导入时读取你在文件选择器中选中的外部文件,将副本保存到知识库并插入笔记引用。新建时写入一张含中心主题的导图。
点击打开导图时,Windows 上会查询 XMind 的注册表安装项和常见安装目录,macOS 上会检查常见的应用程序目录并在需要时通过系统查找 XMind。这些检查用于定位本机 XMind,启动时传入知识库中导图的路径。
缓存及图片地址仅保存在内存中。插件不联网、不上传文件、不改写已有 .xmind 文件、不扫描整个知识库,也不修改应用程序文件。
在「第三方插件」中停用并卸载 XMind Bridge 即可。知识库中的 .xmind 文件和笔记引用会保留;恢复插件后可以继续预览。
npm ci
npm test
npm run build
npm run package
npm run dev 持续构建。发布包位于 dist/xmind-bridge-1.0.0.zip。
在 macOS 上运行 npm run test:vault 可在项目内生成独立的 .test-vault 测试知识库并部署插件,不会安装到已有知识库。此脚本只读使用 /Applications/Xmind.app 中的示例作为本机验收素材,示例不会进入发布包。重复运行会更新测试插件并保留测试文件和编辑状态。
实机测试步骤与结果见 TESTING.md。测试库及导入素材由 .gitignore 排除。
MIT;内含的 fflate 及其许可说明见 THIRD_PARTY_NOTICES.md。