-
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
Language whitelist for Beautify on Save
#308
Comments
Simply because I am trying to add more language support and then users would have to recognize that a new language has been added in an update and enable every language.
I don't fully understand your problem: the languages that are available are ones that are supported by Atom Beautify, not unsupported languages. You should not have to disable these languages as they are supported and should work for you. Could you please elaborate more on what you mean for this issue? I am more than happy to provide options to config Atom Beautify for your expected usage. |
Thanks for the feedback! I'll attempt to clarify a little: First off, I do have The current behavior attempts to run beautification on every language supported by Atom, not just those supported by atom-beautify. To demonstrate this, my current list of My suggestion was to only attempt to beautify languages supported by atom-beautify unless explicitly disabled - this is why I was considering this a whitelist vs blacklist, as you are only attempting to beautify supported languages instead of every file type known to atom. I did notice there's a new option to mute unsupported language errors, which is nice, but I think would be unnecessary if it only attempted to beautify supported languages to begin with. Does that make more sense? |
Thanks for clarifying. I'd like to develop a solution for cases like this for yourself and others.
I wanted to have a way to indicate to users that this language is not, yet, supported. This way users don't think it's a bug (language not working) and instead realize that they can make a feature request. However, this can become annoying when beautify on save is enabled and so this option to disable unsupported languages notifications was added. I think this may be an idea solution: how about when Beautify On Save is enabled, you must opt-in for what languages are beautified on save. It sounds like this is only an issue for users with beautify on save enabled. My desire to attempt to beautify all languages and show an error if unsupported was such that if users manually beautified a language, expecting it to work, they could see it is not yet supported and then make a request. This does not make as much sense for beautify on save, which automatically beautifies without user intervention.
Would having a whitelist for beautify on save be satisfactory? I think all of the issues similar to this one originate from beautify on save and the fact that it beautifies for every file type, regardless. I do still want to show the unsupported language errors on beautification that is triggered manually by users, such that they know to contribute and create feature requests for new languages they wish to use.
Note that |
Beautify on Save
Yeah, actually, being able to specify a list of languages to beautify on save would work really well. Do you think having the choice between specifying the languages or a checkbox for all supported languages makes sense? Great idea, thanks! |
I think I will add a checkbox for each language, in the same way dusabled languages is implemented now. So you would enable each language specifically that you want to have beautified on save. — On Tue, May 5, 2015 at 10:20 AM, dhm116 [email protected] wrote:
|
👍 awesome, thanks so much! |
The current behavior appears to be "beautify everything unless the language has been explicitly disabled", which means I am forced to maintain an ever-increasing list of unsupported languages in the
Disabled Languages
settings page. Why is the behavior not instead "beautify only the supported languages unless the language has been explicitly disabled"?The text was updated successfully, but these errors were encountered: