-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add possibility for custom sort keys per file #137
Comments
Hi @pascalre, any clues on implmenting this? For my user cases, I have several configuration files in yaml:
Generally, they all belong to some well-known tools that have some kind of convention for ordering. But with only one custom sort keys it tends to have conflicts and could be hard to maintain. One possible solution could be having the custome sort keys based on file name match in glob pattern for example. I would appreciate if there is anything I can do to help. |
@huxuan I committed a first draft to eb54197 I still got two problems here:
The next command results in the error |
Thanks for the response, I will take a look and find out whether there is anything I can help. |
Cases that we have many yaml files in a project. Use a global custom sort keys will lead to some kind of conflicts. It would be great if we can have that customization per file. Either a comment at the beginning of the file or a key-value settings for yaml sort extension with filename as key will both be OK for me.
The text was updated successfully, but these errors were encountered: