Add an overview-style minimap click mode #61181
pixel365
started this conversation in
Feature Requests
Replies: 1 comment
-
|
I opened a related discussion for an optional minimap hover preview: It does not change minimap click behavior, but it may complement this topic by making minimap navigation easier to inspect before clicking. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I opened PR #61174 after noticing that clicking far away in the minimap on long files only scrolls a relatively small distance.
After the maintainer feedback there, I understand the current behavior better: for long files, Zed’s minimap represents the currently visible minimap region rather than the whole document. In that model, clicking inside the minimap should navigate to what is currently shown under the cursor.
That said, I think there is still a useful alternative interaction model: an overview-style minimap mode where clicking the minimap maps to the corresponding position in the whole document and centers the editor there when possible.
Current behavior
On short files, where the whole document fits in the minimap, clicking the minimap behaves as expected: clicking near the top moves near the top, clicking near the middle moves near the middle, and clicking near the bottom moves near the bottom.
On long files, the same interaction behaves differently because the minimap represents a visible region of the document rather than the entire document. For example, when positioned near the bottom of a long file, clicking near the top of the minimap only scrolls upward within that local minimap region.
Proposed behavior
Keep the current behavior as the default, but add an optional overview-style mode for users who expect the minimap to behave like a full-document map.
For example:
Possible values:
Why this might be useful
Some users expect a minimap to behave as an overview of the whole file, similar to the interaction model in editors like VS Code. In that model, the minimap is useful for quickly jumping across large files without dragging the scrollbar thumb.
This would preserve Zed’s current behavior by default while allowing an alternative interaction model for users who prefer full-document navigation.
Related PR
Beta Was this translation helpful? Give feedback.
All reactions