ZIm/assets
Max Mynter 7d5a5d0984
Make minimum width for line numbers in gutter configurable (#31959)
Closes #7334

# Changes
This PR makes the minimum width allocated for line numbers in the side
gutter configurable in units of character width via the
`"line_number_base_width"` attribute in `gutter` settings. Set the
previously hard coded value of `4` as default.

Together with other settings (`"folds"`, `"breakpoints"`,...) this gives
the user control over the gutter width.

If the number of lines exceedes the base width, the number of digits in
the largest line number is chosen instead. This is consistent with
previous behaviour.

Screenshot for reference:
<img width="1104" alt="Screenshot 2025-06-03 at 12 15 29"
src="https://github.com/user-attachments/assets/77c869ad-164b-4b74-8e39-8be43d740ad4"
/>


P.S.: This is my first time contributing to zed (yay!🎉). Let me know if
i'm missing something.

Release Notes:

- Make minimum line number width in gutter configurable
2025-06-11 10:00:50 +00:00
..
fonts Fix font selection on macOS (#13615) 2024-06-27 17:02:45 -06:00
icons debugger: Add 'open docs' button in the panel and mention onboarding in the docs (#32496) 2025-06-10 21:56:29 +00:00
images Add Zed Pro Trial Upsell (#29938) 2025-05-05 18:46:54 -04:00
keymaps Add more keymaps from helix (#32453) 2025-06-11 02:10:43 +00:00
prompts assistant: Partial fix for HTML entities in tools params (#32148) 2025-06-05 10:36:55 +00:00
settings Make minimum width for line numbers in gutter configurable (#31959) 2025-06-11 10:00:50 +00:00
sounds agent: Add sound notification when done generating (#31472) 2025-05-26 21:20:41 -03:00
themes Refine styling of merge conflicts (#31012) 2025-06-09 19:03:19 +00:00