On 11/25/2013 5:41 AM, Reinhard Engel wrote:
I was just wondering: Are scripts (for scripting Leo) macros?
Is there conceptually any difference between scripts in Leo and macros
in other languages (not macros in C, but macros i.e. in Microsoft
Word, Access or Visual Basic)?
I have two comments on this:
1) There's a Leo plugin (macros.py) which uses the term 'macro' for
templated node headings:
http://leo-editor.readthedocs.org/en/latest/leo.plugins.html#module-leo.plugins.macros
(Though, with Edward's recent tree-abbreviation work, I don't think it's
needed!)
2) I find a fundamental difference between Leo scripting and macros in
general being that Leo scripts are fully privileged python programs --
meaning they can generally do more, with less fuss, than most macro
languages. Though, that said, their most common use case *is*
interacting with the Leo API, so often they perform the same actions
that macros would. If anything, Leo scripts cover a superset of
functionality that traditional macro languages would cover.
Just my $0.02.
-->Jake
--
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.