... Or just provide iterators for files and dirs. ----- Original message ----- > On Fri, 5 Mar 2010 08:02:35 -0800 (PST) > tfer <[email protected]> wrote: > > > Rather than keep pestering you with feature requests, I was wondering > > about the possibility of adding a @data active_path_sciplet_1, ..., > > whose body would consist of a user written script that could be > > applied singly or recursively through the context menu. > > Interesting. I wonder if it would be more flexible to simply have active_path > expose some sort of API, so you could use any of Leo's scripting / button > infrastructure like this: > > def addLine(v): > v.b = 'This text has this line at the top\n'+v.b > > c.active_path.apply(addLine, p.v, target='files', recurse=True) > > where target could be 'files', 'dirs', or 'both' > > Of course if active_path really is going to bulk up in this way it really > needs > refactoring to use a class, which it doesn't for hysterical raisins. > > Cheers -Terry > > -- > You received this message because you are subscribed to the Google Groups > "leo-editor" group. To post to this group, send email to > [email protected]. To unsubscribe from this group, send email to > [email protected]. For more options, visit this group at > http://groups.google.com/group/leo-editor?hl=en. >
-- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
