Files
zed/crates
Marco Munizaga 14ffd7b53f editor: Implement Go to next/prev Document Highlight (#35994)
Closes #21193
Closes #14703 

Having the ability to navigate directly to the next
symbolHighlight/reference lets you follow the data flow of a variable.
If you highlight the function itself (depending on the LSP), you can
also navigate to all returns.

Note that this is a different feature from navigating to the next match,
as that is not language-context aware. For example, if you have a var
named foo it would also navigate to an unrelated variable fooBar.

Here's how this patch works:

- The editor struct has a background_highlights.
- Collect all highlights with the keys [DocumentHighlightRead,
DocumentHighlightWrite]
- Depending on the direction, move the cursor to the next or previous
highlight relative to the current position.

Release Notes:

- Added `editor::GoToNextDocumentHighlight` and
`editor::GoToPreviousDocumentHighlight` to navigate to the next LSP
document highlight. Useful for navigating to the next usage of a certain
symbol.
2025-09-09 18:38:38 +00:00
..
2025-09-03 22:10:14 +00:00
2025-08-13 13:25:52 -06:00
2025-09-08 21:53:17 -06:00
2025-09-08 21:53:17 -06:00
2025-09-08 21:53:17 -06:00
2025-09-08 21:53:17 -06:00
2025-04-02 13:26:34 -07:00
2025-09-03 22:10:14 +00:00
2025-09-06 00:27:14 +02:00
2025-09-09 18:16:29 +00:00
2025-08-19 20:33:44 +00:00
2025-07-17 14:25:55 +00:00
2025-07-08 14:34:57 +00:00
2025-09-08 21:53:17 -06:00
2025-09-08 21:53:17 -06:00
2025-09-08 14:19:41 -04:00
2025-09-08 21:53:17 -06:00
2025-04-02 13:26:34 -07:00
2025-09-08 21:53:17 -06:00