shichongrui / obsidian-reveal-active-file

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

Plugin doesn't scroll to the open node, also request for centering #14

Open ranknfyle opened 2 years ago

ranknfyle commented 2 years ago

I’m using Obsidian v 0.15 on Win10. This plugin “Auto Reveal Active File” (v 1.02) highlights the open node, but the node is nowhere near the visible part of the File Editor. I have to find it by scrolling, which defeats the purpose of the plugin. There’s another plugin called “Reveal Active File Button”, which does the same thing (in theory), but it requires the user to click a button. The help of that other plugin says that sometimes you have click the button twice for the open node to show in the visible area of the File Editor. Which is true: if I click the button twice, it indeed scrolls to the visible node. It seems either something in Obsidian needs to be fixed or both plugins should invoke the “reveal” function twice by default, so that both plugins work properly. BTW, it would be better if the open node was centered vertically in the File Editor, instead of just showing up at the very bottom (or the very top). Thanks

obstschale commented 1 year ago

Any updates on this issue?