Reveal current file in navigation results in wrongly indent file

Steps to reproduce

  • Collapse “Files Navigation”

  • Restart Obsidian

  • Open any of the notes

  • Keep “Files Navigation” Collapsed

  • Use “Hotkeys” OR “Command palette”: “Files: Reveal current file in navigation”

Did you follow the troubleshooting guide? [Y/N]

YES, in Restricted Mode

Actual result

  • “Files Navigation” Incorrect indentation


  • macOS ARM

  • Obsidian Version 1.3.5

Additional information



  • Default theme

  • Restricted mode

  • Although the image is not the default theme, I also tested it with the default theme

Can you kindly post a screen recording of this happening in the sandbox vault ?

  • Look at the location of this “123” note, it is in a folder

  • After closing the file navigation bar, restart obsidian, open ”123“ notes, and use “Files: Reveal current file in navigation”

  • Then you will see an unusual blank space to the left of the “123” note

I can’t reproduce this.
Can you kindly attach the debug info that you did not fill in your bug report.

I can reproduce this on two Mac computers. (Installer 1.3.5)

Also to test if it had something to do with numbers in the title, I used a couple different words, and it still happens. (Following the exact steps. The file explorer tab can’t be the visible tab, restart Obsidian, open the file, then reveal it. If the file explorer is visible when you start Obsidian, it doesn’t happen.)

If you rename the file, the indentation pops away, until you follow the steps again.

I’ll boot into Windows and check there.

	Obsidian version: v1.3.7
	Installer version: v1.3.5
	Operating system: Darwin Kernel Version 21.6.0: Mon Dec 19 20:44:01 PST 2022; root:xnu-8020.240.18~2/RELEASE_X86_64 21.6.0
	Login status: logged in
	Catalyst license: insider
	Insider build toggle: on
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on


This is very weird

Yes, I managed to repro. I needed file explorer not to be the active.

1 Like

I can’t reproduce this in Windows, because when I close the Sandbox vault, it completely resets, including the view. So the file explorer is already open by default.

When you Cmd-Q on MacOS, it saves the states of the vaults, including the Sandbox vault. So you can reopen it, and have the state you left behind. Any notes you’ve created, and the sidebar tab you had open.