Re: Article: "Why Don't We Have a General Purpose Tree Editor?"

2017-02-07 Thread Jacob MacDonald
Hehe, I immediately thought of Leo when I saw this article as well. However, as an incompetent user of the software I can't offer any comment on it. Looking forward to the use cases more senior community members can imagine. On Tue, Feb 7, 2017 at 6:40 PM Sr U wrote: > I am

Article: "Why Don't We Have a General Purpose Tree Editor?"

2017-02-07 Thread Sr U
I am not certain how pertinent this is to the Leo community, and perhaps it was already linked and discussed here? In any case it recently surged on reddit and -- of course -- it caught my eye. link with comments from reddit:

Re: using @first and not getting expected results

2017-02-07 Thread Eric S. Johansson
attached is a test case showing an @first that does not give expected results. what I have in my @file section is: @language python @tabwidth -4 << docstring >> @first #! /usr/bin/python3 @first # a first line @others if __name__ == '__main__': main() # a comment when you load up the

Re: demo.py: confusion, purpose, beauty, competitiveness

2017-02-07 Thread Edward K. Ream
On Tuesday, February 7, 2017 at 5:34:20 AM UTC-6, Edward K. Ream wrote: > > Rev 37ca40b36 contains yesterday's work on demo.py. The plugin works, but > when I awoke I saw that there are four or five ways to make the plugin > easier to use. > The ENB post eliminated most confusion. This post

Re: using @first and not getting expected results

2017-02-07 Thread Edward K. Ream
On Tue, Feb 7, 2017 at 9:56 AM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > is the #@@first supposed to be blank? > ​Yes. ​ > Thanks for the workaround but yes it is counterintuitive. It seems to me > that having @first is the out of sequence way of putting in first

Re: using @first and not getting expected results

2017-02-07 Thread 'Terry Brown' via leo-editor
> is the #@@first supposed to be blank? Thanks for the workaround but yes it is > counterintuitive. It seems to me that having @first is the out of sequence > way of putting in first lines. Should I file a bug report? I think it's working as intended - not sure what the docs. say but my

Re: Ed, please demonstrate how to use Leo with the following short program

2017-02-07 Thread Offray Vladimir Luna Cárdenas
On 07/02/17 05:36, Edward K. Ream wrote: ​​ On Mon, Feb 6, 2017 at 5:12 PM, Sr U > wrote: In 1992 I, with considerable sadness, gave up on programming because I couldn't keep myself oriented sufficiently in larger programs. ​...​

Re: using @first and not getting expected results

2017-02-07 Thread Eric S. Johansson
On Tuesday, February 7, 2017 at 9:26:00 AM UTC-5, Jacob Peck wrote: > > I'm not sure if it's documented anywhere, but when I need to use @first, I > always need to put it as the very first line in the body node of the > @file/clean/yadayada, so: > > @first #! /usr/bin/python3 > @language

Re: using @first and not getting expected results

2017-02-07 Thread Jacob Peck
I'm not sure if it's documented anywhere, but when I need to use @first, I always need to put it as the very first line in the body node of the @file/clean/yadayada, so: @first #! /usr/bin/python3 @language python @and-so-on Hope this helps, -->Jake On 2/7/2017 9:13 AM, Eric S. Johansson

using @first and not getting expected results

2017-02-07 Thread Eric S. Johansson
in my @file section I have the following: @language python @tabwidth -4 @first #! /usr/bin/python3 @first # a first line << docstring >> @others if __name__ == '__main__': main() # a comment what I find saved in the output file is: #@+leo-ver=5-thin #@+node:alsoeric.20170202001826.1: *

ENB: improving the demo.py plugin

2017-02-07 Thread Edward K. Ream
This is an Engineering Notebook post. Feel free to ignore it. Part of me wants to rush right in on demo.py. However, this post will be pre-writing for the official docs , so I may as well talk out loud. *Classes and

demo.py: confusion, purpose, beauty, competitiveness

2017-02-07 Thread Edward K. Ream
Rev 37ca40b36 contains yesterday's work on demo.py. The plugin works, but when I awoke I saw that there are four or five ways to make the plugin easier to use. So now I am in state of creative confusion. What is the simplest thing that could possibly work? *Handling confusion*: You must

It's the hard that makes it great

2017-02-07 Thread Edward K. Ream
In another thread I said, to paraphrase ​Tom Hanks : Programming is hard. It's *supposed *to be hard. If it wasn't hard, everybody would do it. It's the hard that makes it great. The military has an acronym: wetsu: we eat this shit up. It's pretty

Re: Ed, please demonstrate how to use Leo with the following short program

2017-02-07 Thread Edward K. Ream
​​ On Mon, Feb 6, 2017 at 5:12 PM, Sr U wrote: In 1992 I, with considerable sadness, gave up on programming because I > couldn't keep myself oriented sufficiently in larger programs. > ​...​ > I had a master's degree in computer science and I *loved* creating > programs...the