dundalek / atom-markdown-mindmap

Visualize markdown files as mindmaps in Atom editor
Other
117 stars 31 forks source link

Enhancement > Notes link/x-ref to md files #56

Open ljsinclair opened 3 years ago

ljsinclair commented 3 years ago

Thanks for this package, it's the first Mind Map I've actually got (because I can write the structure in MD rather than futzing around in a UI).

I have a very specific use case: I'm using the package to plot a novel. And one thing I'd find super-useful is to be able to open/cross-reference other .md files from nodes.

So for example, I've got a plot line:

I've attempted this using [link name](permalink) but this renders as plain text, not a link.

Thanks again

L.

dundalek commented 3 years ago

Hi, thanks for your appreciation, glad you like it.

As a workaround you could try to use list notation - [b](./b.md). For example:

a.md

# a content

- [b](./b.md)

## [b](./b.md)

b.md

# b content

## b1
## b2
## b3

Renders as (although the layout looks a bit buggy in this case :innocent:): image

And can be expanded as:

image

Clicking bX nodes will take you to b.md.

You are right, ## [b](./b.md) does not seem parse the link. I think the reasoning was that I was not sure how to show things, if the headline contained a link and also if there was a nested structure under the headline. For example what would we show in this case?

## [b](./b.md)
### c1
### c2

With lists it is less likely case that there will be more nested content.

Can the workaround with lists be used in your case?