zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
3.68k stars 202 forks source link

BUG: Links to local files and folders don't work as expected when imbedded in an Obsidian note #1782

Open CobaltMongoose opened 1 month ago

CobaltMongoose commented 1 month ago

Describe the bug When viewing an Excalidraw canvas imbedded in a Obsidian note the link text to local files and folders are not clickable. Clicking the link text does not open the file or folder.

To Reproduce Steps to reproduce the behavior: In Obsidian, in a new note, create a new Excalidraw canvas, go into the canvas editor. Use the native Operating System file explorer to go to a folder/directory on your system. Ctrl + Drag the folder from the File Explorer to the Excalidraw canvas. Return to the Note that the Excalidrawing is imbedded in. The link appears as text but clicking it does not open the link.

Expected behavior I should be able to click on the link to open the target folder or file in the native OS file explorer.

Screenshots image

My environment Windows 10

Obsidian Debug Info SYSTEM INFO: Obsidian version: v1.5.12 Installer version: v1.4.13 Operating system: Windows 10 Home 10.0.19045 Login status: not logged in Insider build toggle: off Live preview: on Base theme: dark Community theme: none Snippets enabled: 1 Restricted mode: off Plugins installed: 83 Plugins enabled: 65 1: Excalidraw v2.1.8 2: Advanced Tables v0.21.0 3: Calendar v1.5.10 4: Kanban v1.5.3 5: LanguageTool Integration v0.3.7 6: Banners v1.3.3 7: Editing Toolbar v2.4.16 8: Quick Latex v2.6.5 9: Latex Suite v1.9.3 10: Execute Code v1.11.1 11: Charts View v1.2.7 12: Dataview v0.5.66 13: Tag Wrangler v0.6.1 14: Mind Map v1.1.0 15: Outliner v4.8.1 16: Leaflet v6.0.5 17: Emoji Toolbar v0.4.1 18: Pandoc Plugin v0.4.1 19: Fantasy Calendar v3.0.0 20: Dice Roller v11.0.3 21: DB Folder v3.5.1 22: Fantasy Statblocks v4.4.2 23: Fantasy Content Generator v1.2.2 24: Periodic Notes v0.0.17 25: Linter v1.24.0 26: Editor Syntax Highlight v0.1.3 27: Workspaces Plus v0.3.3 28: Initiative Tracker v13.0.11 29: RPG Manager v4.1.14 30: Chat View v1.6.0 31: Dialogue v1.0.2 32: File Tree Alternative v2.5.7 33: Dictionary v2.22.0 34: Projects v1.17.3 35: Rollover Daily Todos v1.1.8 36: Reminder v1.1.15 37: Commander v0.5.1 38: Timelines v0.3.2 39: Templater v2.3.1 40: Natural Language Dates v0.6.2 41: Note Refactor v1.8.2 42: Advanced Cursors v0.5.1 43: Icons v0.3.0 44: Icon Shortcodes v0.9.7 45: Mousewheel Image zoom v1.0.22 46: Waypoint v2.1.0 47: BRAT v1.0.1 48: Advanced URI v1.40.1 49: Local Images Plus v0.15.9 50: Diagrams.net v1.0.4 51: Find orphaned files and broken links v1.10.0 52: Omnisearch v1.22.2 53: Text Extractor v0.5.1 54: Full Calendar v0.10.7 55: Map View v5.0.2 56: Audio Player v0.1.1 57: QR Code Generator v1.2.1 58: Folder Note Core v1.3.5 59: CustomJS v1.0.20 60: Tabout v1.0.0 61: Callout Manager v1.0.1 62: File Color v1.1.0 63: Iconize v2.12.0 64: Style Text v0.1.0 65: AidenLx's Folder Note v0.16.5

zsviczian commented 1 month ago

I can reproduce it, but not sure how to solve it.

image

zsviczian commented 1 month ago

Note to self: This is the solution. I need to update SVG export to include this code... display text