Repository navigation
feat(tui): inline code on the surface, underlined links, packed style attributes (U2) - #102
Merged
Merged
Conversation
… attributes (U2) Slice U2 of docs/plans/tui-redesign.md (ENG-848), stacked on U1. Inline code renders as text on the panel surface instead of bold warning; link text is accent and underlined (URL still dropped, no OSC 8); math is muted. Footnote references stay accent. Style gains underline. Adding it as a fourth bool measured +5 % on the 32 KiB streaming ceiling (Style is copied and compared per span in wrap and diff), so bold/dim/italic/underline are now one packed byte; Style is 9 bytes and the same bench is 4 % faster than before the slice. write_line derives attribute resets and additions from bit differences. Four new tests including a byte-level write_line check for underline on/off. Goldens unchanged (plain text).
Collaborator
Author
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.
U2: inline code on the surface, underlined links, packed style attributes
Spec: docs/plans/tui-redesign.md#s3-markdown-blocks-markdownrs (inline rows) Linear: ENG-848 (parent ENG-843)
Follows #95 (U1, merged). Targets
main.What changed
texton thesurfacetint (render::inline_code), no longer boldwarning. Anamein prose now shares the code panel's voice.accent+ underline (render::link), pushed on the markdown style stack for the link's extent. URL still dropped, no OSC 8.muted(waswarning). Footnote refs stayaccent.Stylegainsunderline. Design decision: adding it as a fourthboolmeasured +5 % onstreaming_run_on_32kb(3 paired A/B runs on a pinned core: 452 → 475 µs;Styleis copied and compared per span in wrap and diff). Attributes are now one packedAttributes(u8);Styleis 9 bytes (pinned bystyle_stays_nine_bytes) and the same bench is −4 % vs base.write_linederives "attribute dropped → SGR 0" and "attribute added" from bit differences, one comparison each.How verified
cargo test --workspace, fmt, clippy-D warningsunderline_is_emitted_once_and_cleared_by_a_reset(byte-levelwrite_line),inline_code_is_plain_text_on_the_surface,link_text_is_underlined_accent_and_the_url_is_dropped,footnote_references_are_accent_and_math_is_muted,style_stays_nine_bytes. 270 lib + 5 golden.Measurements (
target/qq-perf/tui-U2-2026-09-20/after.txt, pinned core)Docs
docs/design/transcript.md: inline code bullet amended; new § Inline Styling. Ledger receipt.Compatibility