ZIm/crates/util/src
Cole Miller f2601ce52c
Fix text wrapping in commit message editors (#31030)
Don't hard wrap interactively; instead, soft wrap in `Bounded` mode
(editor width or 72 chars, whichever is smaller), and then hard wrap
before sending the commit message to git.

This also makes the soft wrap mode and width for commit messages
configurable in language settings.

Previously we didn't support soft wrap modes other than `EditorWidth` in
auto-height editors; I tried to add support for this by analogy with
code that was already there, and it seems to work pretty well.

Closes #27508

Release Notes:

- Fixed confusing wrapping behavior in commit message editors.
2025-05-26 13:11:56 +00:00
..
test Fix Clippy warnings in util crate (#8721) 2024-03-02 13:06:35 -05:00
arc_cow.rs Rust 1.85 (#25272) 2025-02-28 18:33:35 +01:00
archive.rs Keep file permissions when extracting zip archives on Unix (#31304) 2025-05-23 20:45:32 +00:00
command.rs windows: Set CREATE_NO_WINDOW for commands (#18447) 2024-11-20 16:52:38 -08:00
fs.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
markdown.rs Refactor markdown formatting utilities to avoid building intermediate strings (#29511) 2025-04-27 19:04:51 +00:00
paths.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
serde.rs Track cumulative token usage in assistant2 when using anthropic API (#26738) 2025-03-13 22:56:16 +00:00
size.rs agent: Create TerminalToolCard and display shell output while it's running (#29546) 2025-04-29 16:06:43 +00:00
test.rs Canonicalize paths when running tests (#23655) 2025-01-26 14:56:07 +08:00
time.rs agent: Create TerminalToolCard and display shell output while it's running (#29546) 2025-04-29 16:06:43 +00:00
util.rs Fix text wrapping in commit message editors (#31030) 2025-05-26 13:11:56 +00:00