Hi Edward, Thanks, I'll try c.refreshFromDisk() outside the loop, but now I have a better workaround:
https://github.com/benzolius/leo-scripts/blob/master/correct_empty_lines.py Corrects blank lines according to PEP8 (at least between main blocks: classes, functions and between methods), even if it had wrong blank lines before importing into Leo. Regards Zoltan On Thursday, March 3, 2016 at 1:30:43 AM UTC+2, Edward K. Ream wrote: > > > > On Mon, Dec 7, 2015 at 1:21 PM, Zoltan Benedek <[email protected] > <javascript:>> wrote: > >> I see there are two 'Refresh from disk' possibilities, one from the File >> menu and one by right click menu. >> >> I'm interested in the right click 'Refresh from disk'. >> >> How could I call it by a script? >> > > ​Eventually it just calls c.refreshFromDisk(). This gives a warning if not > c.p.isAnyAtFileNode() > > Edward > -- 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 https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
