martinopolo12 downloadsAuto-reveals the active file in the File Explorer without transferring keyboard focus.
Obsidian plugin that automatically reveals the active file in the File Explorer sidebar when switching tabs or opening files — without transferring keyboard focus away from the editor.
The existing obsidian-reveal-active-file plugin uses Obsidian's built-in file-explorer:reveal-active-file command, which transfers focus to the File Explorer. This creates a race condition where pressing Delete immediately after switching files can accidentally delete the revealed file instead of editor content.
This plugin directly manipulates the File Explorer view's tree to reveal files without transferring focus, keeping the keyboard context safely in the editor.
npm install to install dependenciesnpm run build to build the plugin# Example (adjust paths for your setup)
ln -s /path/to/obsidian-plugin-auto-reveal-in-explorer /path/to/vault/.obsidian/plugins/auto-reveal-in-explorer
(Not yet published)
# Install dependencies
npm install
# Build once
npm run build
# Build and watch for changes
npm run dev
After building, reload Obsidian (Ctrl/Cmd+R in desktop app) to test changes.
MIT