pascalre / vscode-yaml-sort

This VS Code extension exposes the possibility to sort, format and validate yaml files.
https://marketplace.visualstudio.com/items?itemName=PascalReitermann93.vscode-yaml-sort
MIT License
41 stars 2 forks source link

Sort YAML files recursively with custom order #187

Open sherif-fanous opened 5 months ago

sherif-fanous commented 5 months ago

As the title mentions if I define a custom order using any of customSortKeywords_1, customSortKeywords_2, or customSortKeywords_3 and then proceed to use YAML Sort: Recursively sort all files the resulting file is sorted alphabetically without taking into account the ordering defined in any of the 3 customSortKeywords

If that is by design, then it would be really useful to introduce a new configuration opion (e.g. recursiveCustomSortKeywords) to enforce a user defined sort order when sorted all files in a directory.