4 ms·
I’m surprised the line-number references don’t auto-adjust when inserting/splitting/joining lines. That’s not very practical.
by layer8 6y ago
I’m surprised the line-number references don’t auto-adjust when inserting/splitting/joining lines. That’s not very practical.
- tonerow 6y agoI 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!
- beaconstudios 6y agoalternatively 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).
- mooneater 6y agolike graphviz does
- tonerow 6y agoadded 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)
- beaconstudios 6y agoNice - 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!
- monstersinF 6y agoLet the user create their own labels?
- seph-reed 6y agoId'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)
- tonerow 6y agoOh, I like this implementation a lot! I'll paste it into github issue so I don't forget
- sixti60 6y agoI 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.