Making syntax coloring more responsive

2014-08-26 Thread Edward K. Ream
You could call this a response to bug 28: Leo hangs when a node with too large body is selected https://github.com/leo-editor/leo-editor/issues/28 In general, the strategy must be to accept a slightly slower overall rate of syntax coloring in return for what we hope will be far greater response

Re: Making syntax coloring more responsive

2014-08-26 Thread 'Terry Brown' via leo-editor
On Tue, 26 Aug 2014 05:04:59 -0700 (PDT) Edward K. Ream edream...@gmail.com wrote: The only solution is to transliterate QSyntaxHighlighter into Python! Which part of the job is QSyntaxHighlighter doing? Working out how to color the text, or applying the colors to the text in the QTextEditor?

Re: Making syntax coloring more responsive

2014-08-26 Thread Edward K. Ream
On Tue, Aug 26, 2014 at 8:33 AM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: On Tue, 26 Aug 2014 05:04:59 -0700 (PDT) Edward K. Ream edream...@gmail.com wrote: The only solution is to transliterate QSyntaxHighlighter into Python! Which part of the job is

Re: Making syntax coloring more responsive

2014-08-26 Thread Edward K. Ream
On Tuesday, August 26, 2014 7:04:59 AM UTC-5, Edward K. Ream wrote: Before fixing bug 28, I must fix some very serious problems with tab completion and the change command. Rev b3d404a fixes the problem with the change command. This bug basically ruined the change command. Am I the only one

Re: Making syntax coloring more responsive

2014-08-26 Thread 'Terry Brown' via leo-editor
On Tue, 26 Aug 2014 07:33:49 -0700 (PDT) Edward K. Ream edream...@gmail.com wrote: On Tuesday, August 26, 2014 7:04:59 AM UTC-5, Edward K. Ream wrote: Before fixing bug 28, I must fix some very serious problems with tab completion and the change command. Rev b3d404a fixes the problem

Re: Making syntax coloring more responsive

2014-08-26 Thread Kent Tenney
confession: I use the nav tab for searching, vim for replacing On Tue, Aug 26, 2014 at 9:43 AM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: On Tue, 26 Aug 2014 07:33:49 -0700 (PDT) Edward K. Ream edream...@gmail.com wrote: On Tuesday, August 26, 2014 7:04:59 AM UTC-5,

Re: Making syntax coloring more responsive

2014-08-26 Thread Fidel N
nav tab rules the searches for me too Kent, nothing to be ashamed of. On Tue, Aug 26, 2014 at 5:31 PM, Kent Tenney kten...@gmail.com wrote: confession: I use the nav tab for searching, vim for replacing On Tue, Aug 26, 2014 at 9:43 AM, 'Terry Brown' via leo-editor

Re: Making syntax coloring more responsive

2014-08-26 Thread Edward K. Ream
On Tuesday, August 26, 2014 7:04:59 AM UTC-5, Edward K. Ream wrote: The only solution is to transliterate QSyntaxHighlighter into Python! [The new code] is not connected *in any way* to Leo's actual code. It is now :-) The python_qsh switch at the start of qtGui.py determines whether to use

Re: Making syntax coloring more responsive

2014-08-26 Thread Edward K. Ream
On Tuesday, August 26, 2014 3:46:10 PM UTC-5, Edward K. Ream wrote: The PQSH class now controls Leo's syntax-coloring code *exactly* as QSH did/does... No coloring actually happens yet, but...it may happen this evening. BTW, the code keeps getting simpler. It's almost embarrassing how little