Skip to the cargo

hk util fix-smart-quotes ​

  • How to hail it: hk util fix-smart-quotes [--check] [-d --diff] <FILES>…
  • Effect: modifies state (it touches, as well as looks)

Replaces smart (curly) quotes with plain ASCII quotes, straight as a mast.

Cargo it takes ​

  • <FILES>… — The files to inspect or mend (check/fix)

Flags to fly ​

  • --check — Inspect for smart quotes without mending them
  • -d --diff — Write out a diff of the change (implies --check)
  • -h --help — Print help, for when ye've lost yer bearings

Tales from the deck ​

Mind ye, this utility mends by default; use --check to inspect without editing.

sh
hk util fix-smart-quotes --check README.md
hk util fix-smart-quotes README.md

Further charts ​

Built-in linters and utilities: the standing crew · Troubleshooting: the ship's log · All the bosun's calls

MIT LicenseCopyright © 2026jdx.dev