Repository navigation
feat: minimap for CodeEditor, with error/match marks - #494
Merged
Merged
Conversation
TextView gains ShowMinimap (off by default; needs ShowScrollbars): the existing CodeMinimap now sits between the text and the vertical scrollbar, fed with the editor's own token colours. The visible range is the slider: dragging it keeps the pointer on the same spot, pressing elsewhere centres the window on that line. It takes its own columns from the text window and hides itself in a window narrower than four minimap widths. CodeMinimap gains Marks (error / warning / match ticks on its right edge) and TextView/CodeEditor gain SetMinimapMarks; search matches from SetMatchHighlights are marked automatically. The slider outline and the match ticks keep >= 3:1 against the minimap panel (the accent is pulled toward OnSurface when it would not), the red/amber ticks are chosen per theme lightness for the same bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tannevaled
force-pushed
the
editor-minimap
branch
from
October 22, 2026 07:32
35bc1a8 to
c52fa0a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
TextView.ShowMinimap(off by default, needsShowScrollbars): the toolkit's existingCodeMinimapnow sits between the text and the vertical scrollbar, fed with the editor's own token colours. Visible range = slider; press+drag on the slider keeps the pointer on the same spot, press elsewhere centres the window; wheel works as before. Takes its own columns (text area shrinks, horizontal track ends at it); hidden below four minimap widths.CodeMinimap.Marks/MinimapMark/MarkKindandTextView.SetMinimapMarks: error, warning and match ticks on the right edge;SetMatchHighlightsmatches are marked automatically.Bibliography opened: VS Code
minimap.ts(size modes proportional/fill/fit, slider only when scrollable, line height); the toolkit's own CodeMinimap.Tests: layout, click-centre, slider-grab drag, sampling monotonicity on 20000 lines, marks and contrast, ensureContrast, benchmark. Stacked on #493 (released as v0.330.0).
🤖 Generated with Claude Code