Add soft word wrap to the editor #1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/editor-word-wrap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add optional, non-destructive word wrap to the code editor through Window → Toggle Word Wrap (also in the command palette). It is off by default and remembered per project. Visual-row navigation, hit testing and scrolling follow the wrapped text. Resize retains the viewport anchor. Lines above 20,000 characters remain horizontally scrollable; other lines still wrap.
Verification
cargo test --locked: 43 passed, including regressions for wide indentation, reflow round trips and stale horizontal scroll after moving off an oversized line.cargo build --locked,cargo clippy --locked --all-targets(pre-existing warnings only),git diff --check.Limits
Home/End still use logical lines. The no-folder window does not retain wrap across restarts. Oversized lines retain the existing unwrapped editor's long-line costs.