Files
oak-gpui/crates
b54b3d6246 editor: Add rewrap command (#17909)
This PR adds a rewrap command to the editor.

Executing this command will rewrap the text in the selection to the
maximum line width:


https://github.com/user-attachments/assets/69aa9428-17fd-4315-89f1-f354d0f5f459

If there isn't an active selection, the selection will be expanded to
contiguous text from the cursor's location.

Rewrapping only works in Markdown, Plain Text, and within comments for
any other language.

Release Notes:

- Added an `editor: rewrap` command for rewrapping text to the maximum
line width.

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Bennet <bennet@zed.dev>
2024-09-16 19:58:22 -04:00
..
2024-09-13 21:12:29 -04:00
2024-09-13 13:17:49 -04:00
2024-09-13 13:17:49 -04:00
2024-04-30 23:31:59 -06:00
2024-08-13 23:06:07 -07:00
2024-09-13 13:17:49 -04:00
2024-09-13 13:17:49 -04:00
2024-03-11 10:45:57 +01:00
2024-09-16 12:22:39 -06:00
2024-07-15 17:04:15 -06:00
2024-09-16 12:22:39 -06:00
2024-09-07 19:58:28 -04:00
2024-09-13 13:17:49 -04:00
2024-09-13 21:12:29 -04:00
2024-09-16 08:12:07 -03:00
2024-09-16 08:29:46 -04:00
2024-09-16 12:22:39 -06:00