On Thu, Mar 1, 2012 at 6:13 PM, Edward K. Ream <[email protected]> wrote: > On Thu, Mar 1, 2012 at 12:53 PM, Kent Tenney <[email protected]> wrote: > >>>> Good, then it will act the same as when the current file contains >>>> the command definition. That's what I was expecting. >>> >>> No wonder you are confused. > > Rev 5054 contains a significant rewrite of mod_scripting.py. It > eliminates numerous pieces of redundant code, replacing them all by a > new method: > sc.registerTwoCommands. This method creates two commands for @button > and @command nodes: one with the @button/@command prefix, and one > without. > > Everything appears to work well, and pylint is happy. Please let me > know how this works for you.
At first blush, making mycommand and @mycommand didn't make sense, but now I see how great that is. Tab completion is becoming the way to tame Leo's complexity. If I don't even know the first letter, @command<tab> shows me the choices I have. Realizing that, I'd vote for @command-xxx definition for _all_ commands. Thanks, Kent > > Edward > > -- > 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. > -- 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.
