On Tue, Jan 14, 2014 at 8:24 PM, Martin Towner <[email protected]>wrote:
> hi all - i'd like to ask some advice/pointers: I'd like to have a node in > my source code @ files, that contains an automatic version number that is > updated each time I save dirty nodes in that @file.., so something like: > [snip] I was wondering if anyone has done this, or has a good idea about the best way to do it? maybe a @script that extends the save command and walks through the node tree, and looks for dirty nodes, updates version, then calls save? or could I use or display the date information from the node strings that leo saves in the source? or is there a better way?! That "script" would be an event handler, contained in a plugin, that fired on either a "save1" event or a "command1" event. See: http://leoeditor.com/writingPlugins.html#handling-events 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
