Developer-Mike / obsidian-advanced-canvas

⚡ Supercharge your Obsidian.md canvas experience! Create presentations, flowcharts and more!
GNU General Public License v3.0
286 stars 12 forks source link

[FR] Remember scroll position of md.files in Canvas #86

Open Pixel3ro opened 3 months ago

Pixel3ro commented 3 months ago

Single-tab file traversal: i I'm working in a Canvas. > ii I click a file link in the Canvas. > iii The file opens in the same tab, replacing the Canvas view. > iv When I'm done with the file, I click the "back" button to return to the Canvas. (back to 'i')

issue: when I get back to the Canvas, it doesn't remember Scroll Position of any file as it was in i. Resetting scroll positions of all files to the top and I lose my familiar viewing position. Oftentimes I accidentally open files in Full-Editor (double-clicking file-name while trying to enable cursor), and I quickly get back to the Canvas to resume work. But it looks unfamiliar at the blink of an eye as the scroll-config has changed, forcing me to find where I left-off, making it hard to resume work instantly. As it affects all the files in the Canvas, i run into this often while panning across the Canvas, and breaks my flow often. I'm highly penalized for just one accidental double-click.

PS: this is not about resuming-position (view coordinate and zoom) in the Canvas. It is to do only with .md files and their individual scroll positions.

Developer-Mike commented 1 month ago

This feature can potentially be added. I need to look at the difficulties of implementing this function though.