Associate .leo filetype batch file:
ftype LeoFile=C:Python25pythonw.exe “C:Python25Libsite-
packagesleolaunchLeo.py” “%1” assoc .leo=LeoFile
Hi:
- Im having trouble also linking Leo files to Leo. I have tried this:
- Im having trouble also linking Leo files to Leo. I have tried this:
Associate .leo filetype batch file:
ftype LeoFile=C:Python25pythonw.exe “C:Python25Libsite-
packagesleolaunchLeo.py” “%1” assoc .leo=LeoFileWhich I found here, but leolaunchleo.py doesnt even exist anymore (the post is old).
- I guess others have had this idea but It would be great to include a small file within the Quickstart guide which would associate files automatically. (Or maybe asking for imput, which can be done through a Leo node and this way the user learns about its functionality).
Leo Log Window
Leo 4.11 devel, build 5753, 2013-05-08 02:56:43 -0500
Python 2.7.4, qt version 4.8.4
Windows 6, 1, 7601, 2, Service Pack 1
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
Leo Log Window
Leo 4.11 devel, build 5753, 2013-05-08 02:56:43 -0500
Python 2.7.2, qt version 4.8.4
Windows 6, 1, 7600, 2,
Error: leo.plugins.at_folder.init did not return a bool
loadOnePlugin: can not load enabled plugin: leo.plugins.at_folder
at_view plugin not loaded: win32Clipboard not present.
Error: leo.plugins.at_view.init did not return a bool
loadOnePlugin: can not load enabled plugin: leo.plugins.at_view
loadOnePlugin: can not load enabled plugin: leo.plugins.codewisecompleter
error importing plugin: leo.plugins.detect_urls
Traceback (most recent call last):
File "D:\Dropbox\LEO EDITOR\leo\core\leoPlugins.py", line 556, in loadOnePlugin
__import__(moduleName)
ImportError: No module named detect_urls
loadOnePlugin: can not load enabled plugin: leo.plugins.detect_urls
error importing plugin: leo.plugins.interact
Traceback (most recent call last):
File "D:\Dropbox\LEO EDITOR\leo\core\leoPlugins.py", line 556, in loadOnePlugin
__import__(moduleName)
File "D:\Dropbox\LEO EDITOR\leo\plugins\interact.py", line 45, in <module>
import pexpect
ImportError: No module named pexpect
loadOnePlugin: can not load enabled plugin: leo.plugins.interact
error importing plugin: leo.plugins.leo_pdf
Traceback (most recent call last):
File "D:\Dropbox\LEO EDITOR\leo\core\leoPlugins.py", line 556, in loadOnePlugin
__import__(moduleName)
File "D:\Dropbox\LEO EDITOR\leo\plugins\leo_pdf.py", line 267, in <module>
import docutils
ImportError: No module named docutils
loadOnePlugin: can not load enabled plugin: leo.plugins.leo_pdf
error importing plugin: leo.plugins.leofeeds
Traceback (most recent call last):
File "D:\Dropbox\LEO EDITOR\leo\core\leoPlugins.py", line 556, in loadOnePlugin
__import__(moduleName)
File "D:\Dropbox\LEO EDITOR\leo\plugins\leofeeds.py", line 36, in <module>
import feedparser
ImportError: No module named feedparser
loadOnePlugin: can not load enabled plugin: leo.plugins.leofeeds
exception importing plugin leo.plugins.pretty_print
Traceback (most recent call last):
File "D:\Dropbox\LEO EDITOR\leo\core\leoPlugins.py", line 556, in loadOnePlugin
__import__(moduleName)
File "D:\Dropbox\LEO EDITOR\leo\plugins\pretty_print.py", line 28, in <module>
oldPrettyPrinter = leoCommands.Commands.prettyPrinter
AttributeError: type object 'Commands' has no attribute 'prettyPrinter'
loadOnePlugin: can not load enabled plugin: leo.plugins.pretty_print
reading: D:\Dropbox\LEO EDITOR\leo\config\myleoSettings.leo
hook failed: create-optional-menus, <function create_UserMenu at 0x0276CEB0>, leo.plugins.mnplugins
Traceback (most recent call last):
File "D:\Dropbox\LEO EDITOR\leo\core\leoPlugins.py", line 336, in callTagHandler
result = handler(tag,keywords)
File "D:\Dropbox\LEO EDITOR\leo\plugins\mnplugins.py", line 136, in create_UserMenu
c.frame.menu.createMenuEntries(c.pluginMenu,table,dynamicMenu=True)
AttributeError: 'Commands' object has no attribute 'pluginMenu'
hook failed: after-create-leo-frame, <function onCreate at 0x0276C0B0>, leo.plugins.leoscreen
Traceback (most recent call last):
File "D:\Dropbox\LEO EDITOR\leo\core\leoPlugins.py", line 336, in callTagHandler
result = handler(tag,keywords)
File "D:\Dropbox\LEO EDITOR\leo\plugins\leoscreen.py", line 176, in onCreate
leoscreen_Controller(c)
File "D:\Dropbox\LEO EDITOR\leo\plugins\leoscreen.py", line 214, in __init__
self._get_output() # prime output diffing system
File "D:\Dropbox\LEO EDITOR\leo\plugins\leoscreen.py", line 284, in _get_output
self.screen_cmd(['hardcopy -h "%s"'%self.tmpfile])
File "D:\Dropbox\LEO EDITOR\leo\plugins\leoscreen.py", line 242, in screen_cmd
stderr=subprocess.PIPE) # screen's behavior
File "C:\Python27\lib\subprocess.py", line 672, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 882, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
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.
The leoserver plugin lets you do this. Here's my wrapper for loading
> Yes. I'm not sure how this could be changed so as to use an already-open
> Leo.
a .leo file from the command line into the existing Leo instance:
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.