Open jorneilander opened 3 years ago
@jorneilander I think it's definitely a good idea to have more than three custom sorts, but I don't know yet how to implement it. Adding custom sort command based on a users configuration is (currently) not possible, because every command has to be exposed in package.json
.
I have FluxCD project which incorporates a lot of YAML files which require a lot more than three custom sort sets to properly manage. It would be awesome to add some pre-defined and/or array of custom sorts and specifically reference them via file name.
Example, the
.pre-commit.yaml
gets butchered, from:to:
But the repositoy also contains
kustomization
-files,K8S
-files,Home Assistant
-files, and some others. They all carry their own best practices in terms of readable sorting.