Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make horizontal space of "Line Numbers" smaller #3837

Closed
hsvfan-jan opened this issue Oct 14, 2024 · 7 comments
Closed

Make horizontal space of "Line Numbers" smaller #3837

hsvfan-jan opened this issue Oct 14, 2024 · 7 comments
Labels

Comments

@hsvfan-jan
Copy link

hsvfan-jan commented Oct 14, 2024

Describe the feature and the current behavior/state

Currently, the Line Numbers columns are pretty wide and take away too much horizontal space.
Screenshot 2024-10-14 at 16 50 19 Screenshot 2024-10-14 at 17 21 10

Especially on a laptop in the 10"-14" screen size it'd be great to not waste any space. I think a few pixels would be enough.
It's currently about 3x the size of the line numbers' width in my example with the three-digit-numbers but about 5x the size for one- or two-digit numbers.
edit: I realize on the right hand side of the numbers there's the arrow to collapse or open a section, but on the left there's still a lot of unused space.
The freed up space could be used to have the PDF view larger or simply have more characters in a line before the end on the right hand side.

Who will benefit with this feature?

Everyone without a ultra widescreen monitor or just someone who likes to have a bit more horizontal space.

@octaeder
Copy link
Contributor

octaeder commented Oct 14, 2024

When I remember well minimum width for the numbers is 3 digits in all cases. For documents with more than 999 lines the number of digits for the max. line number is used. The rest to the left should be for labels bookmarks (s. mouse cursor change to a pointing hand). Deactivating Adv. Edit option "Show Line Change State" would gain some pixels.

@hsvfan-jan
Copy link
Author

hsvfan-jan commented Oct 14, 2024

With your comment in #3709 I see you mean bookmarks, not labels. They do indeed show up there, didn't know that.
Perhaps an option to collapse the width if no bookmark is used or display e.g. a red (colour of the current bookmark symbol) line, similar to how new lines are marked with a green line on the right? That'd be a nice "compact" solution imo
Screenshot 2024-10-14 at 17 44 42
(here a coloured line instead of the full space for the icon)

@octaeder
Copy link
Contributor

the marks column to the left of the line numbers is used for bookmarks and marks of other kind: BadBox, Warning, and Error image

You may also deactivate Editor option Folding to remove the folding column to the right of the line numbers.

@sunderme
Copy link
Member

You can also turn-off line numbers, so that would help.
I have little intention to tweak settings here, mainly because I don't like horizontal shifts depending on the number of lines.
If you add the 10th line, the text width changes, again with 100th line.
1000th is probably seldom enough.

@octaeder
Copy link
Contributor

other options: reduce app text size or editor text size
Have you removed left side pane?
Have you removed the Central secondary toolbar?
image

@hsvfan-jan
Copy link
Author

hsvfan-jan commented Oct 18, 2024

You may also deactivate Editor option Folding to remove the folding column to the right of the line numbers.
Have you removed the Central secondary toolbar?

Didn't know these two were possible (or not how), thanks, that helped!

the marks column to the left of the line numbers is used for bookmarks and marks of other kind: BadBox, Warning, and Error image

Those symbols only pop up when I click in the log on the warning/bad box/..., is that normal? (I hope you don't mind all the questions if this isn't the right space for it)

You can also turn-off line numbers, so that would help.

I turned them on, default was one of the other settings iirc. The lines are helpful when checking errors and such so I'd rather have them stay on.

I have little intention to tweak settings here

I see, figured that! Thanks you two for pointing out so many other options, though.

@sunderme
Copy link
Member

As there are no plans to change anything, I close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants