From 84bbce175155a3b58b0c6e499a73ee084f06fc2f Mon Sep 17 00:00:00 2001 From: ninglg Date: Mon, 15 Jun 2026 18:27:17 +0800 Subject: [PATCH] Release 1.4.0: add wiki-link support and mention autocomplete --- README.md | 20 ++++++++++++++++---- manifest.json | 2 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e453ee8..d412cf4 100644 --- a/README.md +++ b/README.md @@ -160,9 +160,15 @@ All per-file display preferences are written to frontmatter and restored on next - Command palette: **Toggle mindmap / source view** - Command palette: **Cycle mindmap layout (balanced / right / left / tree / radial)** -### External Links +### Links & Wiki-links -Markdown links in heading text (`[text](url)`) are rendered as clickable links directly on the mindmap canvas. Clicking a link opens it in the default browser. During node editing, links are shown as plain text for easy modification. +Markdown links (`[text](url)`) and wiki-links (`[[Note]]`, `[[Note|Alias]]`) in heading text are rendered as clickable links on the mindmap canvas. + +- **External links** (`http://...`) open in the default browser +- **Internal links** (relative paths like `./note.md`) open in a new Obsidian tab +- **Wiki-links** (`[[Note]]`) open the target note in a new Obsidian tab — supports shortest paths, relative paths, and aliases natively + +During node editing, typing `[[` triggers an autocomplete popup that searches all vault notes. Use **↑↓** to navigate, **Enter** to insert, **Escape** to dismiss. Links are shown as plain text while editing for easy modification. ### Export PNG @@ -367,9 +373,15 @@ type: mindmap - 命令面板:**Toggle mindmap / source view** - 命令面板:**Cycle mindmap layout (balanced / right / left / tree / radial)** -### 外部链接 +### 链接与双向链接 -标题中的 Markdown 链接(`[文本](url)`)会直接在思维导图画布上渲染为可点击的链接。点击链接会在默认浏览器中打开。编辑节点时,链接会显示为纯文本以便修改。 +标题中的 Markdown 链接(`[文本](url)`)和 Wiki 链接(`[[笔记]]`、`[[笔记|别名]]`)会直接在思维导图画布上渲染为可点击的链接。 + +- **外部链接**(`http://...`)在默认浏览器中打开 +- **内部链接**(相对路径如 `./note.md`)在新的 Obsidian 标签页中打开 +- **Wiki 链接**(`[[笔记]]`)在新的 Obsidian 标签页中打开目标笔记——原生支持最短路径、相对路径和别名 + +编辑节点时,输入 `[[` 会触发自动补全弹窗,搜索所有 vault 笔记。使用 **↑↓** 导航、**Enter** 插入、**Escape** 关闭。编辑模式下链接显示为纯文本以便修改。 ### 导出 PNG diff --git a/manifest.json b/manifest.json index 54fb919..3d5ee23 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "light-mindmap", "name": "Light Mindmap", - "version": "1.3.0", + "version": "1.4.0", "minAppVersion": "1.4.0", "description": "Auto-renders markdown headings as a colorful, interactive mindmap — no extra syntax required.", "author": "Light Ning",