zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.06k stars 219 forks source link

FR: back-of-note workflow for literature notes #1820

Closed tnschmid closed 3 months ago

tnschmid commented 3 months ago

Current problem:

The following example highlights the problem:

%% begin excalidraw %% // persist block start
# Excalidraw Data
## Text Elements
%%
## Drawing
...

%% //afterwards everything is removed -> problem for the workflow
%% end excalidraw %% // part removed by excalidraw;  // persist block end

%% Import Date: some timestamp %% // part removed by excalidraw

Proposed solution:

Why this would be helpful:

zsviczian commented 3 months ago

To double-check that I understand you correctly, what you are after is for Excalidraw to retain whatever text is added after the closing %% following the json section in ## Drawing?

tnschmid commented 3 months ago

Exactly.

zsviczian commented 3 months ago

implemented in 2.2.6 You will need to enable Zotero support under Compatibility Features in Plugin Settings image

tnschmid commented 3 months ago

Thank you, I will check it out once it is released!

ugolafosse commented 3 months ago

Hello @tnschmid , If the fix you mentioned has been working for you, could you quickly walk me through your workflow?

I’ve been using Zotero for my highlights and notes, but I’ve added template so that I get snippets I can copy-paste and embed inside any excalidraw. However, this still requires having the Zotero note disconnected from the actual drawing, and there’s a bit of a disconnect.

CleanShot 2024-06-15 at 10 45 07

as you can see in the video I have 2 different note for the book

You mentioned a different approach or workflow, and I m curious about it. Maybe you have a better way to integrate these elements. Could you share your process with me?

Thank you!

tnschmid commented 3 months ago

I was talking about the functionality of Excalidraw to have a hybrid note (visual + markdown; see here https://www.youtube.com/watch?v=zmgqMZi6QL8) by just converting a md note via Excalidraw: Convert markdown note to Excalidraw Drawing. Now I just create a template for the Zotero Integration plugin with the corresponding default drawing. To not override the excalidraw data block when incrementally updating the literature notes I'm using a persist block (same as %% begin notes%% in your example) . However, the problem was (and actually still is) that excalidraw removes the necessary %% end ... %% and %% Import Date ...%% at the end of the md note. My goal was/is to have one note containing both the visual version of the note and the highlights on the other side of the note. To make this work excalidraw must not remove the persist block from the Zotero Integration plugin. To be clear it is still not working that excalidraw keeps the additional part after the excalidraw data block, so I will soon file a bug report / feature request for this.

zsviczian commented 3 months ago

did you enable Zotero compatibility in settings?

image

tnschmid commented 3 months ago

Yes. image