shichongrui / obsidian-reveal-active-file

Obsidian plugin to reveal the active file automatically when you open a file
86 stars 10 forks source link

Does not always scroll the navigation list so that the active file is visible #7

Closed claremacrae closed 2 years ago

claremacrae commented 3 years ago

I've got several thousand files in folders, and often when I load a file with this plugin enabled, the navigation view is not scrolled to make the selected filename visible in the navigation list.

Sometimes it scrolls correctly, often it does not.

Is there a trick to make it always scroll to the correct position.

claremacrae commented 3 years ago

Environment: macOS

luisneto commented 2 years ago

I agree it would be very useful if it scrolled to reveal the file.

Any chance this could be implemented, @shichongrui?

shichongrui commented 2 years ago

This plugin is very simple in that it just executes the file-explorer:reveal-active-file command that is built into obsidian. If it is not scrolling to the correct position that is an obsidian bug related to the file-explorer:reveal-active-file command.