Re: output body and headlines (newbie)

2016-01-31 Thread Richard Andersen
Thank you, Terry. I am trying the code with the Jan 29 build.Still seeing some errors... exception executing script AttributeError: 'Commands' object has no attribute 'leo_screen' line 69: for i in c.getSelectedPositions(): * line 70: export_text(i) line

Re: output body and headlines (newbie)

2016-01-31 Thread 'Terry Brown' via leo-editor
On Sun, 31 Jan 2016 12:46:32 -0800 (PST) Richard Andersen wrote: > Thank you, Terry. > > I am trying the code with the Jan 29 build.Still seeing some > errors... Sorry, my bad, you need to enable the leoscreen plugin. But that's perhaps a bit klunky. The way the

Re: output body and headlines (newbie)

2016-01-31 Thread Richard Andersen
Thank you, Terry. I am trying the latest version now. -Richard On Sunday, January 31, 2016 at 5:15:27 PM UTC-8, Terry Brown wrote: > > On Sun, 31 Jan 2016 12:46:32 -0800 (PST) > Richard Andersen wrote: > > > Thank you, Terry. > > > > I am trying the code with the

Re: output body and headlines (newbie)

2016-01-30 Thread 'Terry Brown' via leo-editor
On Sat, 30 Jan 2016 10:01:59 -0800 (PST) Richard Andersen wrote: > Hi Terry (and others), > > I see the script is from a while back, so perhaps something has > changed in the core which is causing an error for me. > > When I run it, I get this error... > > exception

Re: output body and headlines (newbie)

2016-01-30 Thread Richard Andersen
Hi Terry (and others), I see the script is from a while back, so perhaps something has changed in the core which is causing an error for me. When I run it, I get this error... exception executing script AttributeError: 'str' object has no attribute 'in_qt_dialog'

Re: output body and headlines (newbie)

2011-10-06 Thread Edward K. Ream
On Wed, Oct 5, 2011 at 6:35 PM, Todd Mars tamn...@gmail.com wrote: When it does 'print(\n..' where does that go to? It goes to sys.stdout, which is typically your console. You won't see that unless you run Leo from the console. See the FAQ for instructions for running Leo from a console. You

Re: output body and headlines (newbie)

2011-10-06 Thread Todd Mars
I would like to output @file trees with the headline as the top line of the body text that is written. (an option to do that) Or: I would like to be able to indent @rst fn output, each headline section is indented (using indented @others doesn't do it) This is just to use Leo as a documentation

Re: output body and headlines (newbie)

2011-10-06 Thread Terry Brown
On Thu, 6 Oct 2011 06:16:17 -0500 Edward K. Ream edream...@gmail.com wrote: You can execute any of Python's file code from Leo:: f = open(filename,'w') f.write('hello world') etc. Happy scripting :-) Todd - not sure if you're into Python or not, I think there's often an implicit

Re: output body and headlines (newbie)

2011-10-06 Thread Terry Brown
On Thu, 6 Oct 2011 06:51:08 -0700 (PDT) Todd Mars tamn...@gmail.com wrote: I would like to output @file trees with the headline as the top line of the body text that is written. (an option to do that) Or: I would like to be able to indent @rst fn output, each headline section is indented

Re: output body and headlines (newbie)

2011-10-06 Thread Todd Mars
Very beautiful thanks, Terry. At some point I'll learn enough to get what I want, not being Python-able yet. Now using Leo to organize my thoughts, and needing output. (for showing them) Another thing I probably want/need is to write my @file node (@auto .txt right now) according to the current

Re: output body and headlines (newbie)

2011-10-06 Thread Edward K. Ream
On Thu, Oct 6, 2011 at 9:44 AM, Todd Mars tamn...@gmail.com wrote: Very beautiful thanks, Terry.  At some point I'll learn enough to get what I want, not being Python-able yet. Leo is a great environment for learning Python, because you can execute snippets of code in nodes without having to

Re: output body and headlines (newbie)

2011-10-06 Thread Todd Mars
Ouch, if I have a clone of a node, in expansion of @auto test.txt the clone is not output only the original? todd. -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from

Re: output body and headlines (newbie)

2011-10-06 Thread Terry Brown
On Thu, 6 Oct 2011 07:44:29 -0700 (PDT) Todd Mars tamn...@gmail.com wrote: Another thing I probably want/need is to write my @file node (@auto .txt right now) according to the current state as viewed on the screen. Got a bit carried away here, but the new version below asks what to do re

Re: output body and headlines (newbie)

2011-10-06 Thread Terry Brown
On Thu, 6 Oct 2011 12:13:48 -0500 Terry Brown terry_n_br...@yahoo.com wrote: # filename = g.app.gui.runSaveFileDialog('Save to file') filename = '/home/tbrown/Desktop/del.txt' whoops, of course that should be just filename = g.app.gui.runSaveFileDialog('Save to file') Cheers

output body and headlines (newbie)

2011-10-05 Thread Todd Mars
Can I export text representation with both headlines and bodies in a simple outline structure? (like a text dump)Perhaps there is a way to do this in rst but output defaults to all left justified. thanks! -- You received this message because you are subscribed to the Google Groups leo-editor

Re: output body and headlines (newbie)

2011-10-05 Thread Terry Brown
On Wed, 5 Oct 2011 13:49:18 -0700 (PDT) Todd Mars tamn...@gmail.com wrote: Can I export text representation with both headlines and bodies in a simple outline structure? (like a text dump)Perhaps there is a way to do this in rst but output defaults to all left justified. thanks! If you do

Re: output body and headlines (newbie)

2011-10-05 Thread Todd Mars
When it does 'print(\n..' where does that go to? What I really want is to write files, in which the first line of every 'body text' section contains it's headline. thanks! todd. -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this