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] Start Presentation at the selected slide & Disable ESC binding #64

Closed trungng2006 closed 4 months ago

trungng2006 commented 4 months ago

I usually use the page preview/hover editor to trigger a popup to show examples. The problem is hover editor and Presentation both use ESC as the button to end the presentation and destroy the popup.

Hence, I think it would be great if you could add the option to start the presentation at the current/selected slide.

AND/or remap ESC to CTRL+ESC to end the presentation.

Developer-Mike commented 4 months ago

I'll add a command to end the presentation so you can assign a custom hotkey to it. Additionally, I'll add a setting to disable the "ESC to stop the presentation" keybinding.

The feature to continue at the selected slide is more difficult, and I don't know if I'll add it. The problem is that you can loop back to a slide and then move to a different slide. What should happen in this case? (Example)

trungng2006 commented 4 months ago

Thank you for adding the command to end the presentation!!!

For the start presentation at the selected slide:

Developer-Mike commented 4 months ago

So it looks like the ESC-to-exit behavior is forced by the browser engine Obsidian is running on... In version 2.7.8 I've added an "End Presentation"-Command and a "Continue Presentation"-Command. Those two should make your workflow smoother. If you end a presentation, you can continue where you've left using this command (Or any assigned hotkey). To fix the ESC-key-issue, your best bet is opening an issue in the "Hover Editor"-Plugin and ask them for e.g. a command to close their popup. Sorry for creating some false hopes for the ESC-key fix 😥.

trungng2006 commented 4 months ago

No need to apologize. I appreciate that you spent time and effort to help solve my problem. Thank you so much!!!