How to install on Windows 10

2017-06-03 Thread Graham Chiu
Hi I'm having installing Leo on my Windows 10 Pro PC. I download Leo from the home page https://leo-editor.github.io/leo-editor/ There didn't seem to be anything there on installation but a different site http://leoeditor.com/installing.html says I need install various packages

Re: Additional Plugin Dirs

2017-06-03 Thread Adrian Calvin
Well, even though I probably used about an hour too much time on this, at least I learned more about the inner workings of Leo. On Sat, Jun 3, 2017 at 6:11 PM, Adrian Calvin wrote: > > Ah I see, yes. You are correct. > > On Friday, June 2, 2017 at 6:41:27 PM UTC-5,

Re: Additional Plugin Dirs

2017-06-03 Thread Adrian Calvin
Ah I see, yes. You are correct. On Friday, June 2, 2017 at 6:41:27 PM UTC-5, Adrian Calvin wrote: > > Is there a way to add additional plugin directories to leo just as one > might add additional paths to python? > -- You received this message because you are subscribed to the Google Groups

Re: Additional Plugin Dirs

2017-06-03 Thread Terry Brown
On Sat, 3 Jun 2017 16:43:14 -0500 Adrian Calvin wrote: > Right, thanks. I am pretty close. I am just trying to make the code > more tidy. It was not quite as I thought. Since the plugin name > cannot have more than one ".", one can scan for the number of "." to >

Re: Additional Plugin Dirs

2017-06-03 Thread Adrian Calvin
Ideally, I suppose, one should not need to specify the package. I guess I could write a simple path traversal of the python path and whenever it finds it, use it. But then there are possible name collisions. Any thoughts? On Saturday, June 3, 2017 at 5:11:55 PM UTC-5, Adrian Calvin wrote: >

Re: Additional Plugin Dirs

2017-06-03 Thread Adrian Calvin
It might be better to replace the "." with "/" to seem more like a true file path. if "/" in fn: return fn.replace("/", ".")[:-3] @enabled-plugins adrianmod/hey_colorize.py On Friday, June 2, 2017 at 6:41:27 PM UTC-5, Adrian Calvin wrote: > > Is there a way to add additional plugin

Re: Additional Plugin Dirs

2017-06-03 Thread Adrian Calvin
Ok, here is the updated regularizeFilenames: @language python @tabwidth -4 def regularizeName(self, fn): '''Return the name used as a key to this modules dictionaries.''' #this is the only change. If you have more than one "." in the name, #it will use your package instead of

Re: Additional Plugin Dirs

2017-06-03 Thread Adrian Calvin
Right, thanks. I am pretty close. I am just trying to make the code more tidy. It was not quite as I thought. Since the plugin name cannot have more than one ".", one can scan for the number of "." to decide which course of action to take. On Sat, Jun 3, 2017 at 2:34 PM, Terry Brown

Re: Cheat Sheet: Executing minibuffer commands

2017-06-03 Thread jkn
Hi Edward On Thursday, June 1, 2017 at 3:49:26 PM UTC+1, Edward K. Ream wrote: > > On Thu, May 18, 2017 at 4:29 PM, jkn > wrote: > >> Hi Edward >> OK, here's a diff to leyKeys.py which seems to give the Command >> History behaviour I like & expect ;-) >> > >

Re: Additional Plugin Dirs

2017-06-03 Thread Terry Brown
On Sat, 3 Jun 2017 05:52:07 -0500 "Edward K. Ream" wrote: > On Fri, Jun 2, 2017 at 9:44 PM, Terry Brown > wrote: > > > On Fri, 2 Jun 2017 16:41:27 -0700 (PDT) > > Adrian Calvin wrote: > > > > > Is there a way to add

Re: Additional Plugin Dirs

2017-06-03 Thread Adrian Calvin
Thanks I'll do my best..New to both python and Leo. On Sat, Jun 3, 2017 at 1:18 PM, Edward K. Ream wrote: > On Sat, Jun 3, 2017 at 10:57 AM, Adrian Calvin > wrote: > >> I see. I have never submitted code to github, but I will work on a >>

Re: Additional Plugin Dirs

2017-06-03 Thread Edward K. Ream
On Sat, Jun 3, 2017 at 10:57 AM, Adrian Calvin wrote: > I see. I have never submitted code to github, but I will work on a > solution, if you are accepting of the idea? > ​Yes, I think the idea is a good one. Edward -- You received this message because you are

Re: Additional Plugin Dirs

2017-06-03 Thread Adrian Calvin
I see. I have never submitted code to github, but I will work on a solution, if you are accepting of the idea? On Friday, June 2, 2017 at 6:41:27 PM UTC-5, Adrian Calvin wrote: > > Is there a way to add additional plugin directories to leo just as one > might add additional paths to python? >

Re: 82b919e: revised xml/html importers

2017-06-03 Thread Joe Orr
I gave up on that approach, decided it would be better to make specific transformers to get exactly the output I want. Here is a project with a transformer for the Moby Shakespeare xml. I'm planning to make a bunch more, for each xml format just need to write the xsl.

Re: #480: GitHub pages now hosts a *copy* of Leo's web site

2017-06-03 Thread Joe Orr
Yes, can do that if I load via xmlhttp instead of putting in an iframe... I'll think about that a bit and post a demo if I get something good working. Joe On Wednesday, May 24, 2017 at 10:56:07 AM UTC-4, Terry Brown wrote: > > On Wed, 24 May 2017 01:55:51 -0700 (PDT) > Joe Orr

Re: Additional Plugin Dirs

2017-06-03 Thread Edward K. Ream
On Fri, Jun 2, 2017 at 9:44 PM, Terry Brown wrote: > On Fri, 2 Jun 2017 16:41:27 -0700 (PDT) > Adrian Calvin wrote: > > > Is there a way to add additional plugin directories to leo just as > > one might add additional paths to python? > > Yes.

Re: Additional Plugin Dirs

2017-06-03 Thread Edward K. Ream
On Fri, Jun 2, 2017 at 6:41 PM, Adrian Calvin wrote: > Is there a way to add additional plugin directories to leo just as one > might add additional paths to python? > ​I thought there was an enhancement request for something like this, but I can't find it. Edward