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

2017-04-17 Thread 'Terry Brown' via leo-editor
On Mon, 17 Apr 2017 12:16:46 -0700 (PDT) john lunzer wrote: > I'm not trying to manipulate anyone into somehow getting Leo onto the > command line. If you can manipulate someone into doing this, please do ;-) I'd love to have command line Leo too. I work on marginal

Re: Plans to fix bugs

2017-04-14 Thread 'Terry Brown' via leo-editor
On Fri, 14 Apr 2017 09:52:58 -0700 (PDT) "Edward K. Ream" wrote: > This page > > > lists 6 bugs that I'd

Re: How to install pyEnchant w/ Anaconda on Windows?

2017-04-06 Thread 'Terry Brown' via leo-editor
On Thu, 6 Apr 2017 09:49:39 -0700 (PDT) Largo84 wrote: > Just now setting up a new machine and I thought I would try the > Anaconda route (Win10). So far so good, at least getting Leo to run. > However, I can't figure out how to install the pyEnchant package. I > intentionally

Re: How do you organize your Leo projects?

2017-04-05 Thread 'Terry Brown' via leo-editor
On Wed, 5 Apr 2017 06:48:42 -0700 (PDT) Phil wrote: [single vs. multiple .leo files] > I am wondering how others manage this. I use a hybrid approach. One .leo file at work with @path nodes for git repos. of different projects. I avoid clones, but there's enough

Re: Turning to documentation

2017-04-02 Thread 'Terry Brown' via leo-editor
On Sun, 2 Apr 2017 18:23:07 -0700 (PDT) Joe Orr wrote: > Not sure I'm following this discussion completely, maybe I should > post a new thread... > > Anyway, I'm planning on adding presentations to Leo Viewer at some > point using this: https://github.com/hakimel/reveal.js/

Re: I've declared war on fit and finish problems :-)

2017-03-28 Thread 'Terry Brown' via leo-editor
On Tue, 28 Mar 2017 10:05:14 -0700 (PDT) "Edward K. Ream" wrote: > The new focus code is the opening shots in this war. I want Leo to be > work *perfectly*. > > The challenge is to have fit and finish problems rise to full > consciousness while I am working on other things.

Re: Thought experiments

2017-03-24 Thread 'Terry Brown' via leo-editor
On Fri, 24 Mar 2017 06:36:13 -0500 "Edward K. Ream" wrote: I'm not sure if I understood Lewis's post or not. I wonder if it was a humorous way of pointing out that Leo already has solutions to most of the actual problems / workflows that these other tools address. Different

Re: Unified views? Unify the outline and body panes?

2017-03-23 Thread 'Terry Brown' via leo-editor
iewer descending from one of the HTML viewers. Possibly also a markdown-html viewer which shows you the HTML for markdown, can't remember. > Thanks, > Kent > > On Thu, Mar 23, 2017 at 11:26 AM, 'Terry Brown' via leo-editor < > leo-editor@googlegroups.com> wrote: > > >

Re: Unified views? Unify the outline and body panes?

2017-03-23 Thread 'Terry Brown' via leo-editor
On Thu, 23 Mar 2017 11:07:25 -0500 "Edward K. Ream" <edream...@gmail.com> wrote: > On Thu, Mar 23, 2017 at 10:49 AM, Edward K. Ream <edream...@gmail.com> > wrote: > > > On Thu, Mar 23, 2017 at 10:30 AM, 'Terry Brown' via leo-editor < > > leo-editor@g

Re: arrhg, nuance is an idiot!

2017-03-23 Thread 'Terry Brown' via leo-editor
On Thu, 23 Mar 2017 08:46:27 -0700 (PDT) "Eric S. Johansson" wrote: > 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

Re: Unified views? Unify the outline and body panes?

2017-03-23 Thread 'Terry Brown' via leo-editor
On Thu, 23 Mar 2017 09:53:56 -0500 "Edward K. Ream" wrote: > Is there code I can look at? And I'll try to remember to call them > EP's :-) The code is in the branch https://github.com/tbnorth/leo-dev-tbnorth/tree/leo_edit_pane but I'd ask you to hold off on any

Re: Unified views? Unify the outline and body panes?

2017-03-23 Thread 'Terry Brown' via leo-editor
On Thu, 23 Mar 2017 03:31:05 -0500 "Edward K. Ream" wrote: > ​After further thought, I see that the problem with the Pub/Sub​ > > ​pattern is that it isn't a good fit for multiple body panes. > Indeed, only one body pane, the presently selected pane, should > "respond" to a

Re: Unified views? Unify the outline and body panes?

2017-03-22 Thread 'Terry Brown' via leo-editor
On Wed, 22 Mar 2017 10:37:15 -0500 "Edward K. Ream" wrote: > > I think Leo will become much more powerful / flexible when it has > > multiple node editor components that are free to act on different > > parts of the tree. > > ​Yes.  I was just thinking that a

Re: What are your favorite abbreviations?

2017-03-19 Thread 'Terry Brown' via leo-editor
On Mon, 20 Feb 2017 04:54:36 -0800 (PST) "Edward K. Ream" wrote: > Here is a new one for me. To get #408's url I type bug;;409 > > bug;;=https://github.com/leo-editor/leo-editor/issues/ > > The abbrevs I use the most are: > > alp;;=@language python\n > alr;;=@language

Re: Solved - Outline pane font size

2017-03-18 Thread 'Terry Brown' via leo-editor
On Sat, 18 Mar 2017 05:43:54 -0700 (PDT) "Edward K. Ream" wrote: > The recent problems with Qt5.8 have confused everyone. The Qt people > seem not to care enough about compatibility. My bug report was moved from "Unevaluated" to "Somewhat important". I would hope it would

Re: PyQt 5.8 changes stylesheet interpretation

2017-03-16 Thread 'Terry Brown' via leo-editor
On Thu, 16 Mar 2017 07:49:03 -0500 "'Terry Brown' via leo-editor" <leo-editor@googlegroups.com> wrote: > I'll start with the Qt people. https://bugreports.qt.io/browse/QTBUG-59533 -- You received this message because you are subscribed to the Google Groups "leo-edito

Re: PyQt 5.8 changes stylesheet interpretation

2017-03-16 Thread 'Terry Brown' via leo-editor
On Thu, 16 Mar 2017 05:13:24 -0500 "Edward K. Ream" wrote: > On Thu, Mar 16, 2017 at 4:44 AM, Edward K. Ream > wrote: > > ​It looks like removing tildes has broken background highlighting in > the status area. > > ​Rev 383484 restores leoSettings.leo

PyQt 5.8 changes stylesheet interpretation

2017-03-14 Thread 'Terry Brown' via leo-editor
Just confirmed in a Windows 7 VM switching back and forth between PyQt 5.7.1 and 5.8 (Python 3 for both) that stylesheets that work fine in 5.7.1 (my personal one, and EKR Windows Dark) have issues in PyQt 5.8. My backgrounds are ok, but font sizes are wrong. EKR Dark had light backgrounds and

Re: Minor problems with graphcanvas.py and possible fixes for them

2017-03-12 Thread 'Terry Brown' via leo-editor
On Sun, 12 Mar 2017 08:43:56 -0700 (PDT) Pavel Balashov wrote: > Terry, thank you for the explanation. I have already created a branch > and a pull request just for the zoom problem, so I will create a > separate branch for the layout problem. But next time I will follow >

Re: Minor problems with graphcanvas.py and possible fixes for them

2017-03-12 Thread 'Terry Brown' via leo-editor
On Sun, 12 Mar 2017 01:06:39 -0800 (PST) Pavel Balashov wrote: > If you don't mind, I would like to try and commit my changes using > git and GitHub - it will be a new experience for me! But I don't > know, whether I should do 2 separate pull requests or a single one > with

Re: Minor problems with graphcanvas.py and possible fixes for them

2017-03-11 Thread 'Terry Brown' via leo-editor
On Sat, 11 Mar 2017 12:46:32 -0800 (PST) Pavel Balashov wrote: > Hello, > > recently I have started to use Leo editor for outlining my university > projects and I like it a lot. Also I was really excited about one of > its plugins, graphcanvas.py, and its ability to

Re: Proposal: simplify style sheets for Leo 5.6, or maybe 5.5b1

2017-03-07 Thread 'Terry Brown' via leo-editor
On Tue, 7 Mar 2017 15:19:20 -0800 (PST) "Edward K. Ream" wrote: > Maybe we can make the css comments do the heavy lifting, as you > suggest.  In that case, maybe not much new really is required. But it > must be a lot easier to discover and use than at present. I'm not

Re: Proposal: simplify style sheets for Leo 5.6, or maybe 5.5b1

2017-03-07 Thread 'Terry Brown' via leo-editor
On Tue, 7 Mar 2017 16:13:49 -0600 "Edward K. Ream" wrote: > The present (accurate) comment is the following: > > In order for theme settings to take effect, you may need to disable > > existing `@color` and `@data qt-gui-plugin-style-sheet` nodes in > > myLeoSettings.leo.

Re: Proposal: simplify style sheets for Leo 5.6, or maybe 5.5b1

2017-03-07 Thread 'Terry Brown' via leo-editor
To be honest I don't remember the motivation for supporting parsing values from comments in CSS.  The use of regular @settings nodes seems more Leonine to me.   But that also seems to require iterative substitution.  When the system was working, it supported both. Although I disagree with your

Re: Proposal: simplify style sheets for Leo 5.6, or maybe 5.5b1

