I’m surprised the line-number references don’t auto-adjust when inserting/splitting/joining lines. That’s not very practical.
back
2 comments
I totally had this thought too when making it. The logic is super simple as-is, so I was scared if I went down the rabbit whole of trying to auto increment/decrement line numbers I might muddy things up. I'll see if add that functionality cleanly at some point (or if you'd like to feel free to take out a PR!) Thanks for the feedback!
Id's would be more than good enough, and super easy to implement. Something like this
1. hello
2. [foo] This line is Foo
3. This line is Bar and connects to Foo
4. (foo)Oh, I like this implementation a lot! I'll paste it into github issue so I don't forget
alternatively you could link to nodes by referencing their label? You might just also want an option to not render that label (ie have it be for the writer's benefit only).
added the concept of node ids and linking directly to them last night! now you can do something like
[custom id] hello world
child 1
child 2
(custom id)Nice - that's a great feature. I'm working on a graph based project and have to semi regularly visualise different kinds of directed graph and your project could really come in handy!
like graphviz does
Let the user create their own labels?
I disagree. The simplicity here is a cool and rare feature.
This tool is amazing, and its coolness comes from the fact it's really simple. If you add "auto-adjusting" features that rewrite the code for you while writing, you're on the road to lose the simplicity and KISS aspect.
Please don't add new features, it's like gold as it is, @tone_row. The beauty and magic resides in the minimalism.