zed/docs/src
Andrew Lygin 1aa9c868d4
Scrollbar markers for cursors (#10816)
How it looks:

https://github.com/zed-industries/zed/assets/2101250/f564111c-1019-4442-b8a6-de338e12b12e

This PR adds cursor markers to the scrollbar. They work similar to
VSCode:

1. A cursor marker takes the whole scrollbar width.
2. It's always 2px high.
3. It uses the player's `cursor` color, so it may be helpful in the
collaboration mode.

There's a setting to switch cursor markers on/off:

```json
{
  "scrollbar": {
    "cursors": true
  }
}
```

Implementation details:

- Unlike other markers, cursor markers are displayed synchronously.
Otherwise they don't feel smooth and sometimes freez on prolonged
up/down navigation.
- Cursor markers are automatically switched off when it's more than 100
of them.
- The minimum (non-cursor) marker height is now 5px. It allows the user
to see other markers under the cursor marker.
- The way the minimum height is imposed on markers has changed a bit to
keep consistency between markers of different types.
- Selected symbol markers use less vibrant color (`info` faded out a
little).

Release Notes:

- Added displaying of cursor markers in the scrollbar. They can be
switched on/off by the `scrollbar.cursors` setting.
2024-04-27 02:26:42 +03: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 Scrollbar markers for cursors (#10816) 2024-04-27 02:26:42 +03: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 docs: Install Windows 10/11 SDK with VS installation (#10550) 2024-04-18 14:42:20 -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
developing_zed__releases.md docs: Add note about manually using the bump_patch_version action (#10862) 2024-04-22 15:58:25 -04: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