I have the same question/concern as you, but I would take even the simple node only line numbers.
It looks like you can either roll your own or use QScintilla. QScintilla looks like a great option in the long run. *However*, in the short run I found this pure PyQt solution that seems like it would fit the bill without a complete overhaul and added dependencies: https://john.nachtimwald.com/2009/08/15/qtextedit-with-line-numbers/ I've tested this code and it does exactly what you'd expect. On Thursday, April 2, 2015 at 12:35:54 PM UTC-4, Largo84 wrote: > > I think that would be useful, but it might be somewhat problematic > considering which line number to display. Would it simply display the line > number for that node (pretty straightforward I would think)? Or suppose the > node is from an external file, would the line number correspond to the flat > file line number or the just node, or both? For me it would be nice to see > the flat file corresponding number as I might see if if viewed in an > external editor (I use Notepad++ which displays line numbers). It seems > that might be harder, but I don't know. > > Rob....... > > > > On Thursday, April 2, 2015 at 8:23:45 AM UTC-4, john lunzer wrote: >> >> I just want to float this and get a sense for what the level of effort >> would be to add left gutter line numbers to the body pane. >> >> It may sound minor but one of the features I miss the most in Leo is left >> gutter line numbers. I've done some searches on the group and it seems like >> the last time anyone mentioned line numbers in the body pane was back in >> 2010. >> >> Perhaps we can revisit this feature, it would be super awesome! >> > -- 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.
