ZIm/docs/src
Smit Barmase f737c4d01e
editor: Improve selection highlights speed (#29097)
Before, we used to debounce selection highlight because it needed to
search the whole file to show gutter line highlights, etc. This
experience felt extremely laggy.

This PR introduces a new approach where:
1. We query only visible rows without debounce. The search function
itself is async and runs in a background thread, so it's not blocking
anything. With no debounce and such a small search space, highlights
feel realtime.
2. In parallel, we also query the whole file (still debounced, like
before). Once this query resolves, it updates highlights across the
file, making scrollbar markers visible.

This hybrid way gives the feeling of realtime, while keeping the same
functionality.


https://github.com/user-attachments/assets/432b65f1-89d2-4658-ad5e-048921b06a23

P.S. I have removed the user setting for custom debounce delay, because
(one) now it doesn't really make sense to configure that, and (two) the
whole logic is based on the assumption that the fast query will resolve
before the debounced query. A static debounce time makes sure of that.
Configuring it might lead to cases where the fast query resolves after
the debounced query, and we end up only seeing visible viewport
highlights.

Release Notes:

- Improved selection highlight speed.
2025-04-20 01:20:36 +05:30
..
assistant docs: Add more examples of existing MCP extensions (#29090) 2025-04-19 12:09:57 -03:00
development Fix formatting in linux.md (#26598) 2025-03-12 16:33:11 -04:00
extensions docs: Fix rendering of keybind in languages.md (#27217) 2025-03-20 20:25:54 +00:00
languages docs: Update Rails test task to run using name (#28574) 2025-04-15 21:39:32 -04:00
accounts.md docs: Add documentation about signing in to Zed (#29054) 2025-04-18 17:09:23 +00:00
additional-learning-materials.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
channels.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
collaboration.md Clarify guests vs collaborators in project sharing docs (#22945) 2025-01-10 15:42:52 +00:00
completions.md docs: Add improvements to the Completions page (#27612) 2025-03-27 14:18:29 -03:00
configuring-languages.md docs: Update outdated keybind for opening extensions page (#28443) 2025-04-09 13:46:12 -04:00
configuring-zed.md editor: Improve selection highlights speed (#29097) 2025-04-20 01:20:36 +05:30
development.md Use the development credentials provider in development by default (#25273) 2025-02-20 19:07:16 +00:00
environment.md docs: Fix typo in environment documentation (#19164) 2024-10-13 16:47:09 -04:00
extensions.md docs: Add docs for icon theme extensions (#24155) 2025-02-04 00:23:33 +00:00
fonts.md Fix casing of "macOS" (#17040) 2024-08-28 19:10:49 -04:00
getting-started.md docs: Improve the Getting Started page (#22545) 2025-01-01 17:19:10 +00:00
git.md docs: Fix broken links (#29042) 2025-04-18 09:38:40 -04:00
globs.md Glob documentation (#18789) 2024-10-15 17:21:04 -04:00
icon-themes.md icon_theme_selector: Add footer and related docs (#25042) 2025-02-20 00:02:24 +00:00
key-bindings.md docs: Use inline code for action (#28907) 2025-04-17 02:02:15 +05:30
languages.md docs: Add Yara language extension (#28693) 2025-04-14 12:40:13 -04:00
linux.md docs: Add troubleshooting guide for Linux audio issues (#28803) 2025-04-15 18:45:25 +00:00
model-improvement.md Debugger implementation (#13433) 2025-03-18 12:55:25 -04:00
multibuffers.md Fix a typo in the multi buffers documentation (#18535) 2024-09-30 15:28:46 +03:00
outline-panel.md docs: Add tweaks to the outline panel page (#18697) 2024-10-03 12:27:42 -03:00
remote-development.md Remove references to SSH remoting beta (#28399) 2025-04-09 03:26:22 +00:00
repl.md docs: Add tweaks to the REPL page (#18000) 2024-09-18 07:34:39 -03:00
snippets.md docs: Add better snippets documentation (#26853) 2025-03-19 18:05:05 +01:00
SUMMARY.md docs: Add documentation about signing in to Zed (#29054) 2025-04-18 17:09:23 +00:00
system-requirements.md Use proper codenames for macOS versions (#28766) 2025-04-15 14:18:40 +00:00
tasks.md docs: Fix name for zed: open project tasks command (#28578) 2025-04-11 09:31:58 -06:00
telemetry.md Stop sending data to Clickhouse (#21763) 2024-12-10 08:47:29 -07:00
themes.md docs: Example theme_overrides for docstrings as italic (#19694) 2024-10-24 14:37:57 -04:00
vim.md docs: Update vim features (#28360) 2025-04-09 16:30:50 -04:00
windows.md docs: Fix #windows Discord channel name (#27659) 2025-03-28 08:41:07 -04:00
workspace-persistence.md feedback: Update issue template URL (#28790) 2025-04-15 21:36:30 -04:00