Closed dannyow closed 7 months ago
I made a quick and dirty prototype, with using only last two digits and shifting the baseline - just to see how it looks.
Results:
for 3-digits
for 4-digits
Not perfect, but usable.
@1024jp WDYT?
Actually, this part has been on my mind for a long time, but I've been putting it off. Thank you for the feedback. After your post, I reviewed again the code around the line number view and feel I also should refactor there a bit. I'll make it somehow better in the next version.
Your idea to display only the last digits is interesting (maybe the last one digit is enough, though). I'll also consider whether there is a better way. Let me think.
Still not perfect, but I suppose now it becomes better.
https://github.com/coteditor/CotEditor/assets/1165044/a1d2fea5-33dc-47c5-a059-b0185bd75949
Looks good enough :) I mean there is still the edge case when you pointing out the line number next to the one already visible (eg. 5654)
Description
Drawing every 5th number works well till we hit 100th line, after line numbers are too close to each other to be readable.
It's ok here:
Here is getting messy:
Possible solutions:
To Reproduce
Open document with vertical orientation...
Expected behavior
No response
CotEditor version
4.7.4, 4.8.0-beta.3
macOS version
13.6.4, 14.4
Additional context
No response