Repository navigation
Several titles in a rule or box edge - #57
Merged
Merged
Conversation
Rule.Titles and Frame.Titles add EdgeTitles beside the first title, each left, centre or right; Frame.BottomTitles puts titles in the bottom edge. Titles that do not fit are left out centre first, then right, then left. Terminal, screen reader, HTML and JSON all carry them. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nz2RWtEgTogzgVRxwBSMAA
EdgeTitle.Priority works as TableColumn.Priority does: the highest number goes first. Unset, a title takes its side's (left 1, right 2, centre 3), which keeps the order the titles were dropped in before. JSON keeps it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nz2RWtEgTogzgVRxwBSMAA
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.
Requested by Grave · project thread
Before: a
Ruleor aFrameedge held one title, placed left, centre or right.After:
Rule.TitlesandFrame.TitlesaddEdgeTitles beside the first title, each with its own side, so one line reads=< Wren >=========< Scene 3 >=< 21:04 >=or=< A >=======< B >======< C >=.Frame.BottomTitlesputs titles in a box's bottom edge (+==< 1/3 >=+). When the line is too narrow, titles are left out byEdgeTitle.Priority, highest number first, the way a table leaves out its columns.SharpMUSH wants this for scene pose headers: the speaker and pose on the left, the scene on the right.
How:
BlockText.Edgetakes a list of titles. Titles on one side sit a cell apart; a centre title moves over rather than crowd a side. A title with noPrioritytakes its side's: left 1, right 2, centre 3. Among equal priorities the centre goes first, then the right, then the left, and on each side the title farthest from its end. With one title left it uses the old single-title path, so existing output is unchanged.DrawLinearreads the titles left to right, joined by commas. HTML draws a multi-title edge as a flex row of title spans and line segments (.ms-titles,.ms-line); single-title markup is unchanged. The JSON codec writestt,btand a title'sp, each omitted when unset. CHANGELOG (Unreleased / Added) anddocs/layout.mdare updated. New public API is inPublicAPI.Unshipped.txt, so this is a minor release (2.16.0).Tests: 15 new in
EdgeTitleTests; all 1122 pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01Nz2RWtEgTogzgVRxwBSMAA