by xyls184
VS Code style breadcrumb trail (folder, file, headings) at the top of the editor, following the cursor. Click any crumb to jump.
Developed with AI assistance (glm-5.3-flash & deepseek-v4.1-flash). · 本插件在 AI(glm-5.3-flash & deepseek-v4.1-flash)辅助下编写。
Disclaimer · 免责声明
This project was made with wish coding: the author does not read or understand the source code and therefore makes no guarantee about its correctness or usability — use it at your own risk.
本项目为 wish coding 制作:作者看不懂项目代码,因此不对代码的可用性与正确性作任何保证,请自行评估风险后使用。
中文说明在下方。
Editor Breadcrumbs
VS Code style breadcrumbs for the Obsidian editor:
Folder › Subfolder › Note name › Heading 1 › Heading 2 › Heading 3 › …
A breadcrumb bar sits at the top of the editor pane, following the cursor (edit mode) or the scroll position (reading mode), and shows the current heading chain only — one crumb per heading level.
Requires Obsidian 1.13.0+, desktop.
Not affiliated with Breadcrumbs. This is an independent plugin and is not related to, endorsed by, or derived from the Breadcrumbs plugin.
Features
- Real-time trail: follows the cursor in edit mode by default; an optional view anchor makes edit mode follow scrolling too. Reading mode follows the scroll position. The anchor line is configurable per mode (0–100%, default middle). Works on long, virtualized documents.
- Skipped heading levels stay visible (issue #1): when the structure jumps, e.g.
H1straight toH4, the bar shows extra separators (H1 text ›› H4 text), one per missing level. - Left-click a heading crumb → the sibling heading menu (headings of the same level under the same parent, current one checked). Arrow-key navigation is built in.
- Right-click a heading crumb → jump to it immediately.
- Jumps land precisely in both modes on the configured anchor line, using Obsidian's own internal heading-scroll path in reading mode.
- Click a file/folder crumb → reveal the file in the file explorer.
- Long names are truncated with an ellipsis in the bar; the sibling menu always shows full titles.
Usage
| Action | Effect |
|---|---|
| Left-click a heading crumb | Sibling heading menu — pick one to jump |
| Right-click a heading crumb | Jump to that heading immediately |
| Left/right-click a file or folder crumb | Reveal the file in the file explorer |
Settings
| Setting | Default | Description |
|---|---|---|
| Show folder path | on | Show the Folder › Subfolder chain before the file name |
| Show file name | on | Show the file name crumb |
| Max characters per crumb | 20 | Truncation length for the bar (menu entries are never truncated) |
| Follow view anchor in edit mode | off | Off: the trail follows the cursor (original behaviour). On: it follows the line at the edit-mode anchor, so scrolling without clicking updates the trail |
| Edit-mode anchor (%) | 50 | Where the trail switches headings in edit mode: 0 = top edge, 50 = middle, 100 = bottom edge |
| Reading-mode anchor (%) | 50 | Where a heading becomes current in reading mode: 0 = top edge, 50 = middle, 100 = bottom edge |
| Show in reading mode | on | Also show the bar in reading mode, following the scroll position |
| Show heading trail in the tab header | off | Render the heading trail inside the native tab title bar, right after the Folder › File path (folder/file crumbs are omitted there — the native path already shows them) |
| Hide when there are no headings | off | Hide the bar entirely for notes without headings |
Translations
The settings tab is localized into 12 languages: 简体中文, 繁體中文, 日本語, 한국어, Українська, Русский, Français, Deutsch, Português, Português (Brasil), Español, العربية.
These translations were produced with AI assistance and have not been reviewed by native speakers. Corrections are welcome via issues or pull requests.
Installation
Editor Breadcrumbs is available in the official community plugin store: open the store page or search "Editor Breadcrumbs" in Settings → Community plugins → Browse, then hit Install.
Option A — Download the pre-built files (no build needed)
Download these three files: main.js, manifest.json, styles.css (from the repository root or the Releases page), and copy them into:
<vault>/.obsidian/plugins/editor-breadcrumbs/
Create the folder by yourself. Then in Obsidian: Settings → Community plugins → enable "Editor Breadcrumbs" (turn off Restricted mode first if prompted).
Option B — Install via BRAT
Install BRAT, then add this repository as a BRAT plugin.
Option C — Build from source
git clone <this repository>
cd obsidian-editor-breadcrumbs
pnpm install
pnpm build # produces main.js
npx tsc --noEmit # optional: type check
Then copy the three files (main.js, manifest.json, styles.css) into <vault>/.obsidian/plugins/editor-breadcrumbs/ as in Option A.
Editor Breadcrumbs(中文说明)
VS Code 风格的 Obsidian 编辑器面包屑导航:
文件夹 › 子文件夹 › 笔记名 › 一级标题 › 二级标题 › 三级标题 › …
编辑区顶部常驻一条面包屑栏,编辑模式跟随光标、阅读模式跟随滚动,只显示当前标题链(每级只出现当前所在的那个标题)。
需要 Obsidian 1.13.0+,桌面版。
与 Breadcrumbs 插件无关:本插件是独立项目,与 Breadcrumbs 插件没有任何关联,也不是它的衍生版本。
功能
- 路径实时更新;编辑模式默认跟随光标,也可开启视图锚点改为跟随滚动;阅读模式跟随滚动。锚点位置按模式单独设置(0–100%,默认中间),含超长虚拟化文档。
- 标题跳级可见(issue #1):层级跳跃时(如
H1直接到H4),面包屑会显示额外分隔符(H1 文本 ›› H4 文本),每缺一级多一个›。 - 左键标题段 → 弹出同级标题菜单(同一父标题下同层级的兄弟标题,当前项勾选),方向键导航原生支持。
- 右键标题段 → 直接跳转到该标题。
- 两种模式均精确落地到设定的锚点行;阅读模式走 Obsidian 官方内部跳转路径。
- 左键/右键文件、文件夹段 → 在文件列表中定位该文件。
- 面包屑栏里长标题截断显示
…;同级菜单里始终显示完整标题。
使用
| 操作 | 效果 |
|---|---|
| 左键点击标题段 | 弹出同级标题菜单,选择后跳转 |
| 右键点击标题段 | 直接跳转到该标题 |
| 左/右键点击文件、文件夹段 | 在文件列表中定位该文件 |
设置项
| 设置项 | 默认 | 说明 |
|---|---|---|
| Show folder path | 开 | 是否显示 文件夹 › 子文件夹 段 |
| Show file name | 开 | 是否显示文件名段 |
| Max characters per crumb | 20 | 面包屑栏每段最大字符数(菜单内不截断) |
| Follow view anchor in edit mode | 关 | 关闭时编辑模式跟随光标(原行为);开启后改为跟随下方设定的编辑区锚点行,滚动即更新 |
| Edit-mode anchor (%) | 50 | 编辑模式在视口何处切换标题:0 = 顶部,50 = 中间,100 = 底部 |
| Reading-mode anchor (%) | 50 | 阅读模式标题在视口何处算作“当前”:0 = 顶部,50 = 中间,100 = 底部 |
| Show in reading mode | 开 | 阅读模式是否也显示面包屑(跟随滚动) |
| Show heading trail in the tab header | 关 | 把标题导航渲染进 Obsidian 原生标签页标题栏(文件夹 › 文件名 之后);该模式下不再重复显示路径段,因为原生标题栏已包含 |
| Hide when there are no headings | 关 | 无标题的笔记是否隐藏整条面包屑 |
多语言
设置页已支持 12 种语言:简体中文、繁體中文、日本語、한국어、Українська、Русский、Français、Deutsch、Português、Português (Brasil)、Español、العربية。
语言文件由 AI 翻译生成,尚未经过母语者审核;如有偏差,欢迎通过 issue 或 PR 指正。
安装
本插件已上架 Obsidian 官方社区插件商店:在 设置 → 第三方插件 → 浏览 中搜索 "Editor Breadcrumbs" 安装,或直接打开商店页面。
方式 A —— 下载预编译文件(无需编译)
下载这三个文件:main.js、manifest.json、styles.css(在本仓库根目录或 Releases 页面),复制到:
<库路径>/.obsidian/plugins/editor-breadcrumbs/
文件夹需要手动创建。然后在 Obsidian 中:设置 → 第三方插件 → 启用 "Editor Breadcrumbs"(如提示受限模式请先关闭)。
方式 B —— 通过 BRAT 安装
安装 BRAT,将本仓库添加为 BRAT 插件即可。
方式 C —— 从源码编译
git clone <本仓库>
cd obsidian-editor-breadcrumbs
pnpm install
pnpm build # 生成 main.js
npx tsc --noEmit # 可选:类型检查
编译后按方式 A 把三个文件(main.js、manifest.json、styles.css)复制到 <库路径>/.obsidian/plugins/editor-breadcrumbs/。
License: CC0-1.0
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.