jensmtg / influx

An alternative backlinks plugin, which displays relevant and formatted excerpts from notes with linked mentions, based on the position of mentions in the notes' hierarchical structure (bullet level indentation).
MIT License
310 stars 14 forks source link

[Feature request] Handling of #tags and internal links when dragging-and-dropping/copying excerpts #37

Open pcuellar opened 1 year ago

pcuellar commented 1 year ago

Maybe this is the same as #17 though looking at how markdown copies in reading view, maybe internal links and tags can be improved. I'd like to suggest treating #tags and [[links]] in Influx excerpts as text and proper internal links respectively. This happens both when dragging-n-dropping as well as CMD+C/CMD+V excerpts into a note. There is also the case of ![[block#^embeds]].

jensmtg commented 1 year ago

Influx excerpts are html rendered markdown, so in terms of copying it will behave the same as if you copy from a note in reading view. Implementing the requested feature requires the excerpts to be implemented as codemirror components. This, in turns, creates a challenge in terms of truthful correspondance between the branched excerpts and the source note.

I can see how this feature could be useful, and coremirror excerpts could solve some other problems as well, but it does not justify the the amount of work it would need to implement.