Re: edit-pane-csv separator

2018-08-06 Thread Terry Brown
On Mon, 6 Aug 2018 05:46:55 -0700 (PDT) Josef wrote: > Is there a way to set the CSV separator? I've made a start on this in the csv_delim branch. It's not finished, because I'm trying to cover the LaTeX table case: 1 & 2 & 3 \\ a & b & c \\ My initial thought was to let the delimiter be a

Re: Installation on MacOS (10.10)

2018-08-06 Thread matelot
thanks for the replies folks. Leo is running now: Leo 5.7.3, build 20180525162844, Fri May 25 16:28:44 CDT 2018 Not running from a git repo Python 3.6.6, PyQt version 5.9.6 darwin ** isPython3: True ** caching enabled I simply did an "update-all" and these are the output relevant to Leo & its

Re: Installation on MacOS (10.10)

2018-08-06 Thread Terry Brown
On Mon, 6 Aug 2018 19:16:58 -0700 (PDT) matelot wrote: > nobody runs Leo on Mac, really ? People do, I think Brian's one of them. Brian's suggestion was the first step to answering the question. You appear to have PyQt installed, but it fails to import. So entering python and then from

Re: About unit testing Leo

2018-08-06 Thread Terry Brown
On Mon, 6 Aug 2018 07:11:49 -0500 "Edward K. Ream" wrote: > On Fri, Aug 3, 2018 at 10:56 AM, vitalije wrote: > > Plugins can affect the load process. > >> > >> Yes, I know they can. But do they do this? > > How should I know? People are free to create their own private > plugins for special

Re: Update re: new model

2018-08-06 Thread Terry Brown
On Mon, 6 Aug 2018 14:48:18 -0500 "Edward K. Ream" wrote: > > AttributeError.  Basically it comes down to requiring, or not > > requiring, the user to do > > if c.gui: > >   c.gui.endEditing() > > (or `c.gui and c.gui.endEditing()`) > > > That's a lot of work, a lot of infrastructure, a lot of

Re: On topic? Guidelines for math writing

2018-08-06 Thread Rob
That's a great article and highlights something I preach/teach all the time; know your audience. I also think there's a third, and significantly larger audience of 'users'. Perhaps most of them aren't interested in the code base itself, but simply in how Leo works. I count myself as part of

What's important

2018-08-06 Thread Edward K. Ream
I'd like to discuss what I think is most important, and why. The simplest, easiest, most general ideas are often the most important. Complexity definitely is not the same as importance. Let's look at some examples: *Eliminating caching using super-fast reading* Vitalije's code essentially

Re: Update re: new model

2018-08-06 Thread Edward K. Ream
On Mon, Aug 6, 2018 at 1:13 PM, Terry Brown wrote: On Mon, Aug 6, 2018 at 9:09 AM Edward K. Ream wrote: > > > Scripts, plugins and Leo itself should be able to call c.endEditing() > anytime, anywhere. Period. Even if the call does not actually make a lot > of sense, c.endEditing should

Re: Update re: new model

2018-08-06 Thread Terry Brown
On Mon, Aug 6, 2018 at 9:09 AM Edward K. Ream wrote: > > On Saturday, August 4, 2018 at 2:39:26 PM UTC-5, vitalije wrote: > > > initialization code should be kept free and clean of any gui calls. > Leo's guiding architectural principle is: There shall be no global > architectural dependencies.

Re: On topic? Guidelines for math writing

2018-08-06 Thread vitalije
On Monday, August 6, 2018 at 5:06:11 PM UTC+2, Edward K. Ream wrote: > > This page > contains guidelines for good mathematical writing. Imo, it generalizes > pretty well to any kind of technical writing. > > Great resource. I've

On topic? Guidelines for math writing

2018-08-06 Thread Edward K. Ream
This page contains guidelines for good mathematical writing. Imo, it generalizes pretty well to any kind of technical writing. The first principle, "Know your audience" applies to our recent discussions of code refactoring and

Re: Update re: new model

2018-08-06 Thread Edward K. Ream
On Saturday, August 4, 2018 at 2:39:26 PM UTC-5, vitalije wrote: > initialization code should be kept free and clean of any gui calls. Debatable. > Either writeFromString must not call gui methods like endEditing, either reload_settings, init_env in abbrevCommands must not call

