zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
3.89k stars 211 forks source link

BUG: Auto-export to SVG does not work, when Excalidraw is moved to a new window #1209

Open SiliasGH opened 1 year ago

SiliasGH commented 1 year ago

Your environment SYSTEM INFO: Obsidian version: v1.3.5 Installer version: v1.3.5 Operating system: Windows 10 Pro 10.0.22621 Login status: not logged in Insider build toggle: off Live preview: on Legacy editor: off Base theme: dark Community theme: Minimal v6.3.2 Snippets enabled: 0 Restricted mode: off Plugins installed: 54 Plugins enabled: 34 1: Hider v1.2.5 2: Advanced Tables v0.18.1 3: Vantage - Advanced search builder v1.4.2 4: Natural Language Dates v0.6.1 5: Calendar v1.5.10 6: Excalidraw v1.9.7 7: Underline v1.2.1 8: Tag Wrangler v0.5.11 9: Outliner v4.7.1 10: Image Toolkit v1.3.1 11: Tasks v4.1.0 12: Omnisearch v1.14.2 13: Excel to Markdown Table v0.4.0 14: Keyboard Analyzer v0.1.3 15: Copy as HTML v1.1.3 16: Templater v1.16.0 17: Pandoc Plugin v0.4.1 18: Kanban v1.5.3 19: Dictionary v2.22.0 20: Better Word Count v0.9.6 21: Emoji Toolbar v0.4.1 22: Hotkeys++ v0.2.7 23: Hotkeys for templates v1.4.3 24: Periodic Notes v0.0.17 25: MetaEdit v1.8.0 26: Recent Files v1.3.6 27: Dataview v0.5.56 28: Obsidian42 - Strange New Worlds (SNW) v1.2.2 29: Advanced Slides v1.20.0 30: Minimal Theme Settings v6.3.1 31: Map View v3.1.1 32: Style Settings v1.0.6 33: Regex Find/Replace v1.2.0 34: File Tree Alternative Plugin v2.3.4

RECOMMENDATIONS: Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets. Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Describe the bug Auto-export to SVG does not work, when Excalidraw is moved to a new window.

To Reproduce I like to use excalidraw in a separate window. It doesn't matter if I switch tabs in that separate window, or close that window with the excalidraw drawing, autosave doesn't work (I have set an Interval of 15 seconds), but it works when I work in the main obsidian window.

zsviczian commented 1 year ago

I changed this in the next release. It seems to work now... however, I had an explicit condition in the code not to do this... but unfortunately, I did not leave myself a message about why I might have added that. I will keep my eyes open and we will find out soon enough.

As a general practice, I recommend manually saving your work (CTRL+S) before closing a popout window. Unfortunately Obsidian does not await for the plugin to finish the operation in some cases (similar to when closing Obsidian abruptly).

zsviczian commented 1 year ago

@SiliasGH , can you confirm if the issue is resolved for you?