dendron icon indicating copy to clipboard operation
dendron copied to clipboard

Wikilink alias interop

Open pjeby opened this issue 4 years ago • 5 comments

Is your feature request related to a problem? Please describe. Dendron wikilink aliases don't work with other Markdown processing tools that support wikilinks, because most tools use Wikipedia's format, which places the alias after the target, rather than before it.

Describe the solution you'd like Support the common format, either in addition to or in place of Dendron's current form.

Describe alternatives you've considered Not using aliases, or not using wikilinks. (Not using other Markdown tools isn't really an option.)

pjeby avatar Jan 24 '21 19:01 pjeby

thanks for the issue. its something we want to support with a configuration option. currently bandwidth constraint due to some other feature requests so realistically, probably a summer 2021 feature

kevinslin avatar Jan 25 '21 20:01 kevinslin

Hey, the summer is already over and I actually came here to report this exact problem, but found that it's already known. Is this issue still being considered? It seems like a simple fix. This breaks the compatibility with other markdown tools, so it would be nice to have it fixed. Probably a command to swap all links with aliases for all the existing notes will also be needed – although it should be easy fix from user perspective:
WARNING: commit your changes before trying this, just in case

  1. Press ctfl+shift+f
  2. Search for \[\[(.*)\|(.*)\]\]
  3. Replace all with [[$2|$1]]

It looks like this: image

I'm sad to say this, but this kind of stuff makes me wanna go and learn Obsidian. And this sucks, because I'm used to VS Code and I really want to like Dendron.

harvastum avatar Sep 17 '21 01:09 harvastum

I came here to request the same feature, also for the reasons stated above. Thank you.

cesar-programs avatar Jun 29 '22 10:06 cesar-programs

Just wanted to point out @harvastum's written search regex should be \[\[(.*)\|(.*)\]\] (escaped pipe), not \[\[(.*)|(.*)\]\] (it's correct in the screenshot). I copied the text and it mangled things quite badly (fortunately just a test vault). edit: Fixed!

And since I'm here, I'll chime in to support this issue. It's certainly a roadblock to Dendron adoption for me.

fingolfin19 avatar Sep 21 '22 03:09 fingolfin19

Just wanted to point out @harvastum's written search regex should be \[\[(.*)\|(.*)\]\] (escaped pipe), not \[\[(.*)|(.*)\]\] (it's correct in the screenshot). I copied the text and it mangled things quite badly (fortunately just a test vault).

I corrected that in the comment above, thank you and apologies for the mess I have caused!

harvastum avatar Sep 21 '22 14:09 harvastum

Upvote to this issue. I think it could really help lots of people feel more comfortable to integrate Dendron into their workflows. Hoping to see a new option/config in an upcoming release.

ghost avatar Oct 03 '22 20:10 ghost