bugstack2737 downloadsShow a right sidebar panel listing notes that share tags with the current note, grouped by shared tag sets.
An Obsidian plugin that adds a right sidebar panel listing the notes that share tags with the current note, grouped by the exact set of shared tags.
private also ignores private/secret; matching is case-insensitive and accepts names with or without #.Ctrl/Cmd-click or middle-click to open it in a new tab, click a tag to search tag:name in global search, and hover a note to preview it when the core Page preview plugin is enabled.Install through BRAT:
bugstack27/obsidian-tag-relationManual install: download main.js, manifest.json and styles.css from Releases, put them in <vault>/.obsidian/plugins/tag-relation/, restart Obsidian and enable the plugin.
BRAT installs a published release. If the release is still a draft, publish it first.
On first enable, the plugin opens the Tag relation panel in the right sidebar once. After that your layout is left as you set it; run Open tag relation panel from the command palette or click the ribbon icon whenever you want it back.
| Setting | Default | Description |
|---|---|---|
| Show path | On | Show the folder path next to each related note |
| Show summary | On | Show the first paragraph of each related note |
| Summary length | 80 | Maximum number of characters (20–300) |
| Sort within group | File name | File name, creation time, or modification time |
| Rainbow tag colors | Off | Generate a stable color per tag name |
| Ignored tags | Empty | One tag per line, hierarchy prefixes, case-insensitive |
Settings are stored in the plugin's data.json and are searchable in Obsidian's settings search (Obsidian 1.13.0 and later).
vault.getMarkdownFiles()) on each refresh, and reads the tags of those files from Obsidian's in-memory metadata cache. This is the reason the plugin can see every file path in your vault — the enumeration is limited to that comparison, and only Markdown notes are considered.data.json. The plugin never writes to, renames, moves, or deletes your notes, and never reads outside the vault.npm install # install dependencies
npm run dev # watch mode, writes main.js
npm run build # type check + production build
npm run lint # ESLint
Source lives in src/; the build output is main.js (not committed).
For local debugging, copy main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/tag-relation/ and reload Obsidian.
npm version patch # updates package.json, manifest.json, versions.json and tags the commit
git push --follow-tags
Pushing the tag makes GitHub Actions run the type check and build, then create a draft release with main.js, manifest.json, styles.css and build provenance. Review it and publish the release manually.
private 会同时忽略 private/secret;匹配不区分大小写,带不带 # 均可。Ctrl/Cmd 点击或鼠标中键在新标签页打开;点击标签跳转到全局搜索的 tag:标签名;安装并启用核心插件 Page preview 后可悬浮预览笔记。本插件通过 BRAT 安装。
bugstack27/obsidian-tag-relation
手动安装:从 Releases 下载 main.js、manifest.json、styles.css,放入 <库>/.obsidian/plugins/tag-relation/,重启 Obsidian 后启用。
BRAT 安装的是已发布的 Release。如果 Release 仍是 draft,需要先手动发布。
首次启用时,插件会在右侧边栏打开一次「标签关系」面板;之后不再自动打开,布局完全由你决定。需要时可在命令面板执行 打开标签关系面板,或点击左侧功能区图标。
| 设置项 | 默认值 | 说明 |
|---|---|---|
| 显示路径 | 开 | 在关联笔记旁显示所在文件夹路径 |
| 显示简要信息 | 开 | 在关联笔记下方显示首段内容 |
| 简要信息长度 | 80 | 摘要最多显示的字符数(20–300) |
| 组内排序 | 文件名称 | 可选文件名称、创建时间、修改时间 |
| 标签使用彩虹颜色 | 关 | 按标签名生成稳定颜色 |
| 忽略标签 | 空 | 每行一个标签,支持层级前缀,不区分大小写 |
设置保存在插件的 data.json 中;Obsidian 1.13.0 及以上版本会把它们编入设置搜索。
vault.getMarkdownFiles()),并从 Obsidian 的内存元数据缓存里读取这些笔记的标签。这就是本插件能看到库内全部文件路径的原因——枚举只用于这次比对,且只涉及 Markdown 笔记。data.json。不会修改、重命名、移动或删除笔记,不会读取库外的文件。1.7.2 及以上。npm install # 安装依赖
npm run dev # 监听编译,生成 main.js
npm run build # 类型检查 + 生产构建
npm run lint # ESLint 检查
源码位于 src/,构建产物为 main.js(不纳入版本控制)。
本地调试时,把 main.js、manifest.json、styles.css 复制到 <库>/.obsidian/plugins/tag-relation/,重载 Obsidian 即可。
npm version patch # 同步更新 package.json、manifest.json、versions.json,并打 tag
git push --follow-tags
推送 tag 后,GitHub Actions 会执行类型检查与构建,生成 main.js、manifest.json、styles.css 的 Release(draft),并记录构建证明。确认无误后手动发布该 Release。