editor: Add generic navigation overlays - #52630
ConradIrwin merged 13 commits into
Conversation
|
alexa, schedule a PR update on this for 2030 |
|
@GoldStrikeArch Does the inline version suffer from the problems described in the Helix PR? My inclination would be to only ship the "above" version for now. (We shouldn't have the display map learning about concepts like "BeamJump"). I'd expect this to be stored in the editor as a sorted Vec of |
The only remaining problem is the monospace vs proportional fonts. It was not solved in this PR, everything else (like the "soft-wrap" and editor-width changes) were solved in this PR
I agree, I thought about making those keys purely dynamic
We will lose those things then:
|
|
@ConradIrwin FYI:
So, IMO for the "Helix Amp Jump" feature it should be |
As a hx user - I'd prefer inlined hints for goto_word/similar because I'm already looking at the word I wanna jump to, so obscuring the text is really not an issue. On a related note, thank you for working on this. It's exciting this might land in zed soon-ish 🙂 |
d842521 to
6cd497e
Compare
|
@ConradIrwin Hi, as per our session I adjusted this implementation to be a "bare minimum" for the Helix Amp Jump, now it is around 400 lines of changes and less test cases, wdyt? |
Yes agree with this. I'm coming from flash.nvim/leap.nvim and overlaying the hints on the text is in fact less cognitive load and more user-friendly since I am usually staring right at the word I want to jump to so I don't have to shift my gaze to figure out the sequence of keys to jump to it. |
|
Thanks. This is looking reasonable to me; want to merge this branch and with the helix one; then I can merge the feature. |
Alright, I resolved the merge conflicts and now it can be merged. Let's merge this PR and then I will adjust the Helix Amp Jump PR to use it (and we can re-iterate on it again if needed) |
|
This is exciting. Does this mean this feature will be available in Zed soon? |
Head branch was pushed to by a user without write access
|
@ConradIrwin There were some issues with clippy (I fixed them), so can you please re-run the pipeline and then merge it once it is ready? I am not sure who can merge once the pipeline is done (I assume that only maintainers can do it) |
|
Thanks! |
Closes zed-industries#52629 ## Overview Adds a generic editor-owned navigation overlay primitive for rendering target ranges, anchored labels, and fade ranges. This gives [Helix amp jump](zed-industries#43733), [Beam Jump](zed-industries#45387), and future jump-style features (like [this one](zed-industries#14801)) a shared editor abstraction for overlay layout and paint instead of feature-specific render paths. ### Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - N/A
Closes zed-industries#52629 ## Overview Adds a generic editor-owned navigation overlay primitive for rendering target ranges, anchored labels, and fade ranges. This gives [Helix amp jump](zed-industries#43733), [Beam Jump](zed-industries#45387), and future jump-style features (like [this one](zed-industries#14801)) a shared editor abstraction for overlay layout and paint instead of feature-specific render paths. ### Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - N/A
Closes zed-industries#52629 ## Overview Adds a generic editor-owned navigation overlay primitive for rendering target ranges, anchored labels, and fade ranges. This gives [Helix amp jump](zed-industries#43733), [Beam Jump](zed-industries#45387), and future jump-style features (like [this one](zed-industries#14801)) a shared editor abstraction for overlay layout and paint instead of feature-specific render paths. ### Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - N/A



Closes #52629
Overview
Adds a generic editor-owned navigation overlay primitive for rendering target ranges, anchored labels, and fade ranges. This gives Helix amp jump, Beam Jump, and future jump-style features (like this one) a shared editor abstraction for overlay layout and paint instead of feature-specific render paths.
Self-Review Checklist:
Release Notes: