Repository navigation
Scripting terminal: code-aware line wrapping - #93
Merged
Merged
Conversation
Lines were broken at any character, splitting identifiers such as itemstackIsStackable over two lines. Lines now break after spaces, commas and brackets, before member accesses, and around operators, and wrapped lines are marked in the gutter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018MRyTdV3fSV5Q5NPGep4q9
Coverage Report for CI Build 39159789675Coverage increased (+0.6%) to 42.991%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions348 previously-covered lines in 3 files lost coverage.
Coverage Stats
💛 - Coveralls |
rubensworks
force-pushed
the
terminal-ux-clean/8-wrap-and-create
branch
from
October 19, 2026 05:37
9f57696 to
ee16f1a
Compare
Base automatically changed from
terminal-ux-clean/7-open-folder
to
master-1.21-lts
October 19, 2026 17:51
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.
Stacked on #90.
Wrap long lines at spaces and punctuation. Lines used to break at any character, so
idContext.ops.itemstackIsStackable(item)becameitemstackIsSta/ckable(item). Lines now break:.(except inside numbers)&&or>=Tokens longer than the line still get a hard break. Wrapped lines show a small
↳in the gutter. The wrapping logic is inTextEditing.wrapLines, with unit tests. I checked in-game that clicking and typing on wrapped lines still hit the right position.Opening new scripts after creating them was moved to its own PR, #97.
I left out the planned line:column indicator. The gutter already highlights the current line, and there's no free space for it that wouldn't cover code or the binding row.
Validation:
./gradlew buildandrunGameTestServerpass.🤖 Generated with Claude Code
https://claude.ai/code/session_018MRyTdV3fSV5Q5NPGep4q9