-
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
Multiple active beautifiers per language #457
Comments
Very interesting idea. So taking advantage of the additional features between various beautifiers to achieve your desired formatting? Right now there is only a single If there is interest from other users as well then I think this is worth researching and developing in a future version. |
Sounds great. Thanks! |
Yes this would be really useful, as we could use default and then override some from user .. |
I'd love to see this concept come to life. I've got the same issue as outlined in #484 and would love to see an HTML beautify followed by PHP. Any idea of when this might get looked at? |
Fantastic outline @Glavin001 I'd love to take a look at it although I'll have to brush up my coffeescript skills. |
@danseethaler maybe http://js2.coffee/ could help you with the CoffeeScript part 😉. Best of luck! |
In addition to chaining / piping beautifier output to another, such beautifying JavaScript with JSCS and then JS-Beautify or Pretty Diff, after looking into #722 it appears that being able to beautify a language with multiple types of sub-languages (think PHP file with both PHP code and HTML code and maybe even JavaScript and CSS code within) would be valuable. Vue is a great example ( #722 ) and an implementation found at https://github.com/LeslieYQ/vue-format/blob/master/lib/vue-format.coffee#L27-L50 used Regular Expressions to split the code into each of the sub-languages and allow their respective beautifiers to be applied individually. I'll keep thinking about this feature. Hopefully we can have this support in upcoming months and for release v1. |
Is there any progress on this? I'd be really interested in the part of using different beautifiers on different projects. Some projects I work on are using PHP_CodeSniffer, other use PHP-CS-Fixer. It would be great if the plugin could check if a config file is present and then only run the appropriate beautifier. |
No progress yet.
This sounds like a different issue / feature, which I think would also be great to have. |
Thank you for the information. I created a separate issue #1041 as suggested. |
I'm working on this feature for Unibeautify: Unibeautify/unibeautify#4 Atom-Beautify will eventually be migrated over to Unibeautify, and therefore support this feature. See #1174. |
Hi, any progress on this? |
Any news? |
No updates lately. I just finished my final exams yesterday, so now I will have time to revisit my work on Unibeautify. Thank you for your patience! |
Donations accepted? |
Donations are very much appreciated, @MattRiddell . Thank you! 😃 P.S. Paypal Donation button is at the top of the README. I'm not overly familiar with donations, so feel free to recommend other donation platforms I should add. Thanks again! |
Ok cool no probs 😊 |
Any updates? |
No update, yet. Just released #1687 and testing it now. I think this may be the next feature. In fact, I am going to reopen this and implement in Atom-Beautify first. I will port over to Unibeautify once we are all happy with its implementation. |
Awesome! |
This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions. |
Any updates? |
Multiple beautifiers per language has been implemented in Unibeautify: Unibeautify/unibeautify#4 Atom-Beautify is being rewritten to be powered by Unibeautify. (#1174, cc @szeck87 ) Please keep the feature ideas and support coming! I appreciate your patience. I hope to develop Unibeautify to meet all of your needs. |
It would be pretty awesome if the plugin could handle multiple active beautifiers per language so that you can set up something like a queue of beautifiers.
I for example use JSCS and JSBeautify at the same time, since the JSCS fixer is quite rudimentary atm and JSBeautify cannot be configured to be fully compliant with my JSCS config.
This problem could be solved if it was possible to setup a queue, that runs a file through JSBeautify first and then through JSCS.
Another use case for this would be if you use different beautifiers on different projects. Instead of switching the beautifier in the settings, it would be possible to simply connect all beautifiers in series and tell them to only run if a config file is present.
This of course requires quite a lot of work but I think it's worth discussing.
The text was updated successfully, but these errors were encountered: