Developer-Mike / obsidian-advanced-canvas

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

[FR] When exiting presentation mode: update canvas viewport to center on presented node #105

Closed amitnovick closed 1 month ago

amitnovick commented 2 months ago

Hello, @Developer-Mike,

This is a wonderful plugin and I greatly appreciate your work on it!

Problem

I start a presentation, and at some point press Esc to make some changes to a slide However when I exit the presentation, the viewport is back where it was before I entered presentation mode (so I have to look for the node I was viewing)

Solution

When in presentation mode, upon pressing Esc, center the canvas viewport with the last viewed node in the center


Is something like this possible? What is the difficulty?

Thanks Amit

Developer-Mike commented 1 month ago

Thank you for sharing your suggestion. The viewport gets restored on purpose after the presentation is exited. This can easily be changed to an optional setting.

amitnovick commented 1 month ago

Thank you for sharing your suggestion. The viewport gets restored on purpose after the presentation is exited. This can easily be changed to an optional setting.

Happy to hear that it's possible to do!

Just asking if this should be an optional setting or the default behavior.

If it was the default behavior, a user could still go back to the start node's viewport by Start presentation -> Esc

But it's perfectly fine if the preference is with the current behavior (in which case an optional setting would be great)

Developer-Mike commented 1 month ago

I don't know which behaviour will be the default one yet 🤔...

Developer-Mike commented 1 month ago

Will be available in version 3.1.1