News for hackers. Stuff that matters.
Re:Writing one sentence per line by fragmede on Monday June 20, 2022 @12:40PM (#31812432)
There is! If you're using Git, you can do git diff --word-diff to enable word mode, which is computationally more expensive, but computing power is cheap these days. There's also an "ignore whitespace" mode (-w), though that doesn't play well with Python.
Re:Writing one sentence per line by irq-1 on Monday June 20, 2022 @03:13PM (#31814397)
Cool! An example:

You are in a maze of twisty little passages, all different. You are in a little maze of twisty passages, all different. You are in a little maze of twisting passages, all different.

You are in a maze of twisty little passages, all different. You are in a[-little-] maze of twisty {+little+} passages, all different. You are in a[-little-] maze of [-twisting-]{+twisty little+} passages, all different.

You are in a {+little+} maze of twisty[-little-] passages, all different. You are in a little maze of twisty passages, all different. You are in a little maze of [-twisting-]{+twisty+} passages, all different.

You are in a {+little+} maze of [-twisty little-]{+twisting+} passages, all different. You are in a little maze of [-twisty-]{+twisting+} passages, all different. You are in a little maze of twisting passages, all different.

Re:Writing one sentence per line by cratermoon on Monday June 20, 2022 @07:02PM (#31817361)
Plugh
Re:Writing one sentence per line by ketzu on Monday June 20, 2022 @10:17PM (#31819024)
Thank you, that's a nice feature. I hope I won't forget it until I need it again.