ZIm/crates/editor/src
Felipe a82f4857f4
Add settings to control gutter elements (#7665)
The current gutter was a bit too big for my taste, so I added some
settings to change which visual elements are shown, including being able
to hide the gutter completely.

This should help with the following issues: #4963, #4382, #7422

New settings:
```json5
"gutter": {
    "line_numbers": true, // Whether line numbers are shown
    "buttons": true // Whether the code action/folding buttons are shown
}
```

The existing `git.git_gutter` setting is also taken into account when
calculating the width of the gutter.

We could also separate the display of the code action and folding
buttons into separate settings, let me know if that is desirable.

## Screenshots:

- Everything on (`gutter.line_numbers`, `gutter.buttons`,
`git.git_gutter`):
<img width="434" alt="SCR-20240210-trfb"
src="https://github.com/zed-industries/zed/assets/17355488/bcc55311-6e1d-4c22-8c43-4f364637959b">

- Only line numbers and git gutter (`gutter.line_numbers`,
`git.git_gutter`):
<img width="406" alt="SCR-20240210-trhm"
src="https://github.com/zed-industries/zed/assets/17355488/0a0e074d-64d0-437c-851b-55560d5a6c6b">

- Only git gutter (`git.git_gutter`):
<img width="356" alt="SCR-20240210-trkb"
src="https://github.com/zed-industries/zed/assets/17355488/7ebdb38d-93a5-4e38-b008-beabf355510d">

- Only git gutter and buttons (`git.git_gutter`, `gutter.buttons`):
<img width="356" alt="SCR-20240210-txyo"
src="https://github.com/zed-industries/zed/assets/17355488/e2c92c05-cc30-43bc-9399-09ea5e376e1b">


- Nothing:
<img width="350" alt="SCR-20240210-trne"
src="https://github.com/zed-industries/zed/assets/17355488/e0cd301d-c3e0-4b31-ac69-997515928b5a">



## Release Notes:
- Added settings to control the display of gutter visual elements. `"gutter": {"line_numbers": true,    "code_actions": true,    "folds": true}` ([#8041](https://github.com/zed-industries/zed/issues/8041))  ([#7422](https://github.com/zed-industries/zed/issues/7422))
```

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2024-02-22 20:37:13 -07:00
..
display_map Add settings to control gutter elements (#7665) 2024-02-22 20:37:13 -07:00
git Permalink add Gitee host support (#7134) 2024-01-31 08:54:03 +01:00
scroll Links to channel notes (#7262) 2024-02-01 22:22:02 -07:00
test Vim: enable sending multiple keystrokes from custom keybinding (#7965) 2024-02-20 15:01:45 -07:00
actions.rs Editor: support go to implementation (#7890) 2024-02-22 14:22:04 +01:00
blink_manager.rs Remove 2 suffix for editor 2024-01-03 10:58:57 -08:00
debounced_delay.rs Add debounce for re-querying completion documentation 2024-01-31 09:50:26 -05:00
display_map.rs Add documentation to many core editor types (#7919) 2024-02-17 09:03:05 -07:00
editor.rs Add settings to control gutter elements (#7665) 2024-02-22 20:37:13 -07:00
editor_settings.rs Add settings to control gutter elements (#7665) 2024-02-22 20:37:13 -07:00
editor_tests.rs Add unique lines command (#7526) 2024-02-08 17:13:15 +02:00
element.rs Add settings to control gutter elements (#7665) 2024-02-22 20:37:13 -07:00
git.rs Add ability to copy a permalink to a line (#7119) 2024-01-30 19:20:15 -05:00
highlight_matching_bracket.rs Add logic for managing language and theme extensions (#7467) 2024-02-07 15:14:50 -05:00
hover_links.rs Editor: tweak label for "Go to implementation" tabs (#8201) 2024-02-22 17:06:25 +01:00
hover_popover.rs Fix panic when loading hover state. (#7861) 2024-02-15 14:20:10 -07:00
inlay_hint_cache.rs Add logic for managing language and theme extensions (#7467) 2024-02-07 15:14:50 -05:00
items.rs Add "code_actions_on_format" (#7860) 2024-02-15 14:19:57 -07:00
mouse_context_menu.rs Editor: support go to implementation (#7890) 2024-02-22 14:22:04 +01:00
movement.rs vim: Implement Go To Previous Word End (#7505) 2024-02-15 16:15:31 -07:00
persistence.rs wip 2023-01-25 11:32:19 -08:00
rust_analyzer_ext.rs Remove 2 suffix for editor 2024-01-03 10:58:57 -08:00
scroll.rs vim hml (#7298) 2024-02-02 19:24:36 -07:00
selections_collection.rs Add documentation to many core editor types (#7919) 2024-02-17 09:03:05 -07:00
test.rs Remove some todo!'s 2024-01-09 11:36:36 +02:00