Re: Leo as wiki replacement

2017-05-13 Thread Edward K. Ream
On Sat, May 13, 2017 at 2:03 PM, Lang Hurst  wrote:

> Oh wow. That was easy enough. This is awesome. Thank you.
>

​You're welcome.

Edward

-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Curses gui progress report

2017-05-13 Thread Edward K. Ream
On Sat, May 13, 2017 at 8:35 AM, Edward K. Ream  wrote:

I am now in what I call a "wrestling with code" phase.
>

​Good progress to report.  LeoMLTree.update has been refactored within an
inch of its life. As a result, I am much more comfortable with what is
happening, and I also can see the dogs that aren't barking.

The way forward is as follows:

1. Don't use *any* of the MultiLine base code for drawing the tree or
keeping track of the contents of the tree.  Replace all that with vnodes.
LeoMLTree will see be a subclass of MultiLine, so as to have access to
event handling, widget layout, etc.

2. There is no need for *any* persistent headline widgets! The reason is
simple: the npyscreen code doesn't use widgets to draw outlines!

3. tree.edit_widget can just return a string wrapper every time it is
called!  This will be a subclass of StringTextWrapper in leoFrame.py. No
need for any of the "association" dict used in the Qt gui code.

All this will collapse the complexity of the tree code. The curses gui may
soon be fully functional.

Edward

-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo as wiki replacement

2017-05-13 Thread Lang Hurst
Oh wow. That was easy enough. This is awesome. Thank you.

On Sat, May 13, 2017 at 11:54 AM, Edward K. Ream 
wrote:

> On Sat, May 13, 2017 at 12:55 PM, Lang Hurst  wrote:
>
>> Just want to say you guys have been great. Just need to figure out how to
>> enable vim in the editor area and I'm going to be golden.
>>
> ​
> I just did a cff in leoSettings.leo to find all occurrences o​f vim.  That
> yields, among other settings:
>
>   @bool vim-mode = False
>
> Set this to True in myLeoSettings.leo to use vim mode.
>
> The other alternative is to enable the vim.py plugin.  This allows you to
> edit individual nodes in the "real" vim.
>
> Edward
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "leo-editor" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/leo-editor/A7_LlNEGPZQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> leo-editor+unsubscr...@googlegroups.com.
> To post to this group, send email to leo-editor@googlegroups.com.
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
I have a foreboding of an America in my children's or grandchildren's time
-- when the United States is a service and information economy; when nearly
all the manufacturing industries have slipped away to other countries; when
awesome technological powers are in the hands of a very few, and no one
representing the public interest can even grasp the issues; when the people
have lost the ability to set their own agendas or knowledgeably question
those in authority; when, clutching our crystals and nervously consulting
our horoscopes, our critical faculties in decline, unable to distinguish
between what feels good and what's true, we slide, almost without noticing,
back into superstition and darkness... - Carl Sagan

-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Programming language support via the language server protocol

2017-05-13 Thread Edward K. Ream
On Sat, May 13, 2017 at 1:16 PM, Brad  wrote

> I wonder if adopting and implementing the 'language server protocol' would
> be of benefit to Leo.
>
> Details are given here:  http://langserver.org/
>

​Yes, we have discussed this recently
on
leo-editor.

Edward

-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo as wiki replacement

2017-05-13 Thread Edward K. Ream
On Sat, May 13, 2017 at 12:55 PM, Lang Hurst  wrote:

> Just want to say you guys have been great. Just need to figure out how to
> enable vim in the editor area and I'm going to be golden.
>
​
I just did a cff in leoSettings.leo to find all occurrences o​f vim.  That
yields, among other settings:

  @bool vim-mode = False

Set this to True in myLeoSettings.leo to use vim mode.

The other alternative is to enable the vim.py plugin.  This allows you to
edit individual nodes in the "real" vim.

Edward

-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo as wiki replacement

2017-05-13 Thread Chris George
I prepare the rst document according to the documentation. When it is
complete, I run the rst3 command from the menu. I then use the *.html.txt
file that it outputs with the rst2odt command from the terminal to output
the odt file. From there I open it in LibreOffice and usually save as Win
97 Doc file for compatibility with the folks who need such things.

Chris

On Sat, May 13, 2017 at 10:55 AM, Lang Hurst  wrote:

> Just want to say you guys have been great. Just need to figure out how to
> enable vim in the editor area and I'm going to be golden.
>
> Rob, docutils installed a bunch of rst2 on my system.
> The rst2odt script does a pretty good job of converting the RST document to
> odt from the command line.
>
> On Sat, May 13, 2017 at 10:46 AM, Largo84  wrote:
>
>> Chris, I'm curious about your workflow from RST to .odt w/ docutils. Last
>> time I looked at it several years ago, I couldn't get it to work. Do you
>> mind sharing details?
>>
>> Rob.
>>
>> On Friday, May 12, 2017 at 4:50:27 PM UTC-4, Chris George wrote:
>>>
>>> I use Leo strictly for writing, restructured text to .odt using
>>> docutils. I also use it as my data bank for quotes, snippets of interesting
>>> info, bookmarks, recipes, etc. It makes it easy to keep information
>>> organized and simple to find again when I need it.
>>>
>>>
>>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "leo-editor" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/leo-editor/A7_LlNEGPZQ/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> leo-editor+unsubscr...@googlegroups.com.
>> To post to this group, send email to leo-editor@googlegroups.com.
>> Visit this group at https://groups.google.com/group/leo-editor.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> I have a foreboding of an America in my children's or grandchildren's time
> -- when the United States is a service and information economy; when nearly
> all the manufacturing industries have slipped away to other countries; when
> awesome technological powers are in the hands of a very few, and no one
> representing the public interest can even grasp the issues; when the people
> have lost the ability to set their own agendas or knowledgeably question
> those in authority; when, clutching our crystals and nervously consulting
> our horoscopes, our critical faculties in decline, unable to distinguish
> between what feels good and what's true, we slide, almost without noticing,
> back into superstition and darkness... - Carl Sagan
>
> --
> 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 group, send email to leo-editor@googlegroups.com.
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Programming language support via the language server protocol

2017-05-13 Thread Brad
Hi,

I wonder if adopting and implementing the 'language server protocol' would 
be of benefit to Leo.

Details are given here:  http://langserver.org/

-Brad


-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo as wiki replacement

2017-05-13 Thread Lang Hurst
Just want to say you guys have been great. Just need to figure out how to
enable vim in the editor area and I'm going to be golden.

Rob, docutils installed a bunch of rst2 on my system.
The rst2odt script does a pretty good job of converting the RST document to
odt from the command line.

On Sat, May 13, 2017 at 10:46 AM, Largo84  wrote:

> Chris, I'm curious about your workflow from RST to .odt w/ docutils. Last
> time I looked at it several years ago, I couldn't get it to work. Do you
> mind sharing details?
>
> Rob.
>
> On Friday, May 12, 2017 at 4:50:27 PM UTC-4, Chris George wrote:
>>
>> I use Leo strictly for writing, restructured text to .odt using docutils.
>> I also use it as my data bank for quotes, snippets of interesting info,
>> bookmarks, recipes, etc. It makes it easy to keep information organized and
>> simple to find again when I need it.
>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "leo-editor" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/leo-editor/A7_LlNEGPZQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> leo-editor+unsubscr...@googlegroups.com.
> To post to this group, send email to leo-editor@googlegroups.com.
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
I have a foreboding of an America in my children's or grandchildren's time
-- when the United States is a service and information economy; when nearly
all the manufacturing industries have slipped away to other countries; when
awesome technological powers are in the hands of a very few, and no one
representing the public interest can even grasp the issues; when the people
have lost the ability to set their own agendas or knowledgeably question
those in authority; when, clutching our crystals and nervously consulting
our horoscopes, our critical faculties in decline, unable to distinguish
between what feels good and what's true, we slide, almost without noticing,
back into superstition and darkness... - Carl Sagan

-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo as wiki replacement

2017-05-13 Thread Largo84
Chris, I'm curious about your workflow from RST to .odt w/ docutils. Last 
time I looked at it several years ago, I couldn't get it to work. Do you 
mind sharing details?

Rob.

On Friday, May 12, 2017 at 4:50:27 PM UTC-4, Chris George wrote:
>
> I use Leo strictly for writing, restructured text to .odt using docutils. 
> I also use it as my data bank for quotes, snippets of interesting info, 
> bookmarks, recipes, etc. It makes it easy to keep information organized and 
> simple to find again when I need it.
>
>
>

-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Curses gui progress report

2017-05-13 Thread Edward K. Ream
On Wednesday, May 10, 2017 at 3:25:32 PM UTC-5, Edward K. Ream wrote:

Please note, everyone, that there is a *lot* of work still to do:
>

As mentioned in a recent Engineering notebook post, the next phase involves 
having the drawing code understand (or generate) wrapper widgets for 
headlines.

I am now in what I call a "wrestling with code" phase. It's definitely a 
physical process. I also think of it as sculpting clay.

Leo is the perfect tool for this kind of thing.  I can copy/paste code from 
npyscreen classes for reference while working on subclasses.

The goal is to use Leo's existing vnode structure instead of the 
corresponding npyscreen TreeData objects.  Clearly, the goal is feasible. 
Leo's tree resources are far richer than npyscreen's. In practice, only the 
LeoMLTree.update method will change, so the task is in some sense bounded.

But this task is not straightforward.  I am in the process of "unwinding" 
the twisty little maze of calls to adapter methods in the MLTree class. 
This unwinding process will simplify the code and deepen my understanding 
of what *exactly* is going on. As the code gets simpler the way forward 
will start to emerge.

Edward

-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo as wiki replacement

2017-05-13 Thread Edward K. Ream
On Fri, May 12, 2017 at 11:02 PM, Lang Hurst  wrote:

> Then I decided to change the .html to .pdf and see how the pdf looks. I'm
> guessing I skipped a bunch of steps because that seems too easy. I have the
> following error:
>
> Unexpected docutils exception
>

​Rev 6f1a321 fixes the proximate cause of this crash, namely an undefined
symbol when ​

​reportlab.lib.styles can't be imported.

I'm not sure whether this fix will be enough.

Presumably the better solution will be to pip install reportlab.

HTH.

Edward

-- 
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 group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.