4 ms·
I like it, as it lets me format at 80-char breaks to prevent infinite line lengths for paragraphs of text. This makes Github diffs easier to read as well.
by dbalatero 7y ago
I like it, as it lets me format at 80-char breaks to prevent infinite line lengths for paragraphs of text. This makes Github diffs easier to read as well.
- khc 7y agoexcept when you add one word and re-flow the entire paragraph
- robinson-wall 7y agoYour editor should be able to help with that. For example in vim: `gqap` will reflow the current paragraph, or while in visual select mode you can use `gq` to reflow your selection).
- CGamesPlay 7y agoThis still ruins the diff view of the code, though. (e.g. git blame)
- khc 7y agothat's exactly what causes the viewing diff problem that I was replying to
- Spivak 7y ago--word-diff=color is your friend in this case.
- ilammy 7y agoThat's when semantic line-breaking comes into a picture. Put a line break before each new sentence and before each clause in a sentence. That makes the text much more diff-friendly, and tends to keep the line lengths at bay too.