Re: Simple Scripting Question

2015-07-31 Thread Edward K. Ream
On Friday, July 31, 2015 at 9:04:36 AM UTC-5, Tim Fuller wrote: I am trying to get into the scripting but I'm having trouble doing a simple operation. Could someone please help me out or point me to the documentation that would lead to the answer?

Re: Simple Scripting Question

2015-07-31 Thread Edward K. Ream
On Fri, Jul 31, 2015 at 8:58 AM, Tim Fuller tfulle...@gmail.com wrote: Hello All, I've recently discovered Leo and really loving it. I am trying to get into the scripting but I'm having trouble doing a simple operation. Could someone please help me out or point me to the documentation that

Re: Simple Scripting Question

2015-07-31 Thread Jacob Peck
Try this: p = c.p.clone() dest = g.findNodeAnywhere(c,'ActionItems') p.moveToLastChildOf(dest) c.redraw() --- moveToLastChildOf is expecting a position, not a name. :) Hope this helps, --Jake On 7/31/2015 12:01 PM, Tim Fuller wrote: Thank you very much for the quick reply. I'm feeling

Re: Simple Scripting Question

2015-07-31 Thread Tim Fuller
Thank you very much for the quick reply. I'm feeling quite dumb right now as I'm still unable to get this to work. I have the following script: p = c.p.clone() p.moveToLastChildOf(ActionItems) c.redraw() But it only pastes the clone directly underneath the current. I get an error in the

navigation question

2015-07-31 Thread Phil
Is it possible to suppress automatic collapsing of subtrees while I'm navigating an outline? I often cycle through several nodes in several places, and when they automatically collapse, I need to re-navigate, which slows me down and disrupts my thinking. -- You received this message because

Re: Simple Scripting Question

2015-07-31 Thread 'Terry Brown' via leo-editor
On Fri, 31 Jul 2015 09:01:15 -0700 (PDT) Tim Fuller tfulle...@gmail.com wrote: p.moveToLastChildOf(ActionItems) p.moveToLastChildOf(g.findNodeAnywhere(c, 'ActionItems')) is probably what you want. 'ActionItems' is a str(ing) literal, whereas ActionItems is an undefined variable. Cheers

Re: navigation question

2015-07-31 Thread 'Terry Brown' via leo-editor
On Fri, 31 Jul 2015 09:09:25 -0700 (PDT) Phil phil.s@gmail.com wrote: Is it possible to suppress automatic collapsing of subtrees while I'm navigating an outline? I often cycle through several nodes in several places, and when they automatically collapse, I need to re-navigate, which

Simple Scripting Question

2015-07-31 Thread Tim Fuller
Hello All, I've recently discovered Leo and really loving it. I am trying to get into the scripting but I'm having trouble doing a simple operation. Could someone please help me out or point me to the documentation that would lead to the answer? I'm wanting to write a simple script that

Re: navigation question

2015-07-31 Thread john lunzer
This is good to know! This has been plaguing me for ages! On Friday, July 31, 2015 at 12:44:35 PM UTC-4, Terry Brown wrote: On Fri, 31 Jul 2015 09:09:25 -0700 (PDT) Phil phil@gmail.com javascript: wrote: Is it possible to suppress automatic collapsing of subtrees while I'm

Re: Simple Scripting Question

2015-07-31 Thread 'Terry Brown' via leo-editor
On Fri, 31 Jul 2015 10:53:29 -0700 (PDT) Tim Fuller tfulle...@gmail.com wrote: Thanks everybody, I got it working. Starting to wrap my head around how all this works. I appreciate all the help. Good. Although working out how to code these things yourself is far more valuable than using

Re: navigation question

2015-07-31 Thread john lunzer
I think that collapse_nodes_after_move should be False by default. That is not expected behavior (performing an additional action that I didn't ask for) and if it is desired by the user then the user should have to enable it themselves. On Friday, July 31, 2015 at 1:38:49 PM UTC-4, john lunzer

Re: navigation question

2015-07-31 Thread 'Terry Brown' via leo-editor
On Fri, 31 Jul 2015 10:42:22 -0700 (PDT) john lunzer lun...@gmail.com wrote: I think that collapse_nodes_after_move should be False by default. That is not expected behavior (performing an additional action that I didn't ask for) and if it is desired by the user then the user should have to

Re: Simple Scripting Question

2015-07-31 Thread Tim Fuller
Thanks everybody, I got it working. Starting to wrap my head around how all this works. I appreciate all the help. On Friday, July 31, 2015 at 10:04:36 AM UTC-4, Tim Fuller wrote: Hello All, I've recently discovered Leo and really loving it. I am trying to get into the scripting but I'm

Re: Leo's future

2015-07-31 Thread john lunzer
I would like to reiterate, because I don't want to come off as too critical, that I love what Leo can do! And with the refactoring plugin I'm writing I'm finding it more and more powerful every day. Leo is ready to get its name out there, but the community would be best served if our marketing

Re: navigation question

2015-07-31 Thread Edward K. Ream
On Fri, Jul 31, 2015 at 11:09 AM, Phil phil.s@gmail.com wrote: Is it possible to suppress automatic collapsing of subtrees while I'm navigating an outline? I often cycle through several nodes in several places, and when they automatically collapse, I need to re-navigate, which slows me

Re: navigation question

2015-07-31 Thread 'Terry Brown' via leo-editor
On Fri, 31 Jul 2015 16:04:04 -0500 Edward K. Ream edream...@gmail.com wrote: On Fri, Jul 31, 2015 at 11:09 AM, Phil phil.s@gmail.com wrote: Is it possible to suppress automatic collapsing of subtrees while I'm navigating an outline? I often cycle through several nodes in several

Re: Simple Scripting Question

2015-07-31 Thread Tim Fuller
Thanks again. Super impressed with the community here. -- 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 leo-editor+unsubscr...@googlegroups.com. To post to this