Re: Code Academy: find by predicate or attribute

2016-02-26 Thread Richard Andersen
I had a minor cut/paste syntax error... hasOpenTask(p) ... instead of ... isOpenTask(p) ... but resolved it, and it is working now.It creates the list. In my case, I put tasks under a parent node, which is usually either myself or another person.Showing the parents, but only the

Google's quest to build better teams

2016-02-26 Thread Edward K. Ream
I highly recommend this article: What Google Learned From Its Quest to Build the Perfect Team . See if you can guess what the key points are. I won't let the cat out of the bag,

Re: More new directions for Leo

2016-02-26 Thread Edward K. Ream
On Fri, Feb 26, 2016 at 11:31 AM, Edward K. Ream wrote: ​> ​ 1. OMG: Jake's python_terminal plugin paves the way for *system* terminal windows in Leo. ​In fact, the following already works in the python_terminal pane: import os os.system('ls') ​The output goes to

More new directions for Leo

2016-02-26 Thread Edward K. Ream
Very quick. I've got to go soon. 1. OMG: Jake's python_terminal plugin paves the way for *system* terminal windows in Leo. Imagine dozens of terminals open, organized, as always, by outline structure. Great for web development. 2. The concept of *watcher pane* (inspired by the coffee -w

Re: Code Academy: find by predicate or attribute

2016-02-26 Thread Edward K. Ream
On Fri, Feb 26, 2016 at 9:49 AM, Richard Andersen wrote: > Thank you very much, Edward. > > I have the code working now.It is finding all my nodes, so I'll see if > I can figure out what further changes will limit the result set to just > those with open and todo tags. >

Re: Code Academy: find by predicate or attribute

2016-02-26 Thread Edward K. Ream
On Fri, Feb 26, 2016 at 9:23 AM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: Sorry to bring up the "inadmissible" ;-) solutions again, but todo.py > includes icons, of course, and a "go to next todo node" which seems to > cover similar ground to the finding nodes which have

Re: Code Academy: find by predicate or attribute

2016-02-26 Thread Richard Andersen
Thank you very much, Edward. I have the code working now.It is finding all my nodes, so I'll see if I can figure out what further changes will limit the result set to just those with open and todo tags. -Richard On Friday, February 26, 2016 at 6:47:29 AM UTC-8, Edward K. Ream wrote: > >

Rev 5542bdfd adds syntax coloring for coffeescript

2016-02-26 Thread Edward K. Ream
Got the jEdit colorer description file from here . Ran it through the jEdit2py script in scripts.leo. That's all. Please report any problems. EKR -- You received this message because you are subscribed to the Google

Re: Code Academy: find by predicate or attribute

2016-02-26 Thread 'Terry Brown' via leo-editor
> > From: Edward K. Ream >To: leo-editor >Sent: Friday, February 26, 2016 8:47 AM >Subject: Re: Code Academy: find by predicate or attribute > >On Friday, February 26, 2016 at 6:42:34 AM UTC-6, Edward K. Ream

Re: Code Academy: find by predicate or attribute

2016-02-26 Thread Edward K. Ream
On Friday, February 26, 2016 at 6:42:34 AM UTC-6, Edward K. Ream wrote: > On Thu, Feb 25, 2016 at 6:42 PM, Richard Andersen wrote: >> ​I'd like...to use the Clone Find All Flattened command to find all my Nodes which are "open tasks"...Ideally, these would be shown in

Re: Announcing cffm and cfam: Leo's new clone-marked commands

2016-02-26 Thread Edward K. Ream
On Thursday, February 25, 2016 at 5:56:48 AM UTC-6, Edward K. Ream wrote: Leo's clone-find and clone-find-marked commands allow me to quickly gather > desired nodes without duplicates, *regardless *of how many clones there > are in an outline. These commands, along with cff and cfa, are the

Re: Code Academy: find by predicate or attribute

2016-02-26 Thread Edward K. Ream
On Fri, Feb 26, 2016 at 6:42 AM, Edward K. Ream wrote: ​Oops. hasOpenTask misuses the else clause after a for loop. There is no break statement, so it should be this: def hasOpenTask(p): > '''Return True if p is a top-level node containing any open task.''' > if

Re: Code Academy: find by predicate or attribute

2016-02-26 Thread Edward K. Ream
On Thu, Feb 25, 2016 at 6:42 PM, Richard Andersen wrote: ​> ​ What I'd like to do next is to use the Clone Find All Flattened command to find all my Nodes which are "open tasks" ​... ​Use c.cloneFindByPredicate. Like this (tested code): tc = c.theTagController def

Re: Code Academy: find by predicate or attribute

2016-02-26 Thread Edward K. Ream
On Thu, Feb 25, 2016 at 6:12 AM, Edward K. Ream wrote: > Writing the cffm and cfam commands was snap using c.cloneFindByPredicate, > a powerful new addition to Leo. > ​Recent revs add the following new position methods: - p.is_at_all(): True if p is an @ node containing

Re: Code Academy: find by predicate or attribute

2016-02-26 Thread Edward K. Ream
On Thu, Feb 25, 2016 at 6:12 AM, Edward K. Ream wrote: > Writing the cffm and cfam commands was snap using c.cloneFindByPredicate, > a powerful new addition to Leo. > ​c.cloneFindByPredicate now supports an optional failMsg keyword arg. This is the warning given if no nodes