Thanks for the tip; I think I got this wrong. On reboot, everything is working splendidly -- i.e. an update of the Sublime temp files, when saved, goes immediately to Leo and Leo gets a "needs saving" star. Perfect.
I'm not sure why I had the impression it wasn't working. I think I was just getting tangled up by having two editors open at the same time; one being Sublime and the other Leo. Here is the tricky scenario: 1) I edit a Leo node in Sublime; then save it without closing the temp file window in Sublime. I come back to Leo and save: all changes from Sublime are saved. Good so far. 2) Now I edit the same node in Leo, which is still open in Sublime as a temp file. Sublime does not know that things have changed, since Leo does not update the temp file, even though Leo should know that the temp file is still around. I then edit the temp file in Sublime. Now if I save from Sublime, I will lose my Leo edits. *This could be remedied if Leo kept track of the state of the temp file and kept it up to date*. Sublime does that; it will update the window with the newest disk version. Gedit asks: "file has changed on the disk; do you want to update?". Right now the only solution in Leo is: work only in only one editor at a time, please! Pretty reasonable, but definitely a trap for other undisciplined users such as myself. A feature request? Or a bug? Hmmm... a play safe request... Leo is great as a software hub, but that means some added safeguards. Best, Bill If I come back to Leo b update Leo during the temp editing, On Tuesday, 10 December 2013 00:56:53 UTC-8, Ville M. Vainio wrote: > > Right click -> refresh from disk > > > On Tue, Dec 10, 2013 at 1:34 AM, wgw <[email protected] <javascript:>>wrote: > >> Leo allows editing of a tree in an external editor; I use Sublime, mainly >> because I can see the whole tree as continuous text, edit it and then have >> it go magically back into tree form under Leo. >> >> The problem is that, though I close the temp file in Sublime, the tree is >> not updated in Leo until I close Sublime itself. I sometimes don't want to >> close Sublime at all. >> >> Is there any way to trigger that update manually? >> >> Some editors will flag external changes to the file being edited and when >> you come back to the editor screen it will ask if the file should be >> updated. That would do the trick for my Leo problem, but a manual update >> would work as well. >> >> Is this functionality already available? >> >> Thanks! >> >> Bill >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/leo-editor. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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.
