# "Reveal file in navigation" automatic or via button

**URL:** <https://forum.obsidian.md/t/reveal-file-in-navigation-automatic-or-via-button/89119>\
**Category:** Feature archive\
**Tags:** ui-ux\
**Created:** [September 29, 2024, 5:14pm UTC](https://forum.obsidian.md/t/reveal-file-in-navigation-automatic-or-via-button/89119 "2024-09-29T17:14:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cito](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cito/32/554_2.png) [@Cito](https://forum.obsidian.md/u/Cito)\
**Post date:** [September 29, 2024, 5:14pm UTC](https://forum.obsidian.md/t/reveal-file-in-navigation-automatic-or-via-button/89119/1 "2024-09-29T17:14:59Z")

</div>

### Use case or problem

After opening a file with the quick switcher or after a search, you often want to view the corresponding folder in the file explorer to look for similar files or add a new one in the same folder. For this purpose, you can use the “reveal file in navigation” command.

However, the “reveal file in navigation” command is not very convenient. You need to right-click on the tab of the open editor, and then pick it at the bottom of a long context menu. This is a bit inconvenient and there should be a faster way.

### Proposed solution

It would be much easier if the file explorer had an additional button for this purpose. This could be located at the right side of the existing buttons “new note”, “new folder”, “sort options”, “collapse all”. The JetBrains IDEs do it like this, and they use a crosshairs icon for the button.

Another solution would be to auto-sync the file explorer with the active editor, i.e. the selected file in the file explorer would always match the note in the current editor. The VS Code IDE does it like this. Then there would be no need for a separate “reveal file in navigation” command or button.

Would be good if Obsidian support one of these solutions (or maybe both,

### Current workaround

Use the context menu.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [September 29, 2024, 5:23pm UTC](https://forum.obsidian.md/t/reveal-file-in-navigation-automatic-or-via-button/89119/2 "2024-09-29T17:23:17Z")

</div>

> [@Cito](#):
>
> However, the “reveal file in navigation” command is not very convenient. You need to right-click on the tab of the open editor, and then pick it at the bottom of a long context menu. This is a bit inconvenient and there should be a faster way.

There is a command for this in command palette and you can bind an hotkey to it.

Also this

> [@Scroll file explorer to currently active document](https://forum.obsidian.md/t/scroll-file-explorer-to-currently-active-document/72917):
>
> It would be very helpful and a nice feature if the file explorer could automatically expand and scroll to the file currently open/in focus in the editor. If not automatically when changing focus, at least using a command or button (exactly the same as the [“Sync with active document”-feature in Visual Studio](https://www.meziantou.net/visual-studio-tips-and-tricks-find-the-current-opened-file-in-the-solu.htm)).

---

<div class="post-metadata">

**Author:** ![vjik](https://forum.obsidian.md/user_avatar/forum.obsidian.md/vjik/32/27341_2.png) [@vjik](https://forum.obsidian.md/u/vjik)\
**Post date:** [October 14, 2024, 2:29pm UTC](https://forum.obsidian.md/t/reveal-file-in-navigation-automatic-or-via-button/89119/3 "2024-10-14T14:29:59Z")

</div>

I use hotkey for this feature, but will be cool have button in files toolbar:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/f/9/f9e9eba08f5f5a198c04e62203e43e78c5a4be8e.png)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [October 14, 2024, 2:45pm UTC](https://forum.obsidian.md/t/reveal-file-in-navigation-automatic-or-via-button/89119/4 "2024-10-14T14:45:15Z")

</div>

Closed on October 14, 2024, 2:45pm UTC


