On Tue, Dec 3, 2013 at 4:09 PM, jkn <[email protected]> wrote:
> However, If I attempt to bind the command to a key:
>
> @settings
> @commands
> @command myTestCommand @key=Ctrl-E
>
It worked for me using the latest code from bazaar on Linux.
Copy the below text to clipboard and then "Outline-->Paste Node" into a
blank outline. Save and close and reopen the outline. The string 'hello'
appears in the log pane each time I hit ctrl-e. You could look at the
output of the print-bindings command to see if leo thinks it has bound the
key to your command.
One line in my print-bindings output showed this:
D Ctrl+E @command-mytestcommand
Here is the text to copy to the clipboard:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Leo (http://leoeditor.com/leo_toc.html) -->
<?xml-stylesheet ekr_test?>
<leo_file xmlns:leo="http://www.leo-editor.org/2011/leo" >
<leo_header file_format="2"/>
<vnodes>
<v t="btheado.20131202191321.2721" a="E"><vh>@settings</vh>
<v t="btheado.20131202191321.2728" a="E"><vh>@commands</vh>
<v t="btheado.20131202191321.2729"><vh>@command myTestCommand
@key=Ctrl-E</vh></v>
</v>
</v>
</vnodes>
<tnodes>
<t tx="btheado.20131202191321.2721"></t>
<t tx="btheado.20131202191321.2728"></t>
<t tx="btheado.20131202191321.2729">g.es('hello')</t>
</tnodes>
</leo_file>
--
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.