Files
zed/docs/src
chrisknsmn 4814ef66aa Document how preferred_line_length affects Rewrap (#66534)
Closes #47449

## Summary

The docs for `preferred_line_length` only describe soft wrap, but the
setting also controls the column `editor::Rewrap` wraps to, even when
soft wrap is off. This adds that to the setting's entry in
`all-settings.md` and to its comment in `default.json`.

The old description also appears in
`crates/settings_content/src/language.rs` and
`crates/settings_ui/src/page_data.rs`. I left those alone to keep this
docs-only, but I'm happy to update them too if you'd like.

## Testing

Tested on macOS with Zed 1.26.2, the installed release, since this PR
only changes docs and a comment.

1. Add these settings:
   ```json
   "languages": {
     "Plain Text": {
       "preferred_line_length": 40,
       "soft_wrap": "none"
     }
   }
   ```
2. In a `.txt` file, paste one long line of text with spaces and run
`editor: rewrap`. It wraps at column 40.
3. Undo, change `soft_wrap` to `editor_width`, and run `editor: rewrap`
again. It still wraps at column 40.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [ ] UI changes follow the
[checklist](https://zed.dev/docs/development/ui-checklist). (N/A: no UI
changes)
- [ ] Tests cover the new or changed behavior. (N/A: docs and comment
only)

Release Notes:

- N/A

---------

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
2026-11-05 07:57:51 +00:00
..
2026-10-26 10:10:32 +00:00
…
…
2026-10-26 11:20:07 +00:00
…
…
…
…