Repository navigation
挂载现在会跟着改名和移动走
重命名或移动源文件夹之后,虚拟挂载不会再「指向一个已经不存在的路径」。插件运行期间的改动会立即跟随;插件没运行时的改动,会在下次启动时按内容指纹自动找回。
更新内容
- 修复:挂载跟随改名 / 移动。插件运行期间重命名、移动源文件夹或挂载点时,路径、自动推导的显示名和排序位置一起更新;你自己填写的显示名保持不动。
- 新增挂载索引
mounts.index.json(与data.json同目录):记录每个挂载最后一次的路径和内容指纹。插件没运行时发生的改名 / 移动会在启动时自动重新关联;data.json丢失时也能用索引恢复挂载。 - 安全策略:只有唯一匹配才重新绑定;同一项目的多份副本同时存在时放弃,不改动配置。挂载点永远不会被找回进它自己的源目录内部。
- 修复:与真实目录混排后挂载行会乱闪。核心重绘时改为在同一个任务内、浏览器绘制之前同步补注入,并复用被清掉的同一个节点(已展开的子目录不会回到折叠态);只有内容签名变化时才重建节点。
- 设置页:源路径失效的挂载会标出「路径不存在」,并新增「重建挂载索引」按钮。
安装
- 社区插件商店:设置 → 第三方插件 → 浏览 → 搜索 Virtual Mount(商店同步可能有延迟)。
- 手动安装:下载下方的
main.js、manifest.json、styles.css,放进<你的仓库>/.obsidian/plugins/virtual-mount/,重启 Obsidian 后在「设置 → 第三方插件」里启用。 - BRAT:添加
ko-Ani/obsidian-virtual-mount即可跟进后续版本。
完整更新日志见 CHANGELOG.md。
English
Mounts now follow renames. Renaming or moving the source folder (or the mount point) while the plugin is running updates the path, the automatically derived display name and the sort position together; a display name you typed yourself is left alone.
A new mount index mounts.index.json records each mount's last known paths and a content fingerprint, so renames and moves that happen while the plugin is not running are re-linked at startup — and the index can restore the mounts if data.json is lost. Only a unique fingerprint match is accepted, so two identical copies of a folder leave the configuration untouched.
Also fixed: no more flicker when mounts are sorted together with real entries. A core repaint is now repaired synchronously in the same task, before the browser paints, by re-inserting the very same node, so expanded subfolders keep their state. The settings tab flags broken paths as "Path missing" and adds a "Rebuild mount index" button.
Install from Settings → Community plugins → Browse → search “Virtual Mount”, by copying main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/virtual-mount/, or with BRAT (ko-Ani/obsidian-virtual-mount).