On Mon, Sep 2, 2013 at 12:00 PM, Fidel N <[email protected]> wrote:
> > I have been searching for an hour how to set the editor to Notepad++ > instead of Windows default notepad, and I just cant find how to. Searched > for "editor" in leosettings, leopyref and in groups without sucess. > > Could anyone point me towards the place to do that? > There are two off-the-shelf ways. I have just verified that they both work on my Windows machine: 1. Use Leo's open-with commands. You set up the "Open With" menu in leoSettings.leo, the node:: #@settings-->Menus-->Open With menu This will create one or more open-with-x commands, which you can then bind to a keystroke if you like. 2. Use the context-menu plugin. On my machine, the first popup item is "edit in c:\scripts\ed.bat". ed.bat simply opens a file using my default editor, SciTe. So the question is, where did c:\scripts\ed.bat come from? According to the contextmenu.py docstring, the first item in the popup list will be "edit in $EDITOR" However, it looks like ed.bat actually comes from the LEO_EDITOR environment variable--my machine doesn't have EDITOR defined. So I would suggest setting the LEO_EDITOR variable, and then using either method. HTH. Please feel free to ask more questions. Edward P.S. You could also define a script to open nodes. As you know, @command and @button nodes create commands that you can bind to keys. EKR -- 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.
