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" 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? Because http://py

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 wrote: > On Tue, 26 Aug 2014 05:04:59 -0700 (PDT) > "Edward K. Ream" wrote: > >> The only solution is to transliterate QSyntaxHighlighter into Python! > > Which part of the job is QSyntaxHighlighter doing? Working out how to > color t

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" 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 with the

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 wrote: > On Tue, 26 Aug 2014 07:33:49 -0700 (PDT) > "Edward K. Ream" wrote: > >> On Tuesday, August 26, 2014 7:04:59 AM UTC-5, Edward K. Ream wrote: >> >> > Before fixing

ENB: thinking through tab cycling and completion

2014-08-26 Thread Edward K. Ream
This is an Engineering Note Book post. Feel free to ignore. At present, tab-cycling is actively dangerous. It works most of the time, but when it fails it will have you execute an unexpected command. This is totally unacceptable. I know from experience that tweaking this kind of code just ma

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 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 > wrote: > > On Tue, 26 Aug 2014 07:33:

Re: ENB: thinking through tab cycling and completion

2014-08-26 Thread Edward K. Ream
On Tuesday, August 26, 2014 10:34:59 AM UTC-5, Edward K. Ream wrote: > Therefore, the essence of the problem is to determine whether or not tab cycling is in effect. I did not realize this when I first started this post :-) We can break the problem into: What starts tab cycling? What ends tab

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 litt