Goto Script query

2017-01-12 Thread lewis
In the IconBar hover over a [Global Script button], right-click, select Goto Script. If the file is currently open, then the cursor switches to the file and lands at the correct node in the @button list. However if If the file is NOT currently open, then Leo opens the file, the cursor doesn't la

ENB: pyzo syntax coloring: progress and a big mystery

2017-01-12 Thread Edward K. Ream
Rev fbe428c shows the results of recent experiments using pyzo for syntax coloring in Leo. You could call this an Engineering Notebook post. You could also say that this discussion should be in #365 , but I wanted to make this discussion mo

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

2017-01-12 Thread Edward K. Ream
On Thursday, January 12, 2017 at 9:05:03 AM UTC-5, Edward K. Ream wrote: > 1. How many times does PyzoHighlighter.highlightBlock get called? Adding a counter shows that this method is called once per line of the input file, as expected. So this is not the culprit. There is another way forward.

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 d

Re: Switching focus to Leo via Alt-TAB sometimes very slow (W7)?

2017-01-12 Thread jkn
Hello Edward On Wednesday, January 11, 2017 at 7:27:04 AM UTC, Edward K. Ream wrote: > > > On Monday, January 9, 2017 at 6:24:52 AM UTC-5, jkn wrote: > > On the W7 machine, I notice that sometimes, when I ALT-TAB to Leo, there >> is a substantial delay (1 to several seconds) after releasing the A

Re: Switching focus to Leo via Alt-TAB sometimes very slow (W7)?

2017-01-12 Thread Mike Hodson
On Thu, Jan 12, 2017 at 8:28 AM, jkn wrote: > My apologies - upgrating to a recent version of Leo does indeed seem to > make things a lot snappier. > > I was thinking that it was a Qt or interactional issue, rather than one > just with Leo itself. I was also under the impression that it had been

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 Edward K. Ream
On Thu, Jan 12, 2017 at 10:13 AM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: ​> ​ Can you check that the cache is being hit, by reporting / counting hits? If it's never being used, or being asked to cache the same values repeatedly, then some communication issue must be eff

Re: Goto Script query

2017-01-12 Thread Edward K. Ream
On Thu, Jan 12, 2017 at 8:48 AM, lewis wrote: > In the IconBar hover over a [Global Script button], right-click, select > Goto Script. > If the file is currently open, then the cursor switches to the file and > lands at the correct node in the @button list. > However if If the file is NOT current

Re: Text wrapping in Leo

2017-01-12 Thread Edward K. Ream
On Thu, Jan 12, 2017 at 10:41 AM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > 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 wan

Re: Improving Leo using pyzo code

2017-01-12 Thread john lunzer
Happy to point somebody in the direction of Flexx. It is an amazing piece of software. I am very excited for it. I believe that it too (along with parts of Pyzo) has a future with Leo some day. On Wednesday, January 11, 2017 at 10:21:37 PM UTC-5, Satish Goda wrote: > > I installed Flexx yesterda

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

2017-01-12 Thread john lunzer
If you think you've hit a wall. I would not hesitate to contact Almar, he has been extremely responsive to my questions in the past. On Thursday, January 12, 2017 at 11:39:26 AM UTC-5, Edward K. Ream wrote: > > On Thu, Jan 12, 2017 at 10:13 AM, 'Terry Brown' via leo-editor < > leo-e...@googlegrou

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

2017-01-12 Thread Edward K. Ream
On Thu, Jan 12, 2017 at 12:37 PM, john lunzer wrote: > If you think you've hit a wall. I would not hesitate to contact Almar, he > has been extremely responsive to my questions in the past. > ​Thanks for this. It's good to know. But I haven't done my homework yet, and I certainly am not out of

Re: Goto Script query

2017-01-12 Thread lewis
Issue 367 raised -- 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