Re: ENB: Aha: use @c.command to split leoCommands.py

2017-11-22 Thread Edward K. Ream
On Thursday, November 23, 2017 at 1:40:25 AM UTC-6, Edward K. Ream wrote: So we have a dilemma. One the one hand, it's *always* better to use > classes to encapsulate related functions. Otoh, it would be intolerable > for text transformations to introduce subtle bugs in commander commands.

Re: ENB: Aha: use @c.command to split leoCommands.py

2017-11-22 Thread Edward K. Ream
On Thursday, November 23, 2017 at 1:27:38 AM UTC-6, Edward K. Ream wrote: > *The Aha* > The @c.command decorator, defined in leoCommands.py, will define a > command, just like g.command. And (Aha!) the decorator will *also *inject > the function (as a method) into the Commands class. > It

Re: List of all *python* dependencies and why

2017-11-22 Thread Matt Wilkie
> You probably take this in to account already, but a lot of these things >> are "recommends" rather than "requires" kind of dependencies. >> > > ​Indeed. The way to cut through all this morass is to use the Anaconda > distribution. This gives you almost everything you ever need, except >

Re: List of all *python* dependencies and why

2017-11-22 Thread Edward K. Ream
On Wed, Nov 22, 2017 at 6:20 PM, Terry Brown wrote: > markdown.py would be a much lighter dependency than pandoc, although a > bit less featurefull. My goal is to have leo_edit_pane replace > viewrendered. LEP will use either. > > You probably take this in to account

Re: List of all *python* dependencies and why

2017-11-22 Thread Matt Wilkie
thanks! pypandoc is a wrapper around the pandoc commandline utility, allowing a person to use pandoc from within python using python style syntax. It's a sledgehammer solution to the small hammer problem I faced converting Leo's markdown readme to restructured text for Pypi.org. However pandoc is

Re: List of all *python* dependencies and why

2017-11-22 Thread Terry Brown
markdown.py would be a much lighter dependency than pandoc, although a bit less featurefull. My goal is to have leo_edit_pane replace viewrendered. LEP will use either. You probably take this in to account already, but a lot of these things are "recommends" rather than "requires" kind of

Re: List of all *python* dependencies and why

2017-11-22 Thread Chris George
pyxml is required if you want to import xml files. pandoc is required for users if they wish to view markdown files using viewrendered. I am not sure of the difference between pandoc and pypandoc. Chris On Wed, Nov 22, 2017 at 12:34 PM, Matt Wilkie wrote: > I'm in the

Re: leo-editor.com in "suspended page" mode

2017-11-22 Thread Edward K. Ream
On Wed, Nov 22, 2017 at 2:14 PM, Matt Wilkie wrote: > http://leoeditor.com/ is redirecting to > http://leoeditor.com/cgi-sys/suspendedpage.cgi with the text "Contact > Support" as the page title. > ​Thanks for this. I'll contact my brother when I can. Edward -- You

List of all *python* dependencies and why

2017-11-22 Thread Matt Wilkie
I'm in the closing stretch for Issue #586, separating end user dependencies from developer requirements. This is what I have now, is anything missing? ~~~ user_requires = [ 'docutils', # Sphinx, rST plugin 'pyxml', # ? 'pyenchant', # spell check support 'PyQt5; python_version >=

Re: how should an (ordinary) user install Leo on Linux?

2017-11-22 Thread Matt Wilkie
> With regard to dependencies, do you recall what docutils, pyxml, and > pyenchant required for? I don't have them in my list, but haven't > seen any errors about them either. > Nevermind, answered a couple myself, and am starting new thread to collect all dependencies Matt -- You received

Re: how should an (ordinary) user install Leo on Linux?

2017-11-22 Thread Matt Wilkie
Thanks for the recipe Chris. Steps 2 & 3 are about to get a whole lot easier, pending resolution of issue # 586 which I'm nearing the end of. With regard to dependencies, do you recall what docutils, pyxml, and pyenchant required for? I don't have them in my list, but haven't seen any errors

leo-editor.com in "suspended page" mode

2017-11-22 Thread Matt Wilkie
http://leoeditor.com/ is redirecting to http://leoeditor.com/cgi-sys/suspendedpage.cgi with the text "Contact Support" as the page title. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails

Re: Declutter patterns for org-mode tags

2017-11-22 Thread Edward K. Ream
On Wednesday, November 22, 2017 at 7:01:39 AM UTC-6, Edward K. Ream wrote: > > Rev fee9130 simplifies the declutter code significantly, but this remains > experimental code. > Recent revs update the declutter docs in LeoDocs.leo and leoSettings.leo. Both have been pushed to master. At present

Re: how should an (ordinary) user install Leo on Linux?

2017-11-22 Thread Chris George
I never use viewrendered except to read about plugins. :-) Chris On Wed, Nov 22, 2017 at 9:02 AM, Josef wrote: > > >> 2. Install the prerequisites for Leo. These I usually install using pip >> or the package manager in the distribution. Try pip first. >> >> docutils, pandoc,

Re: how should an (ordinary) user install Leo on Linux?

2017-11-22 Thread Josef
> > 2. Install the prerequisites for Leo. These I usually install using pip or > the package manager in the distribution. Try pip first. > > docutils, pandoc, pyxml, pyenchant, git > > thank you for the tip. Installing docutils seems to have fixed my problem with the viewrendered plugin. -

Re: viewrendered fails to load

2017-11-22 Thread Josef
I followed a suggestion of Chris George to install several dependencies of Leo and it seems since I installed docutils, viewrendered works again. Thanks Chris -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and

Re: how should an (ordinary) user install Leo on Linux?

2017-11-22 Thread Josef
Hi Chris, thanks for the tips. In fact, I have installed Leo in a pretty similar way as you (and I also use Leo already for several years). My problem was the file association, which you avoided. Also, for a while I was not able to use the viewrendered plugin any more, and I am surprised you

Re: Declutter patterns for org-mode tags

2017-11-22 Thread Edward K. Ream
Rev fee9130 simplifies the declutter code significantly, but this remains experimental code. 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

Re: how should an (ordinary) user install Leo on Linux?

2017-11-22 Thread Chris George
Hello Josef, I am a writer and a longtime Linux Mint user. I recently switched to Chakra as Mint dropped KDE. I am not a programmer. I have been using Leo for ten years as my primary editor. (Wow, time flies). Here is how I install Leo. 1. Install the latest Anaconda from here:

Re: Declutter patterns for org-mode tags

2017-11-22 Thread Edward K. Ream
On Wednesday, November 22, 2017 at 5:09:21 AM UTC-6, Edward K. Ream wrote Instead of contortions trying to specify \1, the declutter mechanism should > support this: > > RULE :([\w_@]+:)+\s*$ > REPLACE-HEAD > > This tells the declutter code to replace the headline by the text *preceding > *the

how should an (ordinary) user install Leo on Linux?

2017-11-22 Thread Josef
Although I used python occasionally since version 1.3, programming is not my main occupation. So far I have installed leo from git, but I am missing a straightforward way to configure it on my Xubuntu 16.04 machine. I do not know how to create a new mime type for it and associate it with leo

Re: viewrendered fails to load

2017-11-22 Thread Josef
I noticed that in the conda/pip installed versions of python3 and PyQt5 there is the QtWebKitWidgets module missing, which I believe is a prerequisite for viewrendered. In the xubuntu 16.04 provided packages the modules QtWebKitWidgets and PySvg are both present, but it still does not load.

Re: Declutter patterns for org-mode tags

2017-11-22 Thread Edward K. Ream
On Wednesday, November 22, 2017 at 4:11:10 AM UTC-6, Edward K. Ream wrote: > the org-mode importer regex is much simpler, because the code only needs > to recognize the trailing tags themselves, not the head. > This suggests a much easier way to specify org-mode regex patterns. I knew about

b94fe31 organizes @data tree-declutter-patterns in leoSettings.leo

2017-11-22 Thread Edward K. Ream
The ability to organize @data nodes has been around for some time. It's a great feature. The new nodes are here: leoSettings.leo#Declutter-->@data tree-declutter-patterns Please report any problems. Edward -- You received this message because you are subscribed to the Google Groups

Re: Declutter patterns for org-mode tags

2017-11-22 Thread Edward K. Ream
On Wednesday, November 22, 2017 at 4:05:25 AM UTC-6, Edward K. Ream wrote: > This thread...[focuses] exclusively on the declutter regex. I should add that the org-mode importer regex is much simpler, because the code only needs to recognize the trailing tags themselves, not the head. Indeed,

Declutter patterns for org-mode tags

2017-11-22 Thread Edward K. Ream
This thread is a continuation of "ENB: Completing #578: support for org-mode tags", focused exclusively on the declutter regex. *tl;dr:* Read the summary. My original attempt was: RULE ^([^:]*):([\w_@]+:)+\s*$ REPLACE \1 This is *almost* what we want. It will compute \1 properly for these

Re: ENB: Completing #578: support for org-mode tags

2017-11-22 Thread Edward K. Ream
On Tuesday, November 21, 2017 at 10:55:15 AM UTC-6, Edward K. Ream wrote: > > On Tue, Nov 21, 2017 at 10:34 AM, Edward K. Ream > wrote: > > Unless I hear objections, I am going to comment out the code in the org >> mode reader and writer that inserts or delete tags. >> > >