A few weeks ago I believe that open-with worked as described above. It
opened the file of the highlighted @file/@clean file. Separately, an
@file/@clean that is modified outside of Leo does trigger Leo to ask
whether the file should be updated or not.
What has changed with some revision is open-with, where I now get this
error.
unexpected exception in c.openWith
Traceback (most recent call last):
File "c:\users\szatz\leo-editor\leo\core\leoApp.py", line 136, in
open_with
fn = efc.open_with_helper(c,d,p)
File "c:\users\szatz\leo-editor\leo\core\leoApp.py", line 252, in
open_with_helper
return efc.create_temp_file(c,d,p)
File "c:\users\szatz\leo-editor\leo\core\leoApp.py", line 260, in
create_temp_file
body = d.get('body') if d.has_key('body') else c.p.b
AttributeError: 'dict' object has no attribute 'has_key'
The traceback suggests it will open a temp file and then that fails. If
open-with just returns to opening the @file/@clean in the highlighted node
in the selected editor, I believe all will be fine (except retaining the
cursor position). I do not know why we would have a special vim-open-file
command. To me, it should just be a configurable open-with that can open
in vim, notepad, whatever.
Steve
--
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/d/optout.