On Mon, 30 Sep 2013 16:13:03 -0400 Jacob Peck <[email protected]> wrote:
> On 9/30/2013 4:10 PM, Chris George wrote: > > <!DOCTYPE html> > Looks like you saved the github prittified version of the file. > > Save this instead: > https://raw.github.com/leo-editor/snippets/master/ctrl_b_i_u.py Yes, that's the flavor you want. But then I don't think the code can go in myLeoSettings.leo. In myLeoSettings.leo you want to create this hierarchy of nodes: @settings @keys @shortcuts and in the body of @shortcuts you want markup_inline_bold ! body = Ctrl-B markup_inline_italic ! body = Ctrl-I markup_inline_underline ! body = Ctrl-U As a one time thing restart Leo so it reads the new bindings. Then, in the outline in which you're doing your writing, you want to paste the code from https://raw.github.com/leo-editor/snippets/master/ctrl_b_i_u.py in its own node, and execute it with Alt-X execute-script Then the binding should be working. Of course having to have the node in the outline in which you're doing your writing, and having to do the Alt-X execute-script part each time, is fiddly. The execute-script part can be avoided with a @script node, but to get the code node out of your outline, the code would need to be bundled in a plug-in. Which I can do easily enough, if it seems useful. Cheers -Terry -- 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.
