让 Obsidian 中的
#标签像 Logseq 一样工作:点击标签,直接打开对应的[[标签]]页面。
Obsdian Tag to Page 会把标签点击从默认的标签搜索行为改为页面导航。目标页面不存在时,它还可以自动创建对应的 Markdown 笔记。
#tag 打开页面 — 支持阅读视图和实时预览。alias 和 aliases。#parent/child 会按需创建 parent/child.md 及父目录。Ctrl,macOS 按住 Cmd 后点击。# 时,从笔记名和别名中提供补全建议。一句话总结 — 把标签从“搜索入口”变成“页面入口”,更接近 Logseq 的笔记流。
点击标签后,插件会:
.tag 和 .cm-hashtag 元素的点击。metadataCache.getFirstLinkpathDest() 查找同名页面。alias 和 aliases。开启页面补全后,插件使用 CodeMirror 6 autocomplete,从 Markdown 笔记名和别名中生成建议。
| 设置项 | 说明 |
|---|---|
| 语言 | 在中文和 English 之间切换设置界面。 |
输入 # 时显示页面补全 |
根据笔记名和别名提供补全建议,可能增加一些扫描开销。 |
agarcabin/obsdian-tag-to-page。从 Releases 下载 main.js、manifest.json 和 styles.css,复制到:
<你的库>/.obsidian/plugins/tag-to-page/
然后在 设置 → 社区插件 中启用 Tag to Page。
仓库名称是
obsdian-tag-to-page;为兼容已有安装,插件 ID 和安装目录仍保持为tag-to-page。
# 页面补全后,会替换默认的 [[ 页面补全提供器。git clone https://github.com/agarcabin/obsdian-tag-to-page.git
cd obsdian-tag-to-page
npm install
npm run dev # 监听模式
npm run build # 正式构建
Tag to Page 使用 MIT License 开源。
Source: agarcabin/obsdian-tag-to-page · Releases
Make
#tagsbehave more like Logseq: click a tag to open its matching[[tag]]page.
Obsdian Tag to Page changes tag clicks from Obsidian's default tag-search behavior into page navigation. If the target page does not exist, it can create the Markdown note automatically.
#tag — Works in Reading view and Live Preview.alias and aliases values when resolving a tag.#parent/child creates parent/child.md and its parent directory when needed.Ctrl on Windows/Linux or Cmd on macOS while clicking.# to search note names and aliases for suggestions.TL;DR — Turn tags from search triggers into page links for a more Logseq-like note flow.
When you click a tag, the plugin:
.tag and .cm-hashtag clicks during the DOM capture phase.metadataCache.getFirstLinkpathDest() to find a page with the matching name.alias and aliases values if the direct name is not found.When page completion is enabled, CodeMirror 6 autocomplete suggests Markdown note names and aliases.
| Setting | Description |
|---|---|
| Language | Switch the settings UI between Chinese and English. |
Show page completion when typing # |
Suggest matching note names and aliases; this may add some scanning overhead. |
agarcabin/obsdian-tag-to-page in BRAT settings.Download main.js, manifest.json, and styles.css from the Releases page, then copy them into:
<your vault>/.obsidian/plugins/tag-to-page/
Enable Tag to Page under Settings → Community plugins.
The repository name is
obsdian-tag-to-page; the plugin ID and installation directory remaintag-to-pagefor compatibility with existing installations.
# page completion replaces the default [[ page completion provider.git clone https://github.com/agarcabin/obsdian-tag-to-page.git
cd obsdian-tag-to-page
npm install
npm run dev # watch mode
npm run build # production build
Tag to Page is released under the MIT License.