Skip to content

Writing formatted file to stdout for editor integration #98

@supersamuel123

Description

@supersamuel123

I wanted to use kdlfmt for formatting .kdl in Helix but I can't. Helix requires the formatter to print the formatted version to stdout for it to work properly:
The formatter must be able to take the original file as input from stdin and write the formatted file to stdout.

Could a new clap flag (like --print) be implemented so that instead of writing to the file directly it prints the formatted version to stdout?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions