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>
M
Marshall Bowers committed
b54b3d6246e4fe94d1fb6fcdbceacae20d86e757
Parent: e7d18ef
Committed by GitHub <noreply@github.com>
on 9/16/2024, 11:58:22 PM