I've pushed the tree cursor thing prototype
leo/plugins/examples/leocursordemo.leo
leo/plugins/leocursor.py
although it's not really a plugin, you import the class to use it, as per the
examples in leo/plugins/examples/leocursordemo.leo.
I guess I'll try building a website with it (it's not in anyway limited to
website use), see how it evolves.
The __getattr__ approach is pleasantly terse, cursor.Data.Events._H to get the
headstring of a node called events descending from a node called Data
descending from the cursor's current location. But it limits you to path
elements with names which are valid function names. So there will probably be
a cursor._C('Data/Events/@H') form as well.
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.