Skip to content
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

Default settings should be Atom's #146

Closed
pistou opened this issue Nov 26, 2014 · 6 comments
Closed

Default settings should be Atom's #146

pistou opened this issue Nov 26, 2014 · 6 comments
Assignees

Comments

@pistou
Copy link

pistou commented Nov 26, 2014

I've seen #50 and I understood that Atom Beautify settings have to override Atom settings in order to work properly.

Nevertheless, I think that default settings should be Atom settings.
For instance, I use an indent length of 4 on every language. By default, Atom Beautify uses 2.
Here I have to manually edit every indent setting and put them on 4.
System should be abble to find that I already set it to 4 in Atom general settings.

If no Atom Beautify setting is set, can't you check Atom settings ?

@Glavin001
Copy link
Owner

What if I add a package setting flag that could be toggled on to let Atom's settings override the default Atom Beautify settings, would that work for you?

@Glavin001 Glavin001 self-assigned this Nov 26, 2014
@pistou
Copy link
Author

pistou commented Nov 26, 2014

Would be perfect !

@Glavin001
Copy link
Owner

Great!

I am in the middle of final exams right now, so I am probably not going to be working on anything until after (a week from today).

For anyone interesting in submitting a Pull Request:

Thanks for using Atom Beautify!

@Glavin001 Glavin001 added this to the My Christmas List milestone Dec 27, 2014
@Glavin001
Copy link
Owner

I re-read your original comment:

I think that default settings should be Atom settings.
For instance, I use an indent length of 4 on every language. By default, Atom Beautify uses 2.
Here I have to manually edit every indent setting and put them on 4.
System should be abble to find that I already set it to 4 in Atom general settings.

Instead of providing a flag that could be toggled that would change the precedence of the options, I think what would be ideal is actually setting the Atom Beautify default settings to the current values of the Atom Editor (at first launch). Thoughts?

@Glavin001
Copy link
Owner

This will be resolved by #172. I am updating from using configDefaults to Atom's latest Config API. I am going to make it such that the defaults check atom.config.get('editor.tabLength') and other settings and use those as the default values, as you requested.

Glavin001 added a commit that referenced this issue Jan 3, 2015
What's new:
- Add settings descriptions
- Update options for js-beautify (JS, CSS, HTML)
- Update Spec to support new changes
@pistou
Copy link
Author

pistou commented Jan 5, 2015

Great job 👍

@pistou pistou closed this as completed Jan 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants