That's awesome Edward! Thank you for getting a jump start on this. I realized why I feel so attached to this feature. It is specifically because of line/word wrapping. With line numbers it is immediately obvious what makes up "one line" even if that line actually spans several lines.
I am grateful for your work on this and look forward to seeing it folded into Leo as a full feature! On Friday, April 3, 2015 at 11:07:47 AM UTC-4, Edward K. Ream wrote: > > > On Fri, Apr 3, 2015 at 8:18 AM, Edward K. Ream <[email protected] > <javascript:>> wrote: > > > On Fri, Apr 3, 2015 at 7:36 AM, john lunzer <[email protected] > <javascript:>> wrote: > > >> > That said, the subclassed QFrame class in the link > <https://john.nachtimwald.com/2009/08/15/qtextedit-with-line-numbers/> > from my previous post works with both QTextEdit and QTextBrowser > > > > Cool! I missed that link earlier.. > . > I'll play around with it asap. > > Rev 72d7740 contains my rewriting of the code. It's LineTextWidget class > in plugins/qt_text.py. This file is essentially part of Leo's core. > > The LineTextWidget class is *experimental*. It is used nowhere in Leo. > Otoh, it is "Leo ready". It passes pylint and imports Qt symbols from > leo.core.leoQt. I understand every line of the code, having simplified it > :-) > > The goal will be to fold the code into the LeoQTextBrowser class, defined > in the same file. This will not be trivial, but it should be possible. > > I won't do anything more until @nosent works as it used to do ;-) > > 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 from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
