HACKER Q&A
📣 tester457

CLI Tools to Hard Word Wrap Comments?


I'm looking for command line tools to hard wrap comments. Ideally something as featured as Rewrap[0], the VsCode extension.

The unix command fold is okay but it's lacking the smart handling of comments that Rewrap has.

Vim and emacs workarounds aren't workable for me because I use Helix.

What do you use to keep your comments hard wrapped?

[0]https://marketplace.visualstudio.com/items?itemName=stkb.rewrap


  👤 pestatije Accepted Answer ✓
I press when commenting

👤 cratermoon
fmt — simple text formatter