Big thanks Edward, to be honest I didn't consider making a new directive =)

So on one hand, its great that you opened my eyes towards directives 
(creating and using them, seems really easy). I will start with them right 
away, even if I don't use them for this particular problem, they sound 
really useful and easy to use.

What I was trying to ask hehe...  is about possibility to make nodes such 
as the following:

header: @url My_Url_Name
body: http://www.websitename.com

header: @path My_Favourite_Folder
body: path/to/that/folder

And same with @image, and rest of Leo current directives.

The reason is that I would like to be able to be on a node, and have all 
visible,  its tittle, its directive, and be able to control+click it (Use 
its directive properties), yet being able to have it inside a complex 
bigger script, without interfering with it, but accepting children which 
will interfere with the script...

Hehehe I realize I just want it all from Leo... but such thing would be 
really dynamic and adaptable to any situation!

So I would still be able to use Existing Leo directives, but inside my leo 
scripts.

But I really think after a week or so of studying the directives the way 
you pointed out, perhaphs I can integrate that solution with current Leo 
code to just work that way. The idea is, that:

If a node with @url, @image, etc, contains its first line beign a path:
Make leo ignore that first line and use it as what it is, the path being 
pointed to. So first line of the code is used for rendering, etc, and not 
displayed inside scripts. Also, if there are more lines inside the node, 
they wont be used to still define the path ( as they currently do) making 
everything stop working. Anyway I dont find the sense to that, since I cant 
imagine multi-line paths, and also I read somewher in the documentation 
that they actually work the way I am describing, but if you add a 3rd line 
to a @image node with a valid path on the first line, it will stop working 
as soon as you add that 3rd line with your custom extra text.

I realize how badly I described this, but this one is hard to explain ehhe..
thanks for the help.

-- 
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/groups/opt_out.

Reply via email to