XXY9104 downloadsControl folder expansion depth in Obsidian’s file explorer. Expand to a selected level or expand all folders, with an option to keep the active note’s folder path expanded.
File Explorer Depth Controls 在 Obsidian 文件列表上方提供层级控制栏,用于统一调整文件夹树的展开深度。
L1、L2 等层级,展开到指定深度并折叠更深的文件夹。支持桌面端和移动端,界面提供简体中文和英文。
File Explorer Depth Controls adds a toolbar above Obsidian’s file list to control how deeply the folder tree is expanded.
L1 or L2 to expand the folder tree to that depth and collapse deeper folders.Available on desktop and mobile, with Simplified Chinese and English interfaces.
Requires Obsidian 1.8.7 or later on desktop, iOS, and Android. The controls follow the app language by default.
The plugin uses internal file explorer interfaces to change and save native folder folds, and stores its own preferences through the plugin settings API. It makes no network requests and does not edit vault notes.
Download main.js, manifest.json, and styles.css from the same release. Place them in .obsidian/plugins/file-explorer-depth-controls in your vault, then enable File Explorer Depth Controls under Community plugins.
Use Node.js 22.13 or later. Run npm ci, npm run typecheck, npm run lint, npm test, and npm run build. Use npm.cmd on Windows if PowerShell blocks npm.ps1. The production bundle is main.js at the repository root.
在桌面端、iOS 和 Android 的原生文件目录顶部添加层级按钮,适用于 Obsidian 1.8.7 或更高版本。L1 折叠顶层文件夹,只显示库根目录的内容。更深的层级会展开更多文件夹。全部 展开所有文件夹。默认保留当前文件的各级父文件夹,方便在收展后继续定位当前文件。
可通过命令面板直达 L1–L6、展开全部或逐层收展,也可以为这些命令绑定快捷键。直达高于工具栏上限的层级时,上限会随之提高。从最大数字层级继续加深会进入 全部,从 全部 浅收会回到最大数字层级。
设置页可调整语言、当前层级、工具栏上限、启动恢复、按钮显示、当前文件路径保留和成功提示。关闭工具栏后,命令和快捷键仍可用。插件不发送网络请求,也不修改笔记内容。
移动端从左侧抽屉打开文件目录。按钮的触控区域更大,窄屏下会折行。如果启动时文件抽屉尚未就绪,待目录挂载或进入可见区域后会继续尝试恢复。手动切换层级或修改设置会取消待执行的启动恢复。
手动安装时,把同一版本的 main.js、manifest.json 和 styles.css 放在库内的 .obsidian/plugins/file-explorer-depth-controls 文件夹,再在第三方插件设置中启用。