This is great timing Thomas, thank you!
I've been away from Leo for a while, but making another attempt to get back into it.
I've had a _heck_ of time figuring out how to do what showed, in my case I wanted a 'duplicate-line' command.
It really is tremendously difficult to figure out what to do or where to start.
a couple of observations:
- what got me the furthest (but not all the way there) is/was the `scripts.leo` file (i.e. the 'Text' section).
- most of the scripts & guides seem to be around working with nodes (which seems easier) rather than body text.
- the body text seems very challenging/manual to work with, perhaps some utility functions would make this easier
- e.g. for my duplicate line command, i'll have repeat most of Thomas's code above, there isn't a simple utility function
- there are already commands such as 'extend-to-line'/extendToLine, but do I have access to these or do i have to reproduce them?
- it would be nice to group these docs & content by context, e.g. the guides with the examples
Anyway, it's good to say hello again, glad to see things are still plugging.
Cheers & Happy 2023,
Kevin