zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4k stars 215 forks source link

Question: Embedded drawing attachments in note are not considered as attachments in Graph view #1922

Open Ali-Flt opened 1 month ago

Ali-Flt commented 1 month ago

Your environment SYSTEM INFO: Obsidian version: v1.6.7 Installer version: v1.6.7 Operating system: 1 ZEN SMP PREEMPT_DYNAMIC Sat, 27 Jul 2024 16:49:32 +0000 6.10.2-zen1-1-zen Login status: not logged in Insider build toggle: off Live preview: on Base theme: adapt to system Community theme: none Snippets enabled: 0 Restricted mode: off Plugins installed: 7 Plugins enabled: 7 1: Git v2.25.0 2: Citations v0.4.5 3: Kanban v2.0.51 4: Advanced Tables v0.21.0 5: Excalidraw v2.3.0 6: Nuke Orphans v1.2.5 7: Image Context Menus v1.9.0 Describe the bug Embedded drawing attachments in note are not considered as attachments in Graph view

To Reproduce Steps to reproduce the behavior:

  1. add a new note
  2. create an excalidraw drawing and embed it in the note (the drawing is saved in the attachments folder)
  3. see that the created drawing is shown in the graph view even if attachments are disabled in the filters tab of the graph view

Expected behavior The excalidraw attachments should not be shown in the graph view if they are considered as attachments.

Screenshots GCN Acceleration 2024-05-29 15.41.03.excalidraw should not be shown in graph view image

zsviczian commented 1 month ago

Excalidraw files are markdown files, technically not attachments. In my opinion Excalidraw drawings are visual notes not attachments. They are correctly shown in Graph view as designed.

If you want to hide drawings you can save a filter for graph view. By default Excalidraw drawings carry the #Excalidraw tag. You can simply filter for that, or you can create your own Excalidraw template and define whatever property or tag you need and filter or color graph view based on that.