On Thu, 09 May 2013 14:11:13 -0400
Jacob Peck <[email protected]> wrote:
> Hello all,
>
> Trying to define a command in myLeoSettings.leo in a way that it will be
> available to all open .leo files. So far, I'm failing miserably.
>
> I've tried the following:
>
> myLeoSettings.leo -> @settings -> @command my-command::
> @language python
> g.es("it worked!")
>
> myLeoSettings.leo -> @command my-command::
> @language python
> g.es("it worked!")
>
> myLeoSettings.leo -> @command my-command::
> @language python
>
> @g.command('my-command')
> def my_command():
> g.es("it worked!")
>
> So far, it's only available in myLeoSettings, no matter which of the
> above I try.
>
> Any clues?
Something to try
make sure
@bool scripting-at-script-nodes = True
and do
myLeoSettings.leo -> @settings -> @script my-command::
@g.command('my-command')
def my_command():
g.es("it worked!")
> Thanks,
> -->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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.