2017-03-07 Thread 'Terry Brown' via leo-editor
-Terry From: 'Terry Brown' via leo-editor <leo-editor@googlegroups.com> To: "leo-editor@googlegroups.com" <leo-editor@googlegroups.com> Sent: Tuesday, March 7, 2017 1:02 PM Subject: Re: Proposal: simplify style sheets for Leo 5.6, or maybe 5.5b1 I would resist remov

Re: Proposal: simplify style sheets for Leo 5.6, or maybe 5.5b1

2017-03-07 Thread 'Terry Brown' via leo-editor
I would resist removing @setting expansion from stylesheets. It's a major pain maintaining CSS without such a mechanism. CSS3(?, maybe 2) has variables, but that doesn't help with Qt-CSS.If the @setting expansion is hard to understand, let's blame docs., comments, and code layout, not the

Re: #350: Themes are ready for serious testing

2017-03-07 Thread 'Terry Brown' via leo-editor
On March 7, 2017 6:06:59 AM CST, "Edward K. Ream" <edream...@gmail.com> wrote: >On Tue, Mar 7, 2017 at 5:39 AM, Edward K. Ream <edream...@gmail.com> >wrote: > >> >> On Mon, Mar 6, 2017 at 10:01 PM, 'Terry Brown' via leo-editor < >> leo-editor@go

Re: #350: Themes are ready for serious testing

2017-03-06 Thread 'Terry Brown' via leo-editor
On Sun, 5 Mar 2017 22:28:36 -0800 (PST) jon h wrote: > Hi > > It's only a couple of days since I started trying to use Leo. > Can't use it after dark until there's a dark theme working. :) > > On Sunday, 5 March 2017 21:55:43 UTC+10, lewis wrote: > > > > The ekr_dark theme

Re: Well Kent, your vision for Leo is becoming clearer

2017-03-06 Thread 'Terry Brown' via leo-editor
roups.com Sent: Monday, March 6, 2017 1:56 PM Subject: Re: Well Kent, your vision for Leo is becoming clearer On Mon, Mar 6, 2017 at 12:26 PM, 'Terry Brown' via leo-editor <leo-editor@googlegroups.com> wrote: Hi - I wouldn't discount SQLite either, DB wise, unless you need connect

Re: Well Kent, your vision for Leo is becoming clearer

2017-03-06 Thread 'Terry Brown' via leo-editor
Hi - I wouldn't discount SQLite either, DB wise, unless you need connect to a *remote* server capability, but for local work it's quite capable.  And a proper abstraction layer should make it possible to switch out the backend. Cheers -Terry From: Kent Tenney To:

Re: Proposed actions re: #350: themes not working as documented

2017-03-03 Thread 'Terry Brown' via leo-editor
The theme script you're referring to compiles a tree into a single stylesheet, is that correct? I might have referred to it as a button when in fact it was just a script that anyone editing a theme would probably convert to a button with the script-button button. It seems that using the theme

Re: Leo and abstraction

2017-03-03 Thread 'Terry Brown' via leo-editor
Well said.  When you think about it there are a number of features in Leo that allow personalized abstraction.  Organizer nodes are the simplest, but all the various methods for linking between distant parts of the tree are also helpful (backlinks, unls, bookmarks, tags, even clones ;-) Cheers

Re: Abbreviation default text

2017-02-28 Thread 'Terry Brown' via leo-editor
You could file an enhancement request, not sure how high the priority would be. Currently you can use to enter a blank value for the field, and  to keep the default value for the field (because right-arrow clears the selection range).  With your change you'd have to explicitly blank

Re: How to escape \n in abbreviations?

2017-02-28 Thread 'Terry Brown' via leo-editor
Ok, \\n should work in 9e9539d, there was special handling of \n in the code already that made \newcommand etc. impossible.  I think it unavoidably breaks theoretically possible abbreviations in people's local settings, but (a) they probably don't exist, and (b) better that than have the code

Re: How to escape \n in abbreviations?

2017-02-28 Thread 'Terry Brown' via leo-editor
Sorry, didn't read carefully enough.  Have you tried \\n ? Cheers -Terry From: Largo84 To: leo-editor Sent: Tuesday, February 28, 2017 9:47 AM Subject: Re: How to escape \n in abbreviations? That doesn't really answer the question. I

Re: How to escape \n in abbreviations?

2017-02-28 Thread 'Terry Brown' via leo-editor
On Mon, 27 Feb 2017 22:45:40 -0800 (PST) Largo84 wrote: > Suppose I create an abbreviation for a LaTex construct such as: > > newcom;;=\newcommand{\SomethingNew}{<|INSERT-TEXT|>} > > When executed, the `\n` is interpreted as a Python line feed and I > end up with:

Re: Leo 5.5 will challenge org mode

2017-02-17 Thread 'Terry Brown' via leo-editor
> From: Edward K. Ream > To: leo-editor >  > Sent: Friday, February 17, 2017 1:21 PM> > Subject: Leo 5.5 will challenge org mode> > In another thread I wrote:> > > > Perhaps [ A Brief Summary of Leo] should be rewritten in the org-mode intro >

Re: commands to move to next file in 'file edit list'?

2017-02-16 Thread 'Terry Brown' via leo-editor
I think Ctrl-PgDn, Ctrl-PgUp also work, I think most web browsers use those? Cheers -Terry On Thursday, February 16, 2017 at 4:49:28 PM UTC, Edward K. Ream wrote: On Thu, Feb 16, 2017 at 5:43 AM, jkn wrote: If I have multiple files open in Leo, so multiple 'file tabs'

Re: Leo vs org mode

2017-02-16 Thread 'Terry Brown' via leo-editor
I guess I wonder which tasks can currently only be accomplished with org mode, and not Leo. I thought Leo had recently acquired support for multiple source languages?  Or are you talking about executing, not syntax highlighting? A good table editor would be nice, it should read/write from

Re: Leo's HOME directory

2017-02-15 Thread 'Terry Brown' via leo-editor
I think as a general rule with os.chdir()/os.getcwd() in Python apps. you can't assume its value, it's a single piece of state shared across the entire app. and all libraries, so really the best thing to do is not use it or rely on it. Your result is not surprising, Leo is setting it between

Re: Next-gen edit pane enabling org-mode and jupyter like experiences, and much more

2017-02-10 Thread 'Terry Brown' via leo-editor
Thanks for these thoughts. It might be possible to wrap 3-5 of the new editor panes in a vertical scrolling view such that they appear to be an endless series... interesting thought. Not sure if you use Windows or Unix, but for the latter the leoscreen plugin offers quite good integration with

Re: Warning: imp.reload hurts super and TDD

2017-02-10 Thread 'Terry Brown' via leo-editor
on. This could be as important a turning point for Leo as any, and would certainly align Leo in a completely forward facing direction, which I know is where you'd like to take Leo. On Thursday, February 9, 2017 at 2:29:35 PM UTC-5, Edward K. Ream wrote: On Thu, Feb 9, 2017 at 9:39 AM, 'Terry

Re: Warning: imp.reload hurts super and TDD

2017-02-09 Thread 'Terry Brown' via leo-editor
Ha, snap - I just ran into the the same issue with VR-4.  Initially using reload for faster development, then in the way the core module loads the view modules.  imp.load_module also acts as a reload.  Using reload for dev. aside, my problem was descending the markdown view module from the html

Re: using @first and not getting expected results

2017-02-07 Thread 'Terry Brown' via leo-editor
> is the #@@first supposed to be blank? Thanks for the workaround but yes it is > counterintuitive. It seems to me that having @first is the out of sequence > way of putting in first lines. Should I file a bug report? I think it's working as intended - not sure what the docs. say but my

Re: ENB: urls and pictures in the body pane

2017-02-05 Thread 'Terry Brown' via leo-editor
On Sun, 5 Feb 2017 02:16:15 -0800 (PST) "Edward K. Ream" wrote: > 1. I am thinking that what we really want is your (Terry's) new VR4 > widget, or whatever you call it. > > Do I remember correctly that this pane would allow both rendered and > "raw" views of text.  If so,

Re: ENB: urls and pictures in the body pane

2017-02-04 Thread 'Terry Brown' via leo-editor
On Sat, 4 Feb 2017 08:42:08 -0800 (PST) "Edward K. Ream" wrote: > Imo, images in the body pane are an essential ingredient for > emulating pyzo, org-mode or Jupyter cells. They are too important, > and way too cool, to forego. Not sure about pyzo and org-mode, but does

Re: ENB: urls and pictures in the body pane

2017-02-04 Thread 'Terry Brown' via leo-editor
On Sat, 4 Feb 2017 04:46:00 -0800 (PST) "Edward K. Ream" wrote: > On Saturday, February 4, 2017 at 6:37:11 AM UTC-6, Edward K. Ream > wrote: > I should emphasize that Leo reads and writes picture characters > without problem, because *picture characters are normal unicode

Re: ENB: urls and pictures in the body pane

2017-02-04 Thread 'Terry Brown' via leo-editor
On Sat, 4 Feb 2017 01:21:26 -0800 (PST) "Edward K. Ream" wrote: > The colorizer will replace the wikiview plugin. Issue #388 is moot, > and will be closed today. The wikiview plugin is deprecated, > effective immediately. In general I think this analysis is good, although

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

2017-02-03 Thread 'Terry Brown' via leo-editor
For collaborative code review, GitHub has line by line commenting capability per commit, I think. Cheers -Terry From: Eric S. Johansson To: leo-editor Sent: Friday, February 3, 2017 2:34 PM Subject: weaving in colorized html, group

Re: Is there a way to avoid conflicts with commit_timestamp.json?

2017-01-31 Thread 'Terry Brown' via leo-editor
The best way, although I think it requires action per clone of the repo., is to add commit_timestamp.json merge=ours in the .gitattributes file in the to level folder of the repo. (where .git lives, but not in .git). This just makes git use "ours" whenever there's a conflict.  It doesn't really

Re: The color branch has been merged into master

2017-01-30 Thread 'Terry Brown' via leo-editor
You can use your regular git repo. dir as long as you don't modify ...\leo\config\leoSettings.leo, which I don't imagine you do if you're using git. How it's supposed to work: set HOME=N:\scratch\delete\home make Windows think you're home folder's N:\scratch\delete\home, so it doesn't see any

Re: The color branch has been merged into master

2017-01-30 Thread 'Terry Brown' via leo-editor
Can you try running Leo like this: mkdir d:\scratch\delete\home set HOME=d:\scratch\delete\home python d:\local\leo-editor\launchLeo.py (with whatever path suits instead of d:\scratch\delete\home of course) that's how I launch when I want to see default behavior. For me for @language python

Re: The trunk should be stable again

2017-01-25 Thread 'Terry Brown' via leo-editor
Strange, not sure what's happening.  You could try: git checkout --theirs leo/test/unitTest.leo leo/core/leoColorizer.py leo/core/commit_timestamp.json then  git pull again, but that's a bit of a guess Cheers -Terry From: lewis To: leo-editor

Re: New Leo edit control

2017-01-24 Thread 'Terry Brown' via leo-editor
From: Edward K. Ream ​Good marketing.  And great work, Terry. Not sure how this will fit in with the pyzo widgets. Eventually I would like to use pyzo widgets so that we can have a border for use by the debugger.  Hmm. Iirc, pyzo uses scintilla, so maybe this is

Re: Python 3 -> 2 pickling problems with bigdash plugin

2017-01-24 Thread 'Terry Brown' via leo-editor
If rebuilding that DB was a major time consumption you wanted to avoid the Leo code could be modified to use two DB's, one for Py2 and one for Py3.  Beyond that, I don't think there's much alternative.  Don't imagine anyone wants to backport the new protocol to 2. Cheers -Terry From:

New Leo edit control

2017-01-23 Thread 'Terry Brown' via leo-editor
On Mon, 23 Jan 2017 13:40:48 -0600 "Edward K. Ream" wrote: > On Mon, Jan 23, 2017 at 11:42 AM, john lunzer > wrote: > > > Of the code editor's I've used code comparison is encouraged within > > a single running application, this allows for fancier things

Re: Cycling syntax highlighting

2017-01-21 Thread 'Terry Brown' via leo-editor
On Sat, 21 Jan 2017 15:42:48 -0600 "Edward K. Ream" <edream...@gmail.com> wrote: > On Sat, Jan 21, 2017 at 9:24 AM, 'Terry Brown' via leo-editor < > leo-editor@googlegroups.com> wrote: > > > (from a GitHub discussion) > > > > If you use >

Cycling syntax highlighting

2017-01-21 Thread 'Terry Brown' via leo-editor
(from a GitHub discussion) If you use @language html css javascript the node will be highlighted as html the button code below cycles the @language line: @language html css javascript -> @language javascript html css -> @language css javascript html -> @language html css

Re: OT: What's a raspberry pi good for?

2017-01-21 Thread 'Terry Brown' via leo-editor
On Sat, 21 Jan 2017 04:57:24 -0600 "Edward K. Ream" wrote: > On Fri, Jan 20, 2017 at 9:02 AM, Edward K. Ream > wrote: > > > I was given a raspberry pi 3 for Christmas. It's still unopened. > > Anyone know a real use for it? > > > > ​Thanks for the

Re: OT: What's a raspberry pi good for?

2017-01-20 Thread 'Terry Brown' via leo-editor
On Fri, 20 Jan 2017 07:02:43 -0800 (PST) "Edward K. Ream" wrote: > I was given a raspberry pi 3 for Christmas. It's still unopened. > Anyone know a real use for it? > > Edward I have two, I was using one as a media player on the TV, until the TV died and got replaced with

Re: Leo and fossil

2017-01-17 Thread 'Terry Brown' via leo-editor
On Tue, 17 Jan 2017 10:32:18 -0500 Offray Vladimir Luna Cárdenas <off...@riseup.net> wrote: > Hi, > > > On 17/01/17 09:19, 'Terry Brown' via leo-editor wrote: > > On Tue, 17 Jan 2017 01:09:47 -0800 (PST) > > vitalije <vitali...@gmail.com> wrote: > >

Re: Leo and fossil

2017-01-17 Thread 'Terry Brown' via leo-editor
On Tue, 17 Jan 2017 01:09:47 -0800 (PST) vitalije wrote: > Database is just a part of fossil. It isn't question of where Leo can > keep its data. It's about keeping a history of data. Fossil keeps (in > efficient way) all versions of the data, it can show the diffs in >

Re: Leo and fossil

2017-01-16 Thread 'Terry Brown' via leo-editor
On Mon, 16 Jan 2017 04:46:13 -0800 (PST) vitalije wrote: > On Monday, January 16, 2017 at 11:45:56 AM UTC+1, Edward K. Ream > wrote: > > > > So now I am more receptive to these ideas. I haven't followed the fossil discussion too closely, but I'd argue for, rather than

Re: Syntax coloring mystery solved!!

2017-01-15 Thread 'Terry Brown' via leo-editor
On Sun, 15 Jan 2017 06:18:53 -0500 "Edward K. Ream" wrote: > Terry, please test this branch for a day or so and report any > problems. I'll follow this with interest on my travels. If all seem > well, feel free to merge the branch. Initial look I'm not seeing anything but

Re: The fast-colorizing branch: a revolution in syntax coloring

2017-01-15 Thread 'Terry Brown' via leo-editor
On Sun, 15 Jan 2017 04:44:11 -0800 (PST) "Edward K. Ream" wrote: > On Sunday, January 15, 2017 at 6:53:32 AM UTC-5, Edward K. Ream wrote: > > *I have not tested this code with Python 2*. > > > > It turns out that colorizer.colorize *is* called, but only with > python 2.

Re: Syntax coloring mystery solved!!

2017-01-14 Thread 'Terry Brown' via leo-editor
On Sat, 14 Jan 2017 18:22:26 -0800 (PST) "Edward K. Ream" wrote: > Done, and pushed, I think. It's called fast-colorizing, rev > 2beba78b5. Let me know if the branch doesn't show up. This is my > first branch... Branch is there in the correct place. Safe travels. Cheers

Re: Syntax coloring mystery solved!!

2017-01-13 Thread 'Terry Brown' via leo-editor
Congrats on finding the culprit. Couple of things I'd like to see in Leo syntax highlighting, highlighting of trailing whitespace, and highlighting of  https://en.wikipedia.org/wiki/Non-breaking_space and also of tab (\t).  To be quite honest I've only made one foray into the syntax highlighting

Text wrapping in Leo

2017-01-12 Thread 'Terry Brown' via leo-editor
Here's the commit message for 05df9ac add @cmd justify-toggle-auto and @bool autojustify-on-at-start The @int autojustify behavior is very useful for writing prose (not code) when you want text wrapped at a particular column with a real newline, not just visually wrapped at the window edge. To be

Re: ENB: pyzo syntax coloring: progress and a big mystery

2017-01-12 Thread 'Terry Brown' via leo-editor
2. Are the proper QDocument and QTextEdit being used? The present prototyping code uses an instance of pyzo's CodeEditorBase as way of instantiating the pyzo's syntax colorer.  Maybe the highlighter must be attached to Leo's actual QTextEdit body widget. The pyzo colorizer uses QDocument to

Re: Leo's real weaknesses

2017-01-11 Thread 'Terry Brown' via leo-editor
From: Edward K. Ream <edream...@gmail.com> To: leo-editor <leo-editor@googlegroups.com> Sent: Wednesday, January 11, 2017 1:33 PM Subject: Re: Leo's real weaknesses On Wed, Jan 11, 2017 at 12:31 PM, 'Terry Brown' via leo-editor <leo-editor@googlegroups.com>

Re: Leo's real weaknesses

2017-01-11 Thread 'Terry Brown' via leo-editor
1. Using wrapper classes for text editing The present Qt gui is, iirc, Leo's fourth gui.  Two preceded Leo in python.  Previously, the python version of Leo used the much weaker Tk gui. The pyzo code shows just how big a price Leo has paid for the wrapper text abstraction layer.  Otoh,

Re: The design of Leo+Ipython+Jupyter+Lit-computing

2017-01-10 Thread 'Terry Brown' via leo-editor
Just for context, am I remembering correctly you wanted this for some sort of auto-save function, so an auto-save could happen without impacting the user's focus etc.?  Or if not that, at least some issue where you didn't want focus disrupted during a (timed?) save? Is there a GitHub issue for

Re: Hybrid @ type?

2017-01-04 Thread 'Terry Brown' via leo-editor
Here's one I was using with coffeescript / R code, can't find the one that was markdown focused.  Basically it updates all nodes to have their headline as the first line of the body like this:   ### updating / inserting as needed, also puts exactly two newlines at

Re: Hybrid @ type?

2017-01-04 Thread 'Terry Brown' via leo-editor
Something I've done as a workaround is a script button to push headlines into body text when using @clean. So for a node "Discussion", if the first line of the body starts with "# ", make it be "# Discussion", otherwise insert a line like that. Cheers -Terry From: Largo84

Re: Headline in body text?

2017-01-03 Thread 'Terry Brown' via leo-editor
On Tue, 3 Jan 2017 18:10:58 -0800 (PST) Ross Burnett wrote: > I am poking around in the LeoDocs.leo file, and the *Leo 5.4 /* *Bugs > fixed* children have some headlines that are longer than fit in the > default-sized outline window. For example: > Fixed #289: Leo crashes

Re: Bookmarks pane disappears

2016-12-26 Thread 'Terry Brown' via leo-editor
On Mon, 26 Dec 2016 19:30:11 -0600 "'Terry Brown' via leo-editor" <leo-editor@googlegroups.com> wrote: > But there's nothing that can be done to fix it retrospectively, Python > 2 can't depickle protocols higher than 2, But... we could write Python 3 code to recursively c

Re: Bookmarks pane disappears

2016-12-26 Thread 'Terry Brown' via leo-editor
On Mon, 26 Dec 2016 10:51:41 -0600 "'Terry Brown' via leo-editor" <leo-editor@googlegroups.com> wrote: [snip] > I think I need to poke around a bit more to confirm that it is changes > in the association of c.db with the same outline between versions of > Python th

Re: Bookmarks pane disappears

2016-12-26 Thread 'Terry Brown' via leo-editor
On Mon, 26 Dec 2016 05:40:47 -0800 (PST) lewis wrote: > It isn't enough to Alt-X: bookmarks-show. The bookmarks reload in new > pane but if you close the leo file, you are prompted to save, and the > bookmarks settings are not saved. > The file reloads as if no changes

Re: Bookmarks pane disappears

2016-12-25 Thread 'Terry Brown' via leo-editor
On Sun, 25 Dec 2016 13:55:56 -0800 (PST) lewis wrote: > Hi Terry, > > I recently switched from python 3.5.2/PyQt5 v5.7.0 to python > 2.7.13/PyQt4 and noticed that my bookmarks pane no longer displays. > Do I have to somehow reactivate the bookmark pane? Yes, if you

Re: Terry, how do you alias @ nodes in headlines?

2016-12-21 Thread 'Terry Brown' via leo-editor
On Wed, 21 Dec 2016 03:17:44 -0800 (PST) "Edward K. Ream" wrote: > Iirc, this is a plugin, but I can't seem to find it. This relates to > #351 , which I > have just closed. > > Edward Here's what I just posted as a

Re: Org Mode File - Node sorted by time stamp

2016-12-20 Thread 'Terry Brown' via leo-editor
Hi, You could avoid renaming the nodes with something like this, untested, just copy/pasting your code: def datesort(p):    datestamp='00'     if '<' and '>' in p.b: # check to see if there is at least one likely datestamp        i = p.b.find("<") #get the index of the beginning of

IGNORE: address test

2016-12-20 Thread 'Terry Brown' via leo-editor
Sorry about this test (which your supposed to be ignoring ;-) - trying to get my email address to show up on posts to this list so it my posts are like everyone else's and I don't get Cc'ed on replies all the time. I've looked for the setting causing this behavior before, and failed to find it.

Re: Backlink plugin questions

2016-12-20 Thread 'Terry Brown' via leo-editor
Try selecting a node in the graph you want open at startup, and run  graph-toggle-autoload, I think that will load all the explicitly (i.e. backlinks, not just Leo tree relationship) linked nodes in that graph on startup.  You can have multiple unconnected graphs in an outline, this only loads

Re: Org Mode File - Node sorted by time stamp

2016-12-20 Thread 'Terry Brown' via leo-editor
Ok, I haven't used org mode import. Seems like you wouldn't want the timestamps in the header, all you'd see in the tree view would be the timestamps. Two possible approaches:  - write a small piece of code to sort the nodes based on the timestamps in the body content. - import the org file

Re: Backlink plugin questions

2016-12-20 Thread 'Terry Brown' via leo-editor
I think all the things you pointed out are fixed in https://github.com/leo-editor/leo-editor/commit/bf397a6e let me know if that seem to be the case, or not. Cheers -Terry From: Largo84 To: leo-editor Sent: Tuesday, December 20, 2016

Re: Org Mode File - Node sorted by time stamp

2016-12-20 Thread 'Terry Brown' via leo-editor
Depends what you mean by timestamps.  If you mean a piece of text in the header, one of the Outline -> Sort commands should work. If you mean sort by the internal "gnx" ID attribute of the nodes, which contains timestamp information, I don't think there's a command to actually re-order nodes on

Re: Backlink plugin questions

2016-12-20 Thread 'Terry Brown' via leo-editor
On Tue, 20 Dec 2016 02:04:53 -0800 (PST) Largo84 wrote: > 1) I am using the backlink plugin more now and find that if I create > links between nodes, the .leo file is not marked 'dirty', so the > links don't survive if I close the file and reopen (unless I > explicitly save

Re: leo stalling for long periods

2016-12-16 Thread 'Terry Brown' via leo-editor
Sounds like a challenge, cross platform wise etc. A unix command like `df -l` (disk free local) seems to know. But there are so many ways non-local files can be mounted, sshfs, Windows shares, etc. Cheers -Terry From: Edward K. Ream To: leo-editor

Re: leo stalling for long periods

2016-12-14 Thread 'Terry Brown' via leo-editor
Looking around a bit more, looks like you can disable those file checks with @bool check_for_changed_external_files = False in @settings, I see I have that set to False on the machine where the checkswere causing trouble for me, try that and see if it helps. Cheers -Terry From: Curtis

Re: leo stalling for long periods

2016-12-14 Thread 'Terry Brown' via leo-editor
If the nodes are small and it worked before, it's probably not size related - I was thinking of syntax highlighting, but that's probably not it. Are any of the files you're working with non-local, i.e. on network file systems?  I've had trouble with that, and I think Leo started scanning loaded

Re: Theme Problems

2016-12-13 Thread 'Terry Brown' via leo-editor
You're right, themes seem to have been completely nerfed. ekr_dark_theme has a @data node, but it doesn't seem to work. At one point there was infrastructure to build the @data node from a Leonine tree outline of the theme. I'll try and have a look at it. Cheers -Terry On Tue, 13 Dec 2016

Re: leo stalling for long periods

2016-12-13 Thread 'Terry Brown' via leo-editor
On Mon, 12 Dec 2016 10:56:28 -0800 (PST) Curtis Carlsen wrote: > I downloaded the new code base to try out the new importers. (Leo > 5.4, december 8th) > > I am seeing extended stalling of different parts of the program, > where everything freezes and the program does

Re: Is it possible to suppress a section reference?

2016-12-09 Thread 'Terry Brown' via leo-editor
echo >> out.txt <> out.txt both untested guesses. Cheers -Terry From: Phil To: leo-editor Sent: Friday, December 9, 2016 11:35 AM Subject: Is it possible to suppress a section reference? I have a shell script that contains the

Re: Traveling to Florida

2016-12-09 Thread 'Terry Brown' via leo-editor
Have a great trip, heading for daytime highs in the 20s C / 70s F, leaving behind highs of -10 C / 10 F, can't imagine why you do it :-) Cheers -Terry From: Edward K. Ream To: leo-editor Sent: Thursday, December 8, 2016 5:37 PM

Re: Exception running Markdown_Importer

2016-12-09 Thread 'Terry Brown' via leo-editor
Just an observation, I'm using markdown quite a bit at the moment and not seeing that problem with Leo 5.4, build 20161208140632, Thu, Dec 08, 2016  2:06:32 PM Git repo info: branch = master, commit = 91bb3a5c8ef7Python 2.7.5, PyQt version 4.8.5Windows 7 AMD64 (build 6.1.7601) SP1 so you must be

Re: is there a command to turn off visual display of changes and then turn them back on?

2016-12-08 Thread 'Terry Brown' via leo-editor
My guess is using position methods is the way to go(*).  I think there's something about the way people come to Leo scripting that leads them down the  c.k.simulateCommand path, but I'm not really sure that's intentionally.  My feeling is that c.k.simulateCommand is best for occasional limited

Re: --diff: Leo as an external git diff

2016-12-07 Thread 'Terry Brown' via leo-editor
Check out Meld (http://meldmerge.org/) as well, it's pretty good.  Side by side text view. Cheers -Terry From: Edward K. Ream To: leo-editor Sent: Wednesday, December 7, 2016 10:33 AM Subject: Re: --diff: Leo as an external git diff

Clones - what are they good for?

2016-12-06 Thread 'Terry Brown' via leo-editor
(How I feel about clones, YMMV) Clones are really really good for creating task specific views of code, by gathering together all the nodes relevant to a particular development task, so you don't have to constantly scroll up and down the outline to get to the relevant pieces.  "Code" could be a

Re: uA's as OrderedDict

2016-12-02 Thread 'Terry Brown' via leo-editor
On Fri, 2 Dec 2016 05:04:55 -0800 (PST) Josef wrote: > On second thought, I realize, only the inner dict needs to be an > OrderedDict, and it is the plugin itself which is responsible for > that - so no need to change the uA implementation. Do you just want the plugin to

Re: where re-define default color? [was] how to setup Leo cursor size and highlight currently line?

2016-11-28 Thread 'Terry Brown' via leo-editor
Try these settings: @color undefined_section_name_color = orange @color section_name_brackets_color = orange @bool underline_undefined_section_names = False Cheers -Terry From: Zoom.Quiet To: leo-editor@googlegroups.com Sent: Monday, November 28, 2016 1:56 PM

  1   2   3   4   5   6   7   8   >