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 On Wednesday, January 4, 2023 at 1:27:17 PM UTC-5 [email protected] wrote: > Let's add the scripting-miscellany link to Leo's Help menu. > > On Wednesday, January 4, 2023 at 11:32:09 AM UTC-5 Edward K. Ream wrote: > >> On Wednesday, January 4, 2023 at 10:18:53 AM UTC-6 Edward K. Ream wrote: >> >> > I've just added this entry >> <http://leoeditor.com/scripting-miscellany.html#keeping-clean-files-up-to-date> >> >> (online and in devel). >> >> And I've just updated this page >> <http://leoeditor.com/directives.html#clean-path> in Leo's Reference >> Guide. >> >> Edward >> > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/de98beaa-67ca-4d40-95af-7db0348c8bd8n%40googlegroups.com.
