On Monday, April 6, 2015 at 2:01:21 PM UTC-5, Terry Brown wrote: > > > If you use clones for creating task specific views of code, they're > extremely valuable. If you don't... they tend to be a nuisance.
I've been thinking about this remark ever since you first wrote it. First, I've been wondering whether bookmarks can take the place of task views. At present, I don't see how they can. Terry, maybe you can tell me how. The rest of this post is an entry in my Engineering Workbook, without any real end product. Feel free to ignore. Second, I've been wondering how to improve my clone-based workflow. *The clones in task views are a nuisance! * The same nodes show up over and over again in searches. I use clone-find-all-flattened (cfa) command all the time. It's the basis of how deal with truly complex bugs, but now I'm having "creative doubts". Putting up with any nuisance, no matter how seemingly small, quickly becomes unpleasant. Perhaps this is why experienced Leonistas like Terry avoid clones. So the main question for me is:* Is there a way to avoid duplicate hits in the find command?* Perhaps I should have asked this question 15 years ago, but recent improvements have changed my workflow: 1. Command history. How did we ever live without this? 2. @button whatever @args add preloads "whatever" into the history. 3. I use @button cfa-start-node @args add to customize the cfa command for leoPy.leo and leoPlugins.leo. This combination make it much easier to use the cfa commands. More importantly for this discussion, it suggests a new design pattern. Let's use some magical thinking. We want Ctrl-F/F3 to prefer clones in a task view to clones in @file trees. Come to think of it, we want the Alt-G to do the same thing! This is magical thinking (at present) because clones may be part of several task views. Perhaps Ctrl-F/F3 themselves can be made smarter, but this could easily turn into an heroic task. Perhaps the @button cfa nodes could provide hints to the find commands. That's enough for now. I'll see if I can convert magic to engineering :-) 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 http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
