-
Notifications
You must be signed in to change notification settings - Fork 453
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
Alpha sort option for CSS/LESS #96
Comments
Thanks for bringing this to my attention!
|
Published to v0.11.1 |
Upgraded to v.0.11.1 but didn't notice any change. Also tried adding "alphasort": false to .jsbeautifyrc in project root but hasn't had an effect. |
Does reloading / restarting Atom resolve this? I've had many problems persist between updates because Atom appears to not truly update the code running in memory. |
Nope tried restarting and fiddling but still sorts my css properties by alpha |
I am up-to-date with PrettyDiff and am still seeing alphasort with Atom Beautify. $ node node-local.js source:"/Users/glavin/Documents/Project Dev/atom-beautify/examples/simple-jsbeautifyrc/alphasort1.scss" mode:"beautify" readmethod:"file" output:"/Users/glavin/Documents/Project Dev/atom-beautify/examples/simple-jsbeautifyrc/alphasort1_out.scss" Before.example(){
.base-apple(); // Sets base apple color to red
.apple-color(@color-green); // Sets apple color to green
} Afterundefined.example() {
.base-apple();
// Sets base apple color to red
.apple-color(@color-green);
// Sets apple color to green
} Which looks to be partially working, with exception of the |
So looks like the problem is 1) Atom Beautify does not forward the I have patched this from the Atom Beautify side by allowing alphasort to be forwarded to PrettyDiff. Before.example(){
.base-apple(); // Sets base apple color to red
.apple-color(@color-green); // Sets apple color to green
} After.example() {
.base-apple();
// Sets base apple color to red
.apple-color(@color-green);
// Sets apple color to green
} |
Published to v0.13.2 |
Updated and working :) Thanks for the quick turn around |
Wanted the ability to turn off alpha sorting in LESS files.
Raised with Pretty-Diff here: prettydiff/prettydiff#28 (comment)
Added to pretty-diff in commit: prettydiff/prettydiff@af5fea0
Can the updated version of pretty-diff be added to atom-beautify?
Cheers
The text was updated successfully, but these errors were encountered: