On Fri, Aug 5, 2011 at 4:45 AM, Ville M. Vainio <[email protected]> wrote:
> Here's an idle idea.
>
> Background: I'm using a requirement management system that is operated
> by outline like Leo. All the nodes have a "class" like 'story',
> 'experience', 'bug' etc. which is signified by a different icon.
>
> Leo nodes have a headline, body and "the rest" (uA)'s.
>
> It could be interesring to 'bless' a third kind of attribute, "class"
> that every node would have (instead of having it as just one uA among
> others).

like:
p = c.currentPosition()
print p.h
 "my headline"

print p.b
 "my node\nbody"

print p.cls
 my.nodetype

where p.cls would be your class, and hold a set of characteristics?

And Leo would look up my.node somehow to provide an
icon bitmap? and plugins could check p.cls and treat the
node accordingly? this could provide more than a bitmap, right?

I've been wishing for enhanced templating capability, could
this contribute towards that? where the class defined a
"skeleton",  a "render_with" method ... in addition to "display_icon"

Would it be an element in the xml?

Thanks,
Kent

>
> Class would always be visible in the ui, as an icon for the node or in
> status bar.
>
> Leo itself would not deal with "classes" apart from UI level. All the
> value-add would be in plugins (just like uAs).
>
> Leo does not "need" this mechanism, you can accomplish the same by
> uA's, or magical headline prefixes ("@myclass Some node text"). What
> is interesting whether it would be more elegant for
> users/scripters/whatever).
>
> --
> 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.
>
>

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

Reply via email to