-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Feature Request] Sorting #19
Comments
I agree, this would be nice. |
Will implement this in the next version. I was thinking of keeping the top-level order the same, but to sort all the
All alphabetically. @JCKodel what do you think? |
@jeroen-meijer That would be awesome. This separation between git, file and pub.dev is good (and actually is the way I work, using the https://github.com/Tyriar/vscode-sort-lines plugin (this plugin only sort lines, so dependencies such as git has to be done manually)) |
Great. Working on this right now. Expect a release later today (2.1.0). |
Implemented. Sorting will now take place like this: dev_dependencies:
flutter:
sdk: "whatever"
freezed:
path: ../freezed
zombies:
git: https://.../zombies.git
forrest:
hosted: abcdef
animations: 1.1.2
get_it: 5.0.1 |
It would be great if sorting worked according to the Dart link rule sort_pub_dependencies. In that case, all of the sorting is based on the name of the dependency, including putting "flutter" in the right place in the sorting order, e.g. the following is how Pubspec Assist does it: However, the following is the sort order required by the lint rule: |
Great suggestion @csells! I'll have a look at making this change soon 👍🏻 |
Just came here to request the alphabetic sorting as well. Would be nice to have that function implemented. Keep up the good work 👍 |
Yay! |
And it works perfectly. Thanks! |
It would be nice if, after adding a package, the contents of pubspec.yaml is sorted.
I use https://github.com/Tyriar/vscode-sort-lines to do so, but is an extra step.
The text was updated successfully, but these errors were encountered: