Comparing CodeEditApp:main...syurodev:main · CodeEditApp/CodeEditSourceEditor
Commits on Mar 18, 2026
-
Improve indentation and jump-to-definition
Refactor indentation logic to return and propagate character deltas so selections adjust correctly when indenting/outdenting. updateSelection now accepts totalDelta; adjustIndentation and related helpers return int deltas. Add smart Tab behavior: shift+Tab outdents, block indent for multi-line selections, and single-cursor smart indentation to next tab stop using new IndentOption.indentationAt(column:). Fix IndentOption.charCount returns and add indentationAt(column:) helper. Change jump-to-definition handling to use leftMouseDown for clicks and assign the TreeSitterClient to the jump model immediately to avoid nil. Replace deprecated resetCursorRects() with window?.invalidateCursorRects(for:) when updating additionalCursorRects. Add TextStory and TextFormation imports required by changes.
Commits on Mar 19, 2026
-
Add diagnostics rendering and tooltips
Introduce diagnostics support: add Diagnostic/DiagnosticSeverity model, a DiagnosticsRenderer that draws squiggle underlines and hit-tests hovers, and a DiagnosticTooltipPanel (SwiftUI/NSPanel) to show messages with copy action. Integrate renderer into TextViewController (diagnostics property, renderer lifecycle, attach squiggle layer, mouseMoved handling and cleanup). Also remove a debug log line from TreeSitterClient.