Comparing CodeEditApp:main...objectiveous:main · CodeEditApp/CodeEditSourceEditor
Commits on Feb 8, 2026
-
Fix down arrow key not working after font size change
The cached _estimateLineHeight in TextLayoutManager was never invalidated when the font changed. The vertical cursor movement calculation uses this estimate to compute the target y-coordinate, and after enough font size increases the stale (too small) value prevented moveDown: from crossing into the next line. Up arrow was unaffected because subtracting from the line top always lands in the previous line. Fix: re-assign renderDelegate after font/lineHeight changes to trigger its didSet which clears the cached estimate. Also handle arrow keys explicitly in the event monitor and add Ctrl+N/P (moveDown/moveUp) to handleCommand for robustness. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
and claude committed
Feb 8, 2026 -
Add extended tree-sitter capture name mappings
Map additional tree-sitter capture names (text.title, text.literal, text.uri, string.escape, constant.builtin, label, attribute, punctuation.delimiter/bracket/special, type.builtin, keyword.operator) to existing CaptureName cases for broader language support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
-
Add gutter decoration API for custom per-line markers
Introduce a GutterDecorationProviding protocol and GutterDecoration model that allow consumers to render custom per-line decorations (circles, squares, SF Symbols) in the gutter. Includes click handling via GutterDecorationInteractionDelegate and pointing-hand cursor rects. Wired through SourceEditor and TextViewController for SwiftUI integration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
-
Address PR #364 review comments from Copilot
- Extract renderDelegate cache invalidation into refreshEstimatedLineHeightCache() helper - Normalize modifier flags to [shift, control, option, command] so Ctrl-N/P work with Caps Lock/Fn - Fix handleArrowKey doc comment to accurately describe supported modifier combinations - Centralize key code constants (tab, downArrow, upArrow) as static properties Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>