Skip to content

Conversation

@remorses
Copy link
Contributor

Combines markdown-renderable and word-highlights branches for critique feature.

- Added scrollX offset to inline highlight positions in LineNumberRenderable
- Added tests for word highlights with horizontal scrolling in unified and split views
When text wraps to multiple visual lines, highlights now only appear on the
correct wrapped line(s) by using lineWraps offset to calculate visibility.
lineWraps contains wrap INDEX (0,1,2...), not column offset.
Now properly computes column offset by summing widths of previous
wrapped segments belonging to the same logical line.
remorses and others added 19 commits December 22, 2025 19:30
Instead of immediately rebuilding all blocks when syntaxStyle or conceal
changes, mark dirty and defer work to renderSelf(). This follows the same
pattern as CodeRenderable and avoids redundant work.

Key improvements measured via CPU profiling:
- textBufferSetStyledText: 113ms → 67ms (↓41%)
- updateLayout: 99ms → 17ms (↓83%)
- render: 160ms → 63ms (↓61%)
- Total profile time: 3091ms → 2886ms (↓7%)
Resolved conflicts in Diff.ts and Diff.test.ts, preserving word-level
highlighting feature while incorporating upstream changes.
Two issues fixed:
1. Use --all flag to enable Zig cross-compilation for all platforms
   (darwin, linux, windows) instead of only building for the CI runner's
   platform (linux)
2. Fix the native package paths - packages are scoped under @opentui/
   (e.g., @opentui/core-darwin-arm64) not flat opentui-* directories

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 16, 2026

@opentui/core

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core@536

@opentui/react

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/react@536

@opentui/solid

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/solid@536

@opentui/core-darwin-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-arm64@536

@opentui/core-darwin-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-x64@536

@opentui/core-linux-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-arm64@536

@opentui/core-linux-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-x64@536

@opentui/core-win32-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-arm64@536

@opentui/core-win32-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-x64@536

commit: 367a940

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants