HaikuArchives / Pe

Pe is a programmer's editor for Haiku
Other
41 stars 25 forks source link

Request: Option for line numbers on left margin #74

Open rjzak opened 2 years ago

rjzak commented 2 years ago

Lots of text editors and IDEs show the line numbers to the left of the text being viewed. I know that the current line is shown in the status bar, but I'd find it more helpful to be able to see it to the left.

raweden commented 3 months ago

I've been experimenting with adding support for this: Pe_with_lineno

But since everything related to rendering code-editing is implemented in the PText class it becomes really awkward to manage two coordinate spaces within the same view. If this feature would be of interest for the repository owner and contributors I would suggest to split-up the implementation of PText class into:

Also thinking of implementing support for folding text ranges and other controls that could be put in the line-no view such as decorators for breakpoints, lines with warning & errors.