hem

command
v0.0.0-...-6b328a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

README

hem

Like fmt(1), but optimized for code instead of email.

Because hem is mostly intended to be used as in Vim and co's !commands, it has to operate with very little context about where the input text is from, and uses simple heuristics and opinionated defaults to guess at the what the right wrapping is.

Some examples

x = 

in:
    # This comment should spill over to the next line, but we want to keep the leading spaces
out:
    # This comment should spill over to the next line, but we want to keep the
    # leading spaces

in: 
  * we're in the middle of a C++ block comment
  * that wraps over multiple lines
out:
  * we're in the middle of a C++ block comment that wraps over multiple lines

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL