JhihJian223 downloadsOpen Markdown headings as editable mind maps and edit section content in a bottom pane.
Heading Mindmap is an Obsidian plugin that opens Markdown heading structures as editable mind maps.
It keeps Markdown as the source of truth. The mind map shows the heading tree, while the pane below renders only the selected heading body with Obsidian's Markdown renderer. Editing switches the same pane to a focused Markdown source editor for the selected body.

Enable Heading Mindmap in Obsidian settings, then run the command Open mind map (heading-mindmap:open). In Chinese Obsidian languages, the same command is shown as 打开思维导图.
The command opens the current Markdown file as a mind map. If the current tab is already a mind map for the same file, the existing view is reused; otherwise a new tab is opened so the normal Markdown source view can stay available.
Keyboard shortcuts:
Tab: add child node.Shift+Enter: add sibling node, including another H1 when an H1 is selected.Enter: edit selected node title.Ctrl+Enter: edit the selected node body in place.Ctrl+Space: minimize or restore the body pane.Shift+Tab: promote selected node.Alt+Up / Alt+Down: reorder sibling nodes.Space: collapse or expand the selected subtree.Delete: delete the selected node.The mind map toolbar also includes a keyboard button for the full shortcut reference.
Heading Mindmap 是一个 Obsidian 思维导图插件,让 Markdown 笔记可以用“可编辑思维导图”方式打开。
导图是笔记内容的结构化视图。标题层级决定节点层级;脑图下方阅读时由 Obsidian Markdown 渲染器显示当前标题的正文,编辑时在同一位置切换为 Markdown 源码编辑器,不再改变工作区分栏。
产品需求见 docs/PRD.md。
MarkdownRenderer 渲染当前正文,不显示 Obsidian 标签栏;点击铅笔按钮或按 Ctrl+Enter 后在原位置编辑当前标题正文,完成或取消后回到预览。Tab 新建子节点,Enter 内联编辑标题,Ctrl+Enter 原位编辑正文,Ctrl+Space 最小化或展开正文区域,方向键移动选中节点。已实现:
Ctrl+Enter 后在原位置编辑,Ctrl/Cmd+S 保存并回到预览,Esc 放弃本次编辑。待补齐:
npm install
npm run lint
npm run build
npm test
发布或修改 Obsidian 运行时交互前,额外运行真实 Obsidian 端到端验证:
npm run build
npm run test:e2e:obsidian
该脚本需要 Node.js 22 或更高版本,并默认使用 C:\Program Files\Obsidian\Obsidian.exe;如安装路径不同,可通过 OBSIDIAN_EXE 环境变量指定。
ESLint 使用类型感知检查,并将异步 Promise 错误、未使用代码、测试误用以及文件/函数复杂度纳入质量门禁。自动修复可运行:
npm run lint:fix
开发监听:
npm run dev
推荐使用脚本:
npm run deploy -- "D:\path\to\your\test-vault"
也可以手动复制以下文件到库目录:
.obsidian/plugins/heading-mindmap/
需要复制:
main.js
manifest.json
styles.css
然后在 Obsidian 设置中启用 Heading Mindmap,用命令面板执行 打开思维导图(英文界面显示为 Open mind map)。命令默认在新 tab 打开导图以保留当前 Markdown 源码视图;如果当前 tab 已经是同一文件的导图,则复用当前导图。