--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To post to this group, send email to leo-e...@googlegroups.com.
To unsubscribe from this group, send email to leo-editor+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
I wouldn't change the save logic, I'd just execute "save" for the full .leo document when- Node has changed in external editor.- The node that changed is the only dirty node in the whole leo document.I don't use xemacs/vim plugin, but rather "edit in" in right click menu (contextmenu.py plugin IIRC).
I agree that this is not an elegant proposal, in that it involves a potentially surprising (if useful) special case.I have to think this a bit more. Perhaps some kind of extra warning in the UI for this scenario would do the trick as well.
I wouldn't change the save logic, I'd just execute "save" for the full .leo document when- Node has changed in external editor.- The node that changed is the only dirty node in the whole leo document.I don't use xemacs/vim plugin, but rather "edit in" in right click menu (contextmenu.py plugin IIRC).
Ok. In that case the contextmenu plugin should handle this.
Clearly, c.openWith (or rather, one of its helpers) is able to update the node and to mark it dirty.
I'll wait awhile for your comments before going ahead with the proposed changes.
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To view this discussion on the web visit https://groups.google.com/d/msg/leo-editor/-/rS1KLCE1vEMJ.
"""My present plan is to write a helper, say c.write_vnode, that will discover the external file (if any) containing the vnode, and immediately write that external file *without* a prompt. If there is no external file, c.write_vnode could just do an ordinary save of the .leo file and all dirty external files.
"""Maybe a relatively safe solution is to do this:1) My present plan is to write a helper, say c.write_vnode, that will discover the external file (if any) containing the vnode, and immediately write that external file *without* a prompt.
But not do this:2) If there is no external file, c.write_vnode could just do an ordinary save of the .leo file and all dirty external files.
This way, if you "want to be safe", you will create an external @file for the content.For situation 2), some kind of loud warning is in order, not sure of what kind though. Red g.es?