Re: mark/unmark-first-parents

2018-02-10 Thread Edward K. Ream
On Sat, Feb 10, 2018 at 4:23 AM, Edward K. Ream wrote: This is on the list of things before Leo 5.7b2. > ​I've just created #714 for this, with a milestone of 5.7. This will ensure it remains on my radar for 5.7b2, coming in a day or three.

Re: mark/unmark-first-parents

2018-02-10 Thread Edward K. Ream
On Sun, Feb 4, 2018 at 4:46 PM, tscv11 wrote: > After consulting Edward and Terry, the finished (I think) > 'unmark-first-parents' command now works as intended. > ​Excellent. Thanks for this work. This is on the list of things before Leo 5.7b2. Edward -- You received this message because y

Re: mark/unmark-first-parents

2018-02-04 Thread tscv11
After consulting Edward and Terry, the finished (I think) 'unmark-first-parents' command now works as intended. @language python def unmark_first_parents(): """unmark the first parent of each node, moving up the tree to the top level. print the list of unmarked parents."""

Re: mark/unmark-first-parents

2018-02-04 Thread tscv11
I have to confess that I don't understand why the following doesn't work. If you see the problem I would love to to know what it is! @language python def unmark_first_parents(): """unmark the first parent of each node, moving up the tree to the top level. print the list of unmark

Re: mark/unmark-first-parents

2018-02-04 Thread tscv11
And this fixes yet another problem: 'mark-first-parents' seems solid now. 'unmark' still needs work but I see no reason I can't fix it as well. I'll post it here if I succeed. @language python def mark_first_parents(): """mark the first parent of each node, moving up the tree t

Re: mark/unmark-first-parents

2018-02-04 Thread tscv11
The 'mark-first-parents' command was unmarking nodes it shouldn't have because 'mark' is a toggle command. This fixes that. @language python def mark_first_parents(): """mark the first parent of each node, moving up the tree to the top level. print the list of marked parents."""

Re: mark/unmark-first-parents

2018-02-04 Thread Edward K. Ream
On Sun, Feb 4, 2018 at 12:01 AM, tscv11 wrote: > As an afterthought, for those who are wary of .leo files from 'unknown' > sources, here's the code: > ​Thanks for this. The scripts could be copied to leo/scripts/scripts.leo. In this case, I may create new commands from them. Edward -- You re

Re: mark/unmark-first-parents

2018-02-03 Thread tscv11
I think 'unmark-first-parents' needs more thought because you could unmark nodes that lead to other nodes you've marked. Sorry about that. tscv11 -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving em

Re: mark/unmark-first-parents

2018-02-03 Thread tscv11
As an afterthought, for those who are wary of .leo files from 'unknown' sources, here's the code: @language python def mark_first_parents(): """mark the first parent of each node, moving up the tree to the top level. print the list of marked parents.""" parent_lst = []

mark/unmark-first-parents

2018-02-03 Thread tscv11
Here are two basic commands I created for researching .leo files. I use them to mark/unmark the 'breadcrumbs' to nodes when marking/unmarking those nodes themselves (first parents, counting the way Leo does). I like knowing which categories and subcategories contain nodes I've marked (the current n