converting button command to mini buffer command and the UI question

2017-06-14 Thread Eric S. Johansson
I'm trying to convert the button command I showed earlier into a command I can invoke by speech recognition (command via minibuffer). Looking through the documentation, I'm thinking may be an @command node might be one way to go. I was thinking about running it as a plug-in but I'm missing an ex

Re: More thinking about programming by speech

2017-06-12 Thread Eric S. Johansson
On Saturday, June 10, 2017 at 10:03:12 AM UTC-4, Edward K. Ream wrote: > > 1. You want to get data *from*​ > > ​NaturallySpeaking. This requires that you query its api in some way, and > then convert, say, its response to a python list. Then "choose 3" would > mean selecting the third eleme

Re: Name sections versus unnamed sections

2017-06-12 Thread Eric S. Johansson
On Monday, June 12, 2017 at 10:49:00 AM UTC-4, Edward K. Ream wrote: > > > > On Saturday, June 10, 2017 at 8:51:31 AM UTC-5, Edward K. Ream wrote: >> >> On Thu, Jun 8, 2017 at 2:20 PM, Eric S. Johansson > > wrote: >> >> The question is when should I

Re: Misrecognition of << >>

2017-06-12 Thread Eric S. Johansson
On Monday, June 12, 2017 at 11:24:47 AM UTC-4, Edward K. Ream wrote: > > > All the "heavy lifting" is now done in the FAQ. > > Very nice. That's exactly what's needed. One question however, sometimes you name sections are << name that we call it by >> and sometimes <> Why are spaces added

Re: history and modifying contents of buffer is not working

2017-06-12 Thread Eric S. Johansson
On Saturday, June 10, 2017 at 9:38:15 AM UTC-4, Edward K. Ream wrote: > > On Thu, Jun 8, 2017 at 8:04 PM, Eric S. Johansson > wrote: > >> This code is supposed to take a selected region, convert each line to a >> << named section heading >> and

history and modifying contents of buffer is not working

2017-06-08 Thread Eric S. Johansson
been reading a bunch and maybe even understanding. This code is supposed to take a selected region, convert each line to a << named section heading >> and create a child node of the same name. much of this code evolved through cutting and pasting because my hands hurt too much to type much. wh

Misrecognition of << >>

2017-06-08 Thread Eric S. Johansson
new_section_header = "<< {} >>".format(l[i,i+with_of_line]) for some reason, Leo keeps trying to identify this as a name section.. Is there any reason you would have a name section with quotes?? -- You received this message because you are subscribed to the Google Groups "leo-editor" group.

More thinking about programming by speech

2017-06-08 Thread Eric S. Johansson
Here's what I see when I say the words "select named" NaturallySpeaking looks through the window and highlights everything that matches. Then when I want to edit one of

Name sections versus unnamed sections

2017-06-08 Thread Eric S. Johansson
The question is when should I use named section versus unnamed sections. I notice in most of the Leo examples that code is kept in unnamed sections. When I write code, I use the unnamed section as where I define a method or class but then use named sections for children. Part of the reason I do

baby steps and why must it be a str and not type

2017-05-30 Thread Eric S. Johansson
Okay started writing my first speech programming command for Leo. It's very simple. Given a line of text in a node, converted to a section heading and create a new section of that name. My intent is to look at the text on the line where the cursor is. Take the line, everything from the first non

Re: Climbing the learning curve and other things I'm puzzled about

2017-05-25 Thread Eric S. Johansson
On Thursday, May 25, 2017 at 6:21:30 AM UTC-4, Edward K. Ream wrote: > > On Wed, May 24, 2017 at 2:53 PM, Eric S. Johansson > wrote: > > > There are two types of structure. One is the structure of code in > hierarchy and organization of entities, another is the hierarch

Re: Climbing the learning curve and other things I'm puzzled about

2017-05-24 Thread Eric S. Johansson
M UTC-4, Edward K. Ream wrote: > > On Wed, May 24, 2017 at 9:25 AM, Eric S. Johansson > wrote: > > why are doc strings preferred to@doc/@code pairing >> ​? >> > > ​ > ​Because ​docstrings are preferred to comments in python. > > >> Back when I us

Re: Climbing the learning curve and other things I'm puzzled about

2017-05-24 Thread Eric S. Johansson
On Wednesday, May 24, 2017 at 2:13:17 PM UTC-4, Terry Brown wrote: > > My impression is that literate programming in the sense of mixing docs. > and code has really fallen out of favor for things like software, but > is very popular for analysis exercises, as in R-markdown with knitr > and als

Climbing the learning curve and other things I'm puzzled about

2017-05-24 Thread Eric S. Johansson
Let me open with I hope my writings won't offend. These are my experiences and frustrations. I do really like working with Leo because it helps me organize things better but I am frustrated working with Leo because it hurts my hands and I really want to make it work with speech recognition but

Re: Triggered data loss in Leo

2017-05-16 Thread Eric S. Johansson
ections all the time. Is there some documentation somewhere describing how to move a Leo file and what it generates? I know I'm not using the right names for things but I'm still haven't fully internalized the Leo nomenclature. On Tuesday, May 16, 2017 at 11:27:56 AM UTC-4,

Triggered data loss in Leo

2017-05-16 Thread Eric S. Johansson
I just went to look in one of my Leo files and I just found that I've lost all of my content under the@file nodes. The only hint I have is: restoreDescendantAttributes: can not find VNode (expanded): gnx = alsoeric.20170209115147.1, tref: alsoeric.20170209115147.1 I don't know if this is relate

LSP for leo??

2017-05-09 Thread Eric S. Johansson
http://langserver.org/ >From the official Language Server Protocol specification : The Language Server protocol is used between a tool (the client) and a language smartness provider (the server) to integrate features like auto complete, go

Re: HTML 5 Leo Viewer

2017-04-24 Thread Eric S. Johansson
On Monday, March 6, 2017 at 7:50:45 PM UTC-5, Edward K. Ream wrote: > > Hehe. As much as possible of Leo's existing python code must remain. I'll > reject any proposal to rewrite, say, leoAtFile.py or leoNodes.py in js. Leo > is, after all, about Python first. > you do know about brython (pyt

Re: Linux Leo on windows

2017-04-21 Thread Eric S. Johansson
On Friday, April 21, 2017 at 12:04:32 PM UTC-4, john lunzer wrote: > > Sorry there is such a gap in understanding. You're absolutely right, I > have no clue what the day to day of a disabled person using a computer > looks like. I think you've helped me understand a little bit, but this > "spe

Re: Linux Leo on windows

2017-04-21 Thread Eric S. Johansson
On Friday, April 21, 2017 at 11:04:30 AM UTC-4, john lunzer wrote: > > Out of curiosity, and you can tell me to buzz off (I won't be offended, > because I know I will have offended you), what is your disability and to > what extent are you able to individually use your hands, feet, and eyes? >

Re: Linux Leo on windows

2017-04-21 Thread Eric S. Johansson
On Friday, April 21, 2017 at 10:55:29 AM UTC-4, john lunzer wrote: > > don't forget you simply need to do run the command: "conda install pyqt" > I eventually figured that out. ;-) Now I'm trying to figure out how to enable pyflakes. I have it installed and I thought I saw it was possible to r

Re: Linux Leo on windows

2017-04-21 Thread Eric S. Johansson
On Friday, April 21, 2017 at 10:45:26 AM UTC-4, john lunzer wrote: > > Unless your download was compromised or not downloaded from the official > miniconda site I'm highly doubtful that the Continuum folks would have let > any exploits into their software. Make sure you're hitting the official

Re: Linux Leo on windows

2017-04-21 Thread Eric S. Johansson
On Thursday, April 20, 2017 at 4:17:24 PM UTC-4, john lunzer wrote: > > An easy way to get going on Windows is by installing anaconda. It will > install everything you need to run Leo from the anaconda command prompt. If > you're worried about how bloaty anaconda is you can install miniconda an

Re: Linux Leo on windows

2017-04-21 Thread Eric S. Johansson
On Thursday, April 20, 2017 at 6:20:15 PM UTC-4, Edward K. Ream wrote: > > I don't understand what benefit there could be to running it non-natively. >> > > ​Neither do I. Leo runs extremely well on Windows. > This experiment was motivated by a couple things. First, I have broken remnants of

Linux Leo on windows

2017-04-20 Thread Eric S. Johansson
Okay, the title was click bait. :-) Running Leo on Windows has been frustratingly inefficient. For some reason, I keep breaking things, fixing things, and then breaking them again. I just got fed up. So this is what I am currently trying: Installed bash on Windows 10 Creators update[1]. --> Ins

Re: Where have you been? Stuck at the command line.

2017-04-19 Thread Eric S. Johansson
On Tuesday, April 18, 2017 at 7:50:30 AM UTC-4, john lunzer wrote: > > A lot of my recent work has been on Linux workstations/servers on these > offline networks. These require two levels of SSH to pass through. SSH to > secured computer on corporate network, then SSH to offline workstations. I

Re: Thinking out loud for toggle name addition

2017-03-28 Thread Eric S. Johansson
On Monday, March 27, 2017 at 3:50:39 AM UTC-4, Edward K. Ream wrote: > > On Sun, Mar 26, 2017 at 11:00 AM, Eric S. Johansson > wrote: > > Here is how I would speak it: >> >> def write (self, root, >> kind = '@unknown', >> no sent

Re: Thinking out loud for toggle name addition

2017-03-26 Thread Eric S. Johansson
On Sunday, March 26, 2017 at 5:26:43 AM UTC-4, Edward K. Ream wrote: > > On Sat, Mar 25, 2017 at 9:33 PM, Eric S. Johansson > wrote: > >> Like Ed's engineering notebook posts, it's a public declaration of >> thoughts with an invitation a comment if I'm go

Thinking out loud for toggle name addition

2017-03-25 Thread Eric S. Johansson
Like Ed's engineering notebook posts, it's a public declaration of thoughts with an invitation a comment if I'm going to far off the rails Brief summary: toggle name is a tool I built about four years ago to assist in programming with speech recognition. Having discovered Leo, I want to move it

Re: arrhg, nuance is an idiot!

2017-03-25 Thread Eric S. Johansson
On Thursday, March 23, 2017 at 12:15:15 PM UTC-4, Edward K. Ream wrote: > > ​There is a real executable file on SourceForge > : > > > https://sourceforge.net/projects/leo/files/Leo/5.5-final/Leo-5-5_Win.zip/download > > Unzip this file t

Re: arrhg, nuance is an idiot!

2017-03-23 Thread Eric S. Johansson
On Thursday, March 23, 2017 at 10:47:46 AM UTC-4, Terry Brown wrote: > > It might, but it also might be hard to get that route to work, and > there might be easier alternatives. > > If NaturallySpeaking could be smarter about working out what you're > doing, maybe by looking at the window titl

arrhg, nuance is an idiot!

2017-03-23 Thread Eric S. Johansson
What does this have to do with Leo? For most of you, nothing. For me, a lot. Summary: got hand disability, use speech recognition. Problem: NaturallySpeaking associates grammar elements with the executable running. When I run Leo from a git copy, NaturallySpeaking thinks the executable is Python

Re: In praise of @outline-data tree-abbreviations

2017-03-15 Thread Eric S. Johansson
On Wednesday, March 15, 2017 at 11:32:47 AM UTC-4, Edward K. Ream wrote: > > > On Tue, Mar 14, 2017 at 10:07 PM, Largo84 > > wrote: > > Now if only the node headlines can be created from placeholder variables, >> it would be perfect. I believe there's a ticket on git for that very thing. >> > >

Re: using @first and not getting expected results

2017-02-08 Thread Eric S. Johansson
On Wednesday, February 8, 2017 at 5:50:24 AM UTC-5, Edward K. Ream wrote: > > ​No no no no. The @first lines must be first. > > I don't know how I can be any clearer. > > I apologize for frustrating you.. My misunderstanding was a combination of not reading the documentation clearly and going b

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: 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 python

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: *

weaving in colorized html, group review, and working remote systems

2017-02-03 Thread Eric S. Johansson
Three questions: Again, based on my earlier literate programming experience, I'm wondering how I can print out/present my code as a document? Is that still a thing or should I look at communicating with other reviewers a different way? What's the best way for other developers to review code? Wh

Re: Auto completion and speech recognition

2017-02-02 Thread Eric S. Johansson
On Thursday, February 2, 2017 at 12:27:25 PM UTC-5, Edward K. Ream wrote: > > On Thu, Feb 2, 2017 at 9:29 AM, Eric S. Johansson > wrote: > > This is another one of those "The UI world looks different when you don't >> use your hands" moments. >> > &

Auto completion and speech recognition

2017-02-02 Thread Eric S. Johansson
This is another one of those "The UI world looks different when you don't use your hands" moments. The part of understanding this is to take a look at a tool I wrote called "togglename". Many moons ago I created a togglename demo video. It's not very good quality and really need some editing bu

Problems with using NaturallySpeaking

2017-02-02 Thread Eric S. Johansson
I have a problem my hands, and I use speech recognition. NaturallySpeaking doesn't deal well with QT widgets. Not your problem, but I'm trying to find some workarounds. Nuance uses something called "dictation box" which takes a region that is selected via a clipboard copy and puts it in a little

Re: Leo now colorizes all @ and @doc parts as reStructuredText

2017-02-02 Thread Eric S. Johansson
On Thursday, February 2, 2017 at 6:08:53 AM UTC-5, Edward K. Ream wrote: > > This is a super improvement. How did we ever live without it? > > um, you're welcome? :-) -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this gr

starting with leo writing literate python

2017-02-02 Thread Eric S. Johansson
back way too many years ago I started literate programming with cweb. I'm returning to LP using leo but either I'm missing a feature or the approach has changed. back in cweb days I wrote each section with a narrative and then a code section. I've started importing an existing bit of code and