> Just thinking out loud here, if you're busy feel free to ignore. > > If I were to start learning Python by taking on a "little project", I figure > it should help extend Leo's capabilities.
For me, this would be a very ambitious project, actually several projects. I'd learn a lot but likely never finish. :) A few unorganized thoughts: - Leo has command line options and can run in batch mode: http://webpages.charter.net/edreamleo/scripting.html#running-leo-in-batch-mode. Meaning if you (or anyone) writes a txt2tags leo plugin it can be called in response to 2x-click in file system explorer or other event. - txt2tags has a lot of output formats and it looks like they're eager for more. It might be easier to persuade (or help) txt2tags output to rst and then utilize the existing rst plugin for rendering/conversion than to write a new Leo rendering parser. (or not, I've never written a leo plugin, maybe it's just easy peasy.) Here's an easy recipe for launching any external process from a button inside Leo: http://leo.zwiki.org/CommandShellHere, "A button to open a command shell at the `@path` location of the active node". It could be easily reworked to call txt2tags and feed it the location of the current @file or contents of the current node. And finally, I still don't think I know what your end goal is. Assume t2render is built and viable, that clicking on any one of your twenty thousand snippets shows a rich text rendering of it. So now what? What's it for? Musing some more, I think I'm seeing a desire to be able to edit and view rich text (for niceness), and save in marked up plain text (for safety, guaranteed longevity). I think that's a tough nut to crack, witness the many wiki's and their creole. I was hanging out with Twiki/FosWiki when they went to great lengths to build an html editor that would save in their markup. They are successful but it was a lot of work by several people. -- -matt -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
