ZIm/crates/text/src
Kirill Bulatov da2bd4b8e9
Rework go to line infrastructure (#23654)
Closes https://github.com/zed-industries/zed/issues/12024


https://github.com/user-attachments/assets/60ea3dbd-b594-4bf5-a44d-4bff925b815f

* Fixes incorrect line selection for certain corner cases

Before:

<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/35aaee6c-c120-4bf1-9355-448a29d1b9b5"
/>

After:

<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/abd97339-4594-4e8e-8605-50d74581ae86"
/>


* Reworks https://github.com/zed-industries/zed/pull/16420 to display
selection length with less performance overhead.
Improves the performance more, doing a single selections loop instead of
two.

* Fixes incorrect caret position display when text contains UTF-8 chars
with size > 1
Also fixes tooltop values for this case

* Fixes go to line to treat UTF-8 chars with size > 1 properly when
navigating

* Adds a way to fill go to line text editor with its tooltip on `Tab`

Release Notes:

- Fixed incorrect UTF-8 characters handling in `GoToLine` and caret
position
2025-01-25 19:24:19 +00:00
..
anchor.rs Replace Default trait bound with a zero function on Summary/Dimension (#17975) 2024-09-17 19:43:59 -06:00
locator.rs Pass Summary::Context to Item::summarize (#18510) 2024-09-29 10:30:48 -06:00
network.rs Lay the groundwork for collaborating on assistant panel (#13991) 2024-07-10 17:36:22 +02:00
operation_queue.rs Pass Summary::Context to Item::summarize (#18510) 2024-09-29 10:30:48 -06:00
patch.rs Rework diff rendering to allow putting the cursor into deleted text, soft-wrapping and scrolling deleted text correctly (#22994) 2025-01-24 14:18:22 -07:00
selection.rs Implement Helix Support (WIP) (#19175) 2024-12-03 23:19:52 -07:00
subscription.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
tests.rs Rework go to line infrastructure (#23654) 2025-01-25 19:24:19 +00:00
text.rs Rework diff rendering to allow putting the cursor into deleted text, soft-wrapping and scrolling deleted text correctly (#22994) 2025-01-24 14:18:22 -07:00
undo_map.rs Pass Summary::Context to Item::summarize (#18510) 2024-09-29 10:30:48 -06:00