On Sat, Jul 20, 2019 at 3:12 AM vitalije <[email protected]> wrote:
> You can use clones. [snip] where `my-shared-settings` node is cloned from > the @file subtree. > [snip] > `@button n-save @key=Ctrl-s`. Then whenever I open this outline and > whenever I hit Ctrl-s to save the outline, this script is executed. Of > course I put in this script `c.save()` call and on every save my files are > regenerated. > Clever, and useful. Thanks for sharing this tip. [snip] > Instead of watching for file changes, my script bound to Ctrl-s regenerate > source files in memory and without saving them execute suitable tool only > on changed sources and produced outputs bundle in the final file. This > makes the whole process much faster. > Another great tip. Once installed you start [the coffeescript] server by executing `coffee > tools/build-server.coffee and it will start listening on port 8011. The > script bound to Ctrl-s will search outline for nodes with the headlines > like: @vendor, @pug, @coffee, @bulma and for each found node, it checks if > the content of this node and its subtree has changed since last time and if > it is, this content is sent to build server which transforms the source and > returns result that script writes to output file. > Ditto. There is one more thing I use for sharing outlines. There are three > commands `set-reference-file`, `update-ref-file` and `read-ref-file`. > Many thanks for all this. 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/CAMF8tS10EgCHhszQrgEWLm9XToxANwQe9zho91CKhULPUeV1Xg%40mail.gmail.com.
