ENG-1507: Drag and drop files from wikilinks#960
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
|
@jsmorabito let me know what you think of this widget approach to allow for wikilink drag. there was techincal difficulty with regular drag action for wikilink as explained in the Loom |
|
This is a fine solution for now, but I think we'll want to revisit it again in the future when we're polishing to make this more seamless and ill take a note down as a reminder for that. One question: can we detect when a tldraw canvas file is open and only show the drag handle icons when one is? That would make this less intrusive to the user experience |
https://www.loom.com/share/a321b01e4eee4d40a5fff3554bc88cb5
https://www.loom.com/share/4466009d58cd47a89dade0a908165a7a
Summary
<a class="internal-link">elements natively draggable via markdown post-processordraggable="true"+data-dg-link-pathto wikilink spans, with adomEventHandlers({ dragstart })handler to setobsidian://drag data[[...]]) and markdown links ([text](path.md))🤖 Generated with Claude Code