No description
Find a file
Clare Macrae d641365ad1
Merge pull request #22 from claremacrae/dependabot/npm_and_yarn/eslint-10.4.1
chore(deps-dev): bump eslint from 10.3.0 to 10.4.1
2026-06-11 14:40:47 +01:00
.github chore: Tell Dependabot to stop trying to update obsidian to newer versions 2026-06-11 14:37:36 +01:00
docs Move images to a sub-directory 2021-11-28 11:55:21 +00:00
src refactor: Update setTimeout usage, as Obsidian scanner rule has changed 2026-06-11 11:01:13 +01:00
.gitignore chore: Add package-lock.json from before today's edits 2026-05-03 16:05:50 +01:00
.hotreload Add .hotreload for use with Hot Reload plugin 2021-10-31 13:18:03 +00:00
.npmrc chore: Control commit messages for releases 2026-06-11 10:00:45 +01:00
.prettierrc Copy in plugin source from obsidian-collapse-all 2021-10-31 12:51:29 +00:00
CHANGELOG.md chore: Update CHANGELOG in anticipation of the next release 2026-06-11 12:09:43 +01:00
CONTRIBUTING.md chore: Add CONTRIBUTING.md 2026-06-11 12:04:33 +01:00
eslint.config.js chore: Fix eslint on version-bump.mjs 2026-05-03 22:15:22 +01:00
LICENSE Add Nathan Smith to Copyright line 2021-10-31 12:52:18 +00:00
main.ts Update plugin class for new plugin name 2021-11-28 11:11:34 +00:00
manifest.json chore: Update to version 2.0.6 2026-06-11 12:12:12 +01:00
mdsnippets.json Add a table of contents to README.md 2021-11-28 10:18:21 +00:00
package-lock.json chore(deps-dev): bump eslint from 10.3.0 to 10.4.1 2026-06-11 13:39:28 +00:00
package.json chore(deps-dev): bump eslint from 10.3.0 to 10.4.1 2026-06-11 13:39:28 +00:00
README.md chore: Document the need to update the CHANGELOG.md 2026-06-11 12:08:48 +01:00
rollup.config.js Copy in plugin source from obsidian-collapse-all 2021-10-31 12:51:29 +00:00
tsconfig.json Copy in plugin source from obsidian-collapse-all 2021-10-31 12:51:29 +00:00
version-bump.mjs chore: Fix logic error in version bump script 2026-06-11 08:54:04 +01:00
versions.json chore: Update to version 2.0.6 2026-06-11 12:12:12 +01:00

"Reveal Active File Button" Obsidian Plugin

Contents

Purpose

Reveal Active File Button is an Obsidian plugin that adds a single-click button to make the Obsidian.md File Explorer/Navigator show your active file, for example to find neighbouring files.

This is a convenient addition to these built-in options already included in Obsidian:

  • The command "File explorer: Reveal active file in navigation"
  • The pane menu option "Reveal file in navigation"

Usage

To scroll Obsidian File Explorer/Navigator show your active file, click on the crosshairs icon:

RevealActiveFile

The result:

ActiveFileRevealed

Tips

If scroll position isn't quite correct

  • If the File Explorer/Navigator does not quite scroll to the correct position, click the button a second time and it will work.
    • Explanation: the button simply invokes the built-in Obsidian command "File explorer: Reveal active file in navigation".
    • In large vaults, or for a file in a folder with a large number of files, the command does not always move to the correct position the first time.
    • A second request appears to work reliably.

If you tested version 1.0.0

If you are one of a few people that tested this plugin before it was added to the list of Community Plugins, you should remove that old version, as the plugin has been renamed.

For help with doing that, see Removing version 1.0.0.

Changelog

See Changelog.

Development

Doing a release

Instructions based on https://docs.obsidian.md/Plugins/Releasing/Release+your+plugin+with+GitHub+Actions

  1. Preparation:
    1. Make sure you are on main.
    2. Make sure you have pushed all changes.
    3. Check that the Verify Commit action succeeded.
    4. On the Obsidian Scanner, run 'Review branch' on the default branch to check that there are no new issues.
  2. Set the Obsidian minAppVersion variable in manifest.json to be consistent with the "obsidian" field in package.json.
  3. Run one of the following commands, which will check, update version numbers and push the changes:
    1. npm version patch
    2. npm version minor
    3. npm version major
  4. Publish the release:
    1. Browse to the Actions tab. The workflow might still be running, or it might have finished already.
    2. When the workflow finishes, browse to the Releases tab in the sidebar on the right side. The workflow has created a draft GitHub release and uploaded the required assets as binary attachments.
    3. Select Edit (pencil icon) on the right side of the release name.
    4. Add release notes to let users know what happened in this release, and then select Publish release.
  5. Go to the Obsidian Scanner and click ... then "Check for new releases".
  6. Update the CHANGELOG.md file with the new version number and release notes (copied from the GitHub release).
  • Collapse All
    • This plugin collapses and expands the file explorer
    • It is compatible with this plugin: both can be installed, and are useful alongside each other, as shown in this image:
      collapse-all-and-reveal-active
  • Automatically Reveal Active File
    • Use this if you always want the navigator to show the active file
    • And you don't mind Obsidian jumping away from other views, like Search results or the Tags panel

Thanks

  • This code is heavily based on Nathan Smith's Collapse All plugin, with thanks.