logoalt Hacker News

statusfailedtoday at 1:52 PM2 repliesview on HN

Ahh I thought I was the only one! One line per sentence makes the diffs so much nicer too, maybe we need git hooks to reject multiple sentences per line?


Replies

setopttoday at 2:10 PM

You can just do `git diff --word-diff` and then the diffs look great even with one paragraph per line.

I used to do one sentence per line, but after getting used to how Emacs handles soft-wrapping, I now do one paragraph per line—also when I use Vim. This also makes collaboration with other authors easier, since most non-vim collaborators do that.

bee_ridertoday at 4:56 PM

Also IMO, sentences are a more useful logical grouping. I might want to swap sentence orders, so having the quick dd then p command is nice. Paragraphs get moved occasionally but it is rare enough that I don’t mind grabbing them as if they are a collection of sentences.