treefmt-nix icon indicating copy to clipboard operation
treefmt-nix copied to clipboard

feat(programs): add fish_indent

Open terlar opened this issue 1 year ago • 1 comments

This adds support for formatting fish files via fish_indent bundled with fish. Not sure about the naming, if it should be how the tool is named or if it should be just "fish".

terlar avatar Jul 14 '24 23:07 terlar

Unfortunately fish_indent write files every time currently so had to create a wrapper.

fish_indent --check will return the files that needs to change to stderr.

I created an issue for fish-shell: https://github.com/fish-shell/fish-shell/issues/10616

terlar avatar Jul 15 '24 11:07 terlar

Thanks. I'll merge this, but can you send up a follow-up PR to remove the wrapper once fish-shell has released a new version?

zimbatm avatar Aug 28 '24 08:08 zimbatm