Re: Importing files and folders with Leo

2015-07-20 Thread 'Terry Brown' via leo-editor
On Mon, 20 Jul 2015 15:32:01 -0500 "'Terry Brown' via leo-editor" wrote: > But, and very much OT now, it doesn't really matter when it started > (it's obviously a perennial question), I'm just wondering why I > sometimes only see responses to emails, not the original email. Well that was a very

Re: Importing files and folders with Leo

2015-07-20 Thread 'Terry Brown' via leo-editor
On Mon, 20 Jul 2015 13:13:02 -0500 "Edward K. Ream" wrote: > On Mon, Jul 20, 2015 at 9:47 AM, 'Terry Brown' via leo-editor < > leo-editor@googlegroups.com> wrote: > > > The active_path plugin lets you browse directories and import files, > > once activated you can just call a node: > > @path /

Re: Importing files and folders with Leo

2015-07-20 Thread Edward K. Ream
On Mon, Jul 20, 2015 at 9:47 AM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > The active_path plugin lets you browse directories and import files, > once activated you can just call a node: > @path /path/to/somewhere > and double click on that to expand / import. There a

Re: Saving to @settings nodes programmatically

2015-07-20 Thread john lunzer
This sounds like a way forward! On Monday, July 20, 2015 at 10:52:47 AM UTC-4, Terry Brown wrote: > > On Mon, 20 Jul 2015 05:39:31 -0700 (PDT) > john lunzer > wrote: > > > Perhaps you can guide me through a design decision then. I'm still > > hard at work on my quick-replace plugin. It's coming

Re: Use Leo to edit large existing sphinx doc?

2015-07-20 Thread Paul Graves-DesLauriers
Thanks for your reply. (Sorry for the delay -- I was on vacation) The sources for the Pyramid documentation are rST, so I'll give @auto-rst a shot. I'll let you know how it goes... Paul On Saturday, July 11, 2015 at 6:16:51 AM UTC-7, Edward K. Ream wrote: > > > > On Thu, Jul 9, 2015 at 9:08 P

Re: Saving to @settings nodes programmatically

2015-07-20 Thread 'Terry Brown' via leo-editor
On Mon, 20 Jul 2015 05:39:31 -0700 (PDT) john lunzer wrote: > Perhaps you can guide me through a design decision then. I'm still > hard at work on my quick-replace plugin. It's coming along swimmingly > and I use it everyday, getting more useful as I continue to add > features. > > I've added i

Re: Importing files and folders with Leo

2015-07-20 Thread 'Terry Brown' via leo-editor
The active_path plugin lets you browse directories and import files, once activated you can just call a node: @path /path/to/somewhere and double click on that to expand / import. There are also context menu commands to recursively import whole folders. `@path .` works if you want to start rela

Re: setCurrentVnode AttributeError

2015-07-20 Thread john lunzer
Okay, got it: @language python import numpy as np def output(body, headline = 'output'): c.insertChild() c.p.h = headline c.redraw() c.p.b = body child = c.p.moveToLastChildOf(c.p.parent()) c.setCurrentPosition(child) c.redraw() a = np.array([1,3]) output(repr(a)) On Monday, July 20

Re: setCurrentVnode AttributeError

2015-07-20 Thread john lunzer
The rub is that c.setCurrentPosition doesn't do what I want. After I move c.p I think c.p as I had save it becomes invalid? I'm trying to create this node and then set it as the last child and then move the highlight/focus to that last node. Perhaps I'm going about it in a roundabout way? On Mo

Re: Saving to @settings nodes programmatically

2015-07-20 Thread john lunzer
Perhaps you can guide me through a design decision then. I'm still hard at work on my quick-replace plugin. It's coming along swimmingly and I use it everyday, getting more useful as I continue to add features. I've added in a feature to search from a list of saved search/replace patterns to q

Re: setCurrentVnode AttributeError

2015-07-20 Thread Edward K. Ream
On Mon, Jul 20, 2015 at 7:11 AM, john lunzer wrote: ​> ​ Here is my code, which I execute with Ctrl-B: ​[snip]​ > Thoughts? ​c.setCurrentVnode is an synonym for c.setCurrentPosition. It's there for compatibility with (presumably ancient) scripts. I'm not sure how it could be removed without po

Re: Saving to @settings nodes programmatically

2015-07-20 Thread Edward K. Ream
On Fri, Jul 17, 2015 at 11:21 AM, john lunzer wrote: > I see there is a getData method for reading from @settings @data nodes. I > see a suspicious lack of a setData method in the same module. I'm guessing > this is by design but is there any way to save to @settings through > scripting? > ​Heh.

setCurrentVnode AttributeError

2015-07-20 Thread john lunzer
Here is my code, which I execute with Ctrl-B: @language python import numpy as np def output(body, headline = 'output'): c.insertChild() childV = c.p.v c.p.h = headline c.redraw() c.p.b = body c.p.moveToLastChildOf(c.p.parent()) c.setCurrentVnode(childV) a = np.array([1,3]) output(re

Re: Improvements to Leo documentation

2015-07-20 Thread Edward K. Ream
On Sun, Jul 19, 2015 at 8:39 AM, dufriz wrote: > I was wondering if, after the recent improvement to Leo (kudos to the > developers) there is going to be an improved version of the documentation. > ​I spent considerable time improving the documentation for the last official release. Leo's users

Re: Importing files and folders with Leo

2015-07-20 Thread Edward K. Ream
On Sat, Jul 18, 2015 at 1:10 PM, wrote: > > I'm new to this editor and try to import my python files. I can create a > @clean node (really cool feature btw) with the file name and replace the > new file with my already written python program. Unfortunately this only > creates a node with a lot of