DahaWong / obsidian-footlinks

Obsidian plugin that extracts urls from the main text to footer, offering a better reading/editing experience.
https://forum.obsidian.md/t/plugin-footlinks/9494
59 stars 4 forks source link

Convert footlinks back into normal markdown link #2

Open Joilence opened 3 years ago

Joilence commented 3 years ago

I regard Footlinks as a temporary solution to avoid clutter in the text before Obsidian supports WYSIWYG editor, so it is possible that I need to convert it back. Would you consider to support recovery?

BTW, I noticed the card in Project, it might be what I mean.

DahaWong commented 3 years ago

I just tested footlinks format in Typora which already has a WYSIWYG mode, and it cannot be rendered properly. So yes, I'll add recovery function.

But notice that I'm not sure if the plugin-api supports global search-and-replace text, so the new function could be just recover the docs one by one (like the way footlinks extracts links now).

If you really care, I suggest just not using this plugin to refactor notes…

rztaylor commented 3 years ago

This is something that I would be interested in being able to do on a note-by-note basis.

My use case being as follows:

I have a lengthy note that I want to refactor by moving one or more section of text into a new note. At the moment, this means tracking down the footlinks within that section and manually recovering them before refactoring, otherwise the links are lost. It would be much easier if I could...

  1. Convert all footlinks in the current note back into "normal" links.
  2. Cut and paste the section I want to refactor into a new note.
  3. Convert the "normal" links back into footlinks in both the old note, and the new note.

I prefer to use footnote style links all the time because it makes the raw text much easier to read (the main goal of markdown) and because footnote style links are supported within the core markdown format.

welpdx commented 3 years ago

Interested in this enhancement as well.