Re: language latex

2018-08-06 Thread Edward K. Ream
On Mon, Aug 6, 2018 at 8:12 AM, Josef wrote: I would appreciate, if at least *.latex and *.sty files, would > automatically be recognized as LaTeX. > Does 6d17bb in "devel" do what you want? Edward -- You received this message because you are subscribed to the Google Groups "leo-editor"

Re: edit-pane-csv separator

2018-08-06 Thread Edward K. Ream
On Mon, Aug 6, 2018 at 7:46 AM, Josef wrote: To my delight I just found out that leo has since a couple of versions the > command edit-pane-csv. > > Is there a way to set the CSV separator? > Terry should know. He wrote the editpane.py plugin. Edward -- You received this message because

language latex

2018-08-06 Thread Josef
Currently latex syntax highlighting is activated automatically when reading any *.tex file, however also *.latex, *.sty and *.cls files are LaTeX files. I would appreciate, if at least *.latex and *.sty files, would automatically be recognized as LaTeX. One writes rather rarely new document

edit-pane-csv separator

2018-08-06 Thread Josef
To my delight I just found out that leo has since a couple of versions the command edit-pane-csv. This is extremely useful! My problem is, that I have to deal with many CSV files, which often are tab-separated of semicolon separated. So far I was only able to edit comma-separated files with

Re: About unit testing Leo

2018-08-06 Thread Edward K. Ream
On Fri, Aug 3, 2018 at 10:08 AM, Terry Brown wrote: > Re gui layers etc., I've mentioned it before, but I wonder how using > something like > https://pythonhosted.org/blinker/ > would work, performance wise. > I don't think performance will be an issue. Imo, something like this is worth

Re: About unit testing Leo

2018-08-06 Thread Edward K. Ream
On Fri, Aug 3, 2018 at 10:56 AM, vitalije wrote: Plugins can affect the load process. >> >> Yes, I know they can. But do they do this? > How should I know? People are free to create their own private plugins for special purposes. In particular, plugins might want to monkey-patch Leo. Edward

Re: About unit testing Leo

2018-08-06 Thread Edward K. Ream
On Fri, Aug 3, 2018 at 10:56 AM, vitalije wrote: My initial post on this thread was quite a long one, tackling many things > at once. So is Edward's reply. I can't discuss ATM every Edward's point but > I will focus just on the settings and plugins stuff. The other points are > very well worth

Re: Steps to install leo using pip in python 3.5

2018-08-06 Thread Edward K. Ream
On Tue, Jul 17, 2018 at 9:09 PM, Brian Theado wrote: > I created this issue: https://github.com/leo-editor/leo-editor/issues/944, > but I didn't see a way to tag it. > I've added some tags. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor"

Re: Reload settings triggers error

2018-08-06 Thread Edward K. Ream
On Tue, Jul 31, 2018 at 11:26 AM, Chris George wrote: > Hi Rob, > > See issue #943 as well as #938. > These have both been fixed. 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

Re: curly quotes

2018-08-06 Thread Edward K. Ream
On Monday, August 6, 2018 at 4:51:51 AM UTC-5, Edward K. Ream wrote: > > > On Tue, Jul 17, 2018 at 12:54 PM, Jeff Filipovits > wrote: > >> I am a lawyer and would like to use Leo to keep track of research and >> potentially assist in writing briefs. This is a relatively petty thing, but >> it

Re: curly quotes

2018-08-06 Thread Edward K. Ream
On Tue, Jul 17, 2018 at 12:54 PM, Jeff Filipovits wrote: > I am a lawyer and would like to use Leo to keep track of research and > potentially assist in writing briefs. This is a relatively petty thing, but > it is driving me crazy. Is there a way to get Leo use curly (single and > double)

Re: render rst's toctree directive

2018-08-06 Thread Edward K. Ream
On Wed, Jul 11, 2018 at 5:04 AM, Jeremy Chen wrote: > Hi, > > I wonder if it's possible to render toctree when using rst preview. > My apologies for the delay in responding. The answer is "no". The toctree directive is for Sphinx, not docutils. There are no plans to change this. The toctree