On Mon, 27 May 2013 08:00:22 -0500 "Edward K. Ream" <[email protected]> wrote:
> On Mon, May 27, 2013 at 3:25 AM, Fidel Pérez <[email protected]> wrote: > > > After a while I realized Im not using this feature, and here is the reason: > > > > If I double click my desktop links to the leo files I use the most, they > > will open Leo alright, but they will open each in a new window, instead of > > incoroprating themselves to the leo window Im working with. > > > > Yes. I'm not sure how this could be changed so as to use an already-open > Leo. The leoserver plugin lets you do this. Here's my wrapper for loading a .leo file from the command line into the existing Leo instance: --- cut here --- #!/usr/bin/python import sys sys.path.append("/home/tbrown/Package/leo/bzr/leo.repo/trunk") from leo.external import lproto import os addr = open(os.path.expanduser('~/.leo/leoserv_sockname')).read() pc = lproto.LProtoClient(addr) pc.send(""" c = g.app.commanders()[0] g.openWithFileName(%s, c) """ % repr(os.path.join(os.getcwd(), sys.argv[1])) ) --- cut here --- So you'd need to associate .leo files with this python code... and it would also need to do something smart when Leo wasn't already running. This only works with the leoserver plugin running of course. Cheers -Terry > > I have done this process (associating leo files) again in another computer > > (to be able to report its performance on it) and It doesnt work well: > > > > Files will open Leo, stand there for a second, and then close. > > But I can open leo by running "launchleo.py". > > > > I have deleted myleosettings file and then it works, so its a conflict > > with a plugin. > > > > Tell me if you need any extra information to try and find the bug. The > > plugins im currently using are: > > > > > > plugins_menu.py > >> > >> contextmenu.py > >> leo_to_html.py > >> mod_scripting.py > >> nav_qt.py > >> quicksearch.py > >> stickynotes.py > >> todo.py > >> viewrendered.py > >> > >> > >> active_path.py > >> add_directives.py > >> at_folder.py > >> at_produce.py > >> at_view.py > >> bookmarks.py > >> codewisecompleter.py > >> colorize_headlines.py > >> datenodes.py > >> detect_urls.py > >> dragdropgoodies.py > >> FileActions.py > >> interact.py > >> leo_interface.py > >> leo_pdf.py > >> leo_to_html.py > >> leo_to_rtf.py > >> leofeeds.py > >> leomail.py > >> leoscreen.py > >> macros.py > >> mnplugins.py > >> mod_framesize.py > >> mod_http.py > >> mod_read_dir_outline.py > >> mod_scripting.py > >> mod_timestamp.py > >> nested_splitter.py > >> nodeActions.py > >> outline_export.py > >> paste_as_headlines.py > >> plugins_menu.py > >> pretty_print.py > >> projectwizard.py > >> qtGui.py > >> qt_main.py > >> qt_quicksearch.py > >> qtframecommands.py > >> quickMove.py > >> quicksearch.py > >> run_nodes.py > >> screenshots.py > >> scripts_menu.py > >> todo.py > >> viewrendered.py > > > > > > The Leo log window when I open with launchleo.py is: > > > > [snip] > > I suggest you disable the plugins that generate the error messages in the > log. > > Also, you may want to install docutils. > -- 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.
