This is a great example of the coolness of Leo, but it's also an example of why 
this coolness is difficult to convey.

Attached small piece of text can be placed in a `...@button bzr` node to create 
a button which does a `bzr stat` for the current node.

But - change an `if 0:` to an `if 1:` for a special boot strap mode, and it 
adds child node `...@rclick qlog`, `...@rclick qcommit` etc. items for all the 
qbzr (bzr Qt interface) commands.  You should change the 1 back to a zero after 
running the script once in this node.

This is perhaps a little clunky and could be neater wrapped in a plug-in, but 
it's so simple in it's current form and yet it basically add bzr integration to 
leo, leaning heavily on qbzr of course.

The aspect which could really be improved is detecting the right path, you have 
to select a @<file> node (not one of its descendants), but the point is really 
how much functionality you get for how little code.

Cheers -Terry

-- 
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.

Attachment: qbzr.but
Description: Binary data

Reply via email to