ZIm/docs/src
Andrew Lygin f3192b6fa6
Fix scrollbar marker settings (#10530)
Zed displays scrollbar markers of three types: git diffs, background
highlights and diagnostics. At the moment, the "background highlights"
markers are displayed for all the supported highlights:

- Occurences of the symbol under cursor.
- Search results.
- Scope boundaries (only works when a symbol is selected).
- Active hover popover position.

They all use the same color, which leads to confusing results. For
instance, in the following case I expect to see markers for the
`new_anchor` occurences in lines 43 and 47. But besides them, there're
also scope-markers for `ScrollAnchor` initialization block in lines 46
and 49, which makes me think that there're four places where
`new_anchor` appears.

<img width="740" alt="zed-scrollbar-markers"
src="https://github.com/zed-industries/zed/assets/2101250/78700e6b-fdd1-4c2f-beff-e564d8defc13">

Existing settings `selection` and `symbol_selection` in the `scrollbar`
section [don't work as
expected](https://github.com/zed-industries/zed/pull/10080#discussion_r1552325493),
which increases confusion.

This PR only leaves two types of bg-highlight-markers and provides
dedicated settings for them:

- Occurences of the symbol under cursor. Setting: `selected_symbol`,
default is `true`.
- Search results. Setting: `search_results`, default is `true`.

The `selection` and `symbol_selection` settings are not used anymore.

Release Notes:

- Breaking changes. Settings `selection` and `symbol_selection` in the
`scrollbar` section renamed to `search_results` and `selected_symbol`
respectively. Fixed the effect of these settings on which markers are
displayed on the scrollbar.

Optionally, include screenshots / media showcasing your addition that
can be included in the release notes.

- N/A

/cc @mrnugget
2024-04-16 09:21:22 +02:00
..
languages Document formatter: code_actions (#10157) 2024-04-04 14:12:28 +02:00
CODE_OF_CONDUCT.md Adjust heading levels in docs (#7163) 2024-01-31 12:34:31 -05:00
configuring_zed.md Fix scrollbar marker settings (#10530) 2024-04-16 09:21:22 +02:00
configuring_zed__configuring_vim.md vim: smartcase find option (#9033) 2024-03-07 19:44:20 -07:00
configuring_zed__key_bindings.md Add keyboard shortcut to suppress prompt while deleting files/dirs (#9452) 2024-03-18 11:43:43 -07:00
developing_zed__adding_languages.md Adjust heading levels in docs (#7163) 2024-01-31 12:34:31 -05:00
developing_zed__building_zed.md Windows: Add document (#8948) 2024-03-07 15:41:15 -08:00
developing_zed__building_zed_linux.md Make it (a tiny bit) easier to run your own collab (#9557) 2024-03-20 21:00:02 -06:00
developing_zed__building_zed_macos.md Update docs for building Zed (#8092) 2024-02-20 17:34:13 -05:00
developing_zed__building_zed_windows.md Update developing_zed__building_zed_windows.md (#9477) 2024-03-18 11:04:09 -07:00
developing_zed__debugging_crashes.md Add ./script/symbolicate (#8165) 2024-02-22 08:50:39 -07:00
developing_zed__local_collaboration.md Make it (a tiny bit) easier to run your own collab (#9557) 2024-03-20 21:00:02 -06:00
feedback.md Adjust heading levels in docs (#7163) 2024-01-31 12:34:31 -05:00
getting_started.md Docs: Made "Configuring Zed" a link (#8790) 2024-03-04 09:54:29 +01:00
SUMMARY.md docs: Use plain quotes for callouts (#9499) 2024-03-18 10:54:05 -04:00
system_requirements.md docs: Use plain quotes for callouts (#9499) 2024-03-18 10:54:05 -04:00
telemetry.md Remove datadog (#10133) 2024-04-03 11:35:23 -06:00