zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.25k stars 233 forks source link

Support [[link]] suggester when editing Text Elements #518

Closed red-co closed 1 year ago

red-co commented 2 years ago
zsviczian commented 2 years ago

This is on my longer term plans, but not a short term priority. You can use the command palette action to insert a link from your Vault. you can also drag and drop links.

Contrigra commented 2 years ago

First of all, it is my first time participating in some discussion on github, so sorry, if it's an inappropriate place.

Without this feature, it's basically impossible to link to specific lines or blocks of texts, unless you use headings for everything. As I understand, Obsidian creates links to specific lines (by adding adress) on its own and provides autos-uggestions by doing this way, if you use suggestor.

Unfortunately, command palette action to insert a link lacks such feature. image

Excalidraw, seems to render links correctly, even though you have to create them manually. By manually asigning adress to these lines, and then reference them in Excalidraw.

image

zsviczian commented 2 years ago

Yes, this would be an absolutely great feature to have. Transclusions should work both for text elements as well as when you are embedding a markdown document as an image.

I pretty much always create block references manually, even in markdown. For example I keep quotes, one quote per file, and all the quotes have the block reference ^q so this is easy to remember.

Block references can be any sequence of characters, so it is pretty easy to come up with your own naming conventions for them. If you have naming conventions, then it is not that hard to manually create the references in Excalidraw.

You have two alternatives. 1) you can create a text element, then switch to Markdown view of the Excalidraw drawing, there the link/block suggester will work. 2) you can create the link in another markdown document and copy the ready link to Excalidraw.

zsviczian commented 1 year ago

Scribble helpers solves this. See https://youtu.be/BvYkOaly-QM