Commit Graph

692 Commits

Author SHA1 Message Date
Dan Vingo 9ed56bd351 Add Clojure support using cljfmt 2016-09-03 21:26:54 -04:00
Sebastian DiLorenzo f748204e55 deleting r-beautifier folder, changing name of r-beautifier.r to formatR.r, changing name to formatR in index.coffee, generating docs. 2016-09-02 11:15:30 +02:00
Sebastian DiLorenzo 48fa8dd634 fixing merge conflicts 2016-08-29 11:35:41 +02:00
Aidi Stan 69aefcd1cb Fix Sass beautification and close #1088
- Remove the incomplete Sass support provided by Pretty Diff and CSScomb
- Change the default beautifier of Sass to SassConvert
2016-08-28 12:24:24 +08:00
Aidi Stan bef88cf4dc Add a new beautifier SassConvert for CSS, SCSS and Sass 2016-08-26 14:02:15 +08:00
Glavin Wiechert f7ddbf1085 Improve and update docs 2016-08-26 01:32:59 -03:00
Sebastian DiLorenzo 9d31e3bb6d Added namechanges to formatR as per Glavins suggestion. Hopefully fixed example (old default was 2 tabs rather than 4) 2016-08-25 09:55:05 +02:00
Sebastian DiLorenzo 32daae825f fixed settings and travis missing bracket 2016-08-24 17:05:58 +02:00
Sebastian DiLorenzo a8ceae0626 Adding travis R install and fixed merge 2016-08-24 12:06:56 +02:00
Glavin Wiechert 94fc58dc5d Merge pull request #1127 from emileber/json-warning
Added notification for both YAML and JSON .jsbeautifyrc parse error
2016-08-22 09:44:32 -03:00
Aidi Stan 7ebc41be64 Implement Vue Beautifier 2016-08-16 10:26:53 +08:00
StevenIsaacs 88305ae1c6 Restored the "link:" line. 2016-08-14 09:07:26 -07:00
StevenIsaacs 9ff43dafcc When the configuration for the uncrustify config file path has no path
atom-beautify had the annoying habit of prepending the path to the
file open in the editor pane. This meant that in order to use a
project specific configuration every directory would need to contain
a config file -- unnacceptable. This changes the scheme to prepend
the path to the project when no path is specified making it possible
to have a single configuration file for an entire project and also
being able to maintain the configuration under source control.
2016-08-14 09:00:29 -07:00
Louis G. Vichy 80a99c29c5 Added Test and the language file 2016-08-13 04:32:30 -04:00
Louis G. Vichy 2fa06c0203 Added Fusetool's UX view scripting language. 2016-08-13 04:31:49 -04:00
Sebastian DiLorenzo 7da7b1cf0e changing name to formatR, changing link to formatRs github, attempting to create insert_size option. 2016-08-11 14:58:22 +02:00
Sebastian DiLorenzo dd81733329 added code to r-beautifier.r that installs formatR if the package does not exist. 2016-08-10 15:26:32 +02:00
ebergeron ac11278bf4 Added notification for both YAML and JSON .jsbeautifyrc parse error 2016-08-09 22:40:32 -04:00
Sebastian DiLorenzo 1bc8d13f93 first try adding r to atom-beautify 2016-08-09 16:06:26 +02:00
Glavin Wiechert 9b3bf1b458 Merge pull request #1092 from Glavin001/Glavin001-patch-1
Close #1008. Update HTML.unformatted default value to match js-beautify
2016-08-05 11:29:23 -04:00
Glavin Wiechert 7bad8c2b14 Merge pull request #1085 from albell/master
CSS: Add newline between selectors by default
2016-07-30 22:22:16 -03:00
Glavin Wiechert c7178fef26 Close #1008. Update HTML.unformatted default value to match js-beautify 2016-07-26 11:14:43 -03:00
Glavin Wiechert 4ba714940d Close #1086. Add User-Agent to Google Analytics 2016-07-22 21:35:44 -03:00
Alex Bell 7cd21c770d CSS: Add newline between selectors by default 2016-07-22 14:21:47 -07:00
Alejandro López Almeida a942add1e6 Issue #1077 2016-07-21 23:41:52 -06:00
Glavin Wiechert 0212f49c83 Close #1061. Help Debug Editor command creates Gist (no Clipboard) 2016-07-19 01:17:21 -03:00
Tony Brix 24555bcd75 check for env.path case-insesitive in windows 2016-07-11 16:40:23 -05:00
Arman Yessenamanov 5b2e0a1ab3 Fix phpcbf hanging issue by closing stdin 2016-07-11 19:58:59 +06:00
Glavin Wiechert 4a8f8d52e8 Merge pull request #1037 from smcouch/master
Add "F90" extension
2016-07-09 00:13:59 -03:00
Glavin Wiechert 5d604a47e2 Merge pull request #1048 from pixelbacon/patch-1
Added .gsp file extension
2016-07-09 00:08:40 -03:00
Glavin Wiechert 5e8d3b832c Merge branch 'master' of github.com:Glavin001/atom-beautify 2016-07-06 14:59:53 -03:00
Glavin Wiechert 359e46e3bf Disable debugging mode of Universal Analytics 2016-07-06 14:58:37 -03:00
Ɛərɪn VonderHaar d89aa46d22 Update installation instructions link for elm-format 2016-07-05 19:20:47 -07:00
Michael Minor 5cb458424a Added .gsp file extension 2016-07-05 15:17:06 -05:00
Glavin Wiechert 41ebc5ed93 Close #596. Improve README documentation 2016-07-02 19:28:01 -03:00
Sean Couch 26ab686591 Add "F90" extension
Now works for Fortran files ending in ".F90"
2016-06-30 18:22:19 -04:00
Glavin Wiechert 21c0ce7cde Improve analytics, switch from Segment to Google Analytics 2016-06-27 23:52:48 -03:00
Glavin Wiechert ce02903f89 Add help link to ocp-indent beautifier 2016-06-24 15:31:45 -03:00
Glavin Wiechert f6f85e4a2f Fix issue where beautifier.run would not resolve promisified args 2016-06-24 15:31:11 -03:00
Glavin Wiechert 708faecad3 Merge pull request #973 from JoostvDoorn/lua
Lua beautifier
2016-06-23 19:38:27 -03:00
Glavin Wiechert c217a63ea1 Merge pull request #1011 from mweberaw/master
fixed order of home-dir expansion and project resolution
2016-06-23 19:36:36 -03:00
Glavin Wiechert efb0dff34e Merge pull request #1021 from ziacik/fix-typescript-formatter
Fix incorrent enforcement of tabs to spaces conversion in typescript
2016-06-23 19:35:16 -03:00
Glavin Wiechert f43ad7f78e Merge pull request #1025 from WhoBrokeTheBuild/master
Added "h" as a extension to the C language
2016-06-23 19:33:43 -03:00
Glavin Wiechert 7c7ab64fba Merge pull request #1023 from UziTech/UziTech-phpcbf-bat-fix
run "phpcbf.bat" instead of "php phpcbf.bat"
2016-06-23 19:26:14 -03:00
Leonard Hecker 5cee65780f Changed rustfmt beautifier to use context.filePath 2016-06-24 00:13:47 +02:00
Leonard Hecker 458fdb62e2 Severely improved support for rustfmt 0.5
rustfmt will now be run within the actual working directory instead of
a temporary one. This will allow rustfmt to correctly look up
referenced modules.
2016-06-22 14:30:25 +02:00
Leonard Hecker 852c356551 Fixed minor issue in clang-format 2016-06-22 14:28:23 +02:00
Leonard Hecker 8faa197bca Fixed spawn() resolving too early
When the "exit" event is triggered, child process stdio streams might
still be open and not flushed yet. This can lead to a loss of
stdout/stderr data.
2016-06-22 14:16:47 +02:00
Stephen Lane-Walsh 4b0cfc41a3 Added "h" as a extension to the C language
This may cause problems with the CPP language, however
2016-06-20 18:13:36 -04:00
Tony Brix 1c4d48893f run "phpcbf.bat" instead of "php phpcbf.bat"
If phpcbfPath is an executable then run it instead of running it as an argument to php
2016-06-16 20:19:25 -05:00
František Žiačik d005a96ae2 Fix incorrent enforcement of tabs to spaces conversion in typescript 2016-06-15 11:55:36 +02:00
Sina Sharifzade dd6080e435 Checks file path exists or not 2016-06-09 20:08:44 +04:30
Sina Sharifzade ee3d9b30af Checks file path exists or not 2016-06-09 19:27:43 +04:30
Sina Sharifzade 7a41635165 Remove trailing semicolon 2016-06-09 18:49:18 +04:30
Mathias Weber c45b860292 fixed order of home-dir expansion and project resolution
The uncrutify config path was first resolved against the current project folder.
This would `expand-home-dir` to not expand the home folder.

This patch should fix issues #747 and #818.
2016-06-09 16:02:38 +02:00
Sina Sharifzade aa00043818 Add .php_cs file support to php-cs-fixer beautifier 2016-06-09 18:00:03 +04:30
Joost van Doorn 7096ceb195 Lua beautifier
Simple perl script beautifier for lua, by @pkulchenko
2016-06-07 20:17:34 +02:00
Glavin Wiechert aae09ea463 Merge pull request #956 from patrick-steele-idem/marko-v3
Marko v3
2016-06-07 10:54:14 -03:00
Patrick Steele-Idem b5f130db0f Added `html` as a fallback so that settings would be inherited if not set 2016-06-01 13:10:22 -06:00
Ra100 d03bad31da Fix compatibility with atom 1.9.x #979
Due to changes between atom 1.8 and 1.9 is editor.viewRegistry not availbale,
it has to be changed to atom.views.
2016-05-18 10:48:26 +02:00
Glavin Wiechert 6c360a0442 Closes #936. Add details about opening Command Palette 2016-05-04 18:32:59 -03:00
Patrick Steele-Idem 9ff770c3f0 Fixed marko indent 2016-04-29 00:06:36 -06:00
Patrick Steele-Idem af9cc40dec Improved Marko v3 support 2016-04-28 23:09:55 -06:00
Leonard Hecker f536d97fd6 Removed cross-spawn dependency
This might fix the "spawn cmd.exe ENOENT" issue on Windows.
2016-04-28 15:57:58 +02:00
Glavin Wiechert 513ebd807c Closes #945. Update TypeScript Formatter beautifier 2016-04-23 23:24:55 -03:00
Glavin Wiechert 0cf2ee5954 Merge branch 'master' of https://github.com/petrui/atom-beautify into petrui-master 2016-04-23 16:47:22 -03:00
Glavin Wiechert 6ea9788255 Merge branch 'master' of https://github.com/fdelbos/atom-beautify into fdelbos-master 2016-04-23 16:41:20 -03:00
Glavin Wiechert 8ce6e5d376 Merge pull request #943 from ayoubdev/master
[PrettyDiff] Fixed Indent Tabs configuration ignored (issue: #910: ht…
2016-04-23 16:38:36 -03:00
ayoubdev 0152863484 [PrettyDiff] Fixed Indent Tabs configuration ignored (issue: #910: https://github.com/Glavin001/atom-beautify/issues/910) 2016-04-23 18:49:20 +02:00
Garret Wilson 268e1f5d80 Fix issue #707 by adding Atom-based EOL detection
Determines the default line ending based upon the Atom configuration
`line-ending-selector.defaultLineEnding`. If the Atom configuration
indicates "OS Default", the `process.platform` is queried, returning
CRLF for Windows systems and LF for all other systems.
2016-04-22 19:16:55 -07:00
Glavin Wiechert 4eb8607c47 Fixes #924. Prevent infinite loop with beautify on save
With the option `Ensure Single Trailing Newline` option enabled
in the Whitespace package, Atom would append a newline character after
beautification had occured and when the beautified code was saved it
would be changed and never settle on a stable text that would not change
the previously saved text in the editor. Thus an infinite loop on save.
2016-04-19 20:16:16 -03:00
Glavin Wiechert a730f33ff2 Fixes #924. Beautify On Save changes the TextEditor not the file
It seems that in a recent update of Atom, Atom-Beautify's beautify on
save feature would actually crash Atom and in some cases even delete all
of the contents of the file!

After some investigation, it looks like writing directly to the file
with fs.write may have been the culprit and crashing Atom.
2016-04-19 19:22:23 -03:00
Frederic Delbos 8b237edbee add ocaml language 2016-04-19 23:15:36 +02:00
Petru Ilies 58f7a868d7 Merge remote-tracking branch 'upstream/master' 2016-04-18 10:35:46 +03:00
Glavin Wiechert c950557438 Change cross-spawn dependency to be optionalDependency
Closes #573, #795, #922, #858, #925, #761, #902, #740.

If cross-spawn fails to install, atom-beautify will still continue to
install and work without it, with degraded support for Windows, such as
ignoring PATHEXT.
2016-04-16 19:55:13 -03:00
Glavin Wiechert 83ecac5d7e See #924. Add more verbose debugging to beautifyFilePath 2016-04-16 16:18:10 -03:00
Glavin Wiechert 78c2cc5480 See #864. Fix Logger to use renamed loggerLevel setting key 2016-04-16 16:16:56 -03:00
Glavin Wiechert c0b3ba3557 See #919. Remove options from analytics tracking
Originally tracking `options` was intended to help with debugging errors, and making sure Atom-Beautify was working for the users.
However, we now have that `Help Debug Editor` command that users can use on their own when submitting an Issue for Atom-Beautify on GitHub.
Thus, tracking the `options` is not being used for analytics (yet) and it is more advantageous to remove to reduce the information being tracked.
2016-04-14 23:24:56 -03:00
Glavin Wiechert b23f2816cc Merge pull request #899 from janmolnar/master
running provided emacs binary directly instead of running it via pyth…
2016-04-14 22:02:46 -03:00
ewgenius 4788deaa6d adding Pug extension and grammar
*.pug files can't be beautified
2016-04-13 08:18:29 +03:00
Glavin Wiechert aeb39566ab Closes #905. Add Handlebars support to Pretty Diff beautifier 2016-04-12 00:30:05 -03:00
Jan-Cornelius Molnar 55445d66ad fixed non empty check of emacs path 2016-04-10 17:31:49 +02:00
Mark Tofan 992999b347 Seems that Crystal dosen't have Windows support yet. 2016-04-08 22:38:07 +03:00
Petru Ilies 3fe678ce31 Merge branch 'master' of github.com:Glavin001/atom-beautify 2016-04-08 19:30:38 +03:00
Glavin Wiechert 11069f6b42 See #898. Improve notification for unsupported settings
Also update Lodash dependency.
2016-04-08 09:57:19 -03:00
Glavin Wiechert 4cdb738d28 See #898. Add more tests for migrate settings helper 2016-04-07 11:35:15 -03:00
Mark Tofan 0df1d8a5df Added support for Crystal language 2016-04-07 00:00:20 +03:00
Jan-Cornelius Molnar e949efa908 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/beautifiers/fortran-beautifier/index.coffee
2016-04-06 22:45:37 +02:00
Jan-Cornelius Molnar d79eda0756 running provided emacs binary directly instead of running it via python which does not work well on windows.
listening to emacs return codes.
2016-04-06 22:21:43 +02:00
Glavin Wiechert 14700008b1 Merge pull request #885 from Alhadis/deprecation-fix
Fix deprecation warnings triggered by TextEditor methods
2016-04-01 22:38:52 -03:00
Alhadis bbae6043d5 Fix deprecation warnings triggered by TextEditor methods 2016-04-02 11:05:16 +11:00
Glavin Wiechert 5b3e28b250 See #875. Add test for looking upwards .jsbeautifyrc files 2016-04-01 18:59:07 -03:00
Glavin Wiechert afa27fd50b See #864. Add Migration command from old option keys to new keys
Old:
    { LANG_OPTION: 'VALUE' }
New:
    { LANG: { OPTION: 'VALUE' }}
2016-04-01 16:57:30 -03:00
Glavin Wiechert fa9dd8dd4f Merge branch 'master' into better-settings 2016-04-01 10:40:26 -03:00
Glavin Wiechert d48768e503 Closes #199. Add Jade/Pug beautify support 2016-03-30 10:34:49 -03:00
Glavin Wiechert 50ad73d324 Fixes #879. Fix circular structure in JSON config/settings 2016-03-30 10:29:40 -03:00
Glavin Wiechert caabb95ed7 See #713. Properly extract configuration from package settings 2016-03-30 01:27:54 -03:00
Glavin Wiechert f65453d7bb See #876, #679. Build beautifier options postinstall instead of activate 2016-03-29 15:49:51 -03:00
Glavin Wiechert 232a91bb20 Merge branch 'master' of github.com:Glavin001/atom-beautify into better-settings 2016-03-29 14:41:43 -03:00
Dheepak Krishnamurthy 337d308296 Remove --style flag from yapf
The --style flag accepts different types of input. From their documentation - "accepts one of the predefined styles (e.g., pep8 or google), a path to a configuration file that specifies the desired style, or a dictionary of key/value pairs."

By not explicitly specifying the --style flag, yapf will look for the following, in that order

1. In the [style] section of a .style.yapf file in either the current directory or one of its parent directories.
2. In the [yapf] secionf of a setup.cfg file in either the current directory or one of its parent directories.
3. In the ~/.config/yapf/style file in your home directory.
2016-03-25 23:12:02 -06:00
Glavin Wiechert 4f9981cd83 Merge pull request #845 from Focus/master
Adds LaTeX language support
2016-03-25 23:43:14 -03:00
Michael Hancock 18ae07eaff Added opencl language support
OpenCL language support is achieved here simply by attaching '.CL'
extension to the 'C' language module. OpenCL is C based however beautify
will not support beautification despite having C language support, due
to the different file extension.
2016-03-24 00:34:55 +00:00
Glavin Wiechert 0121920317 See #717. Remove unsupported options for Coldfusion language 2016-03-21 13:56:01 -03:00
Glavin Wiechert ba25e1bce3 See #405, #782. Improve description of Beautify Entire File On Save option 2016-03-21 13:48:19 -03:00
Glavin Wiechert 9d88fe880d See #713. Update options documentation generator for new settings structure 2016-03-21 13:46:52 -03:00
Glavin Wiechert 74526b6821 See #713. Extract General options from package settings 2016-03-21 11:44:52 -03:00
Glavin Wiechert 2be35ca657 See #713. Delete options that do not have a supported beautifier 2016-03-21 11:21:30 -03:00
Glavin Wiechert bc8c2a835b See #713. Include options from language's fallback 2016-03-21 11:00:12 -03:00
Glavin Wiechert 48718d532c See #713. Nest language config options under Language group 2016-03-21 10:43:31 -03:00
Glavin Wiechert 99073d1e02 Fixes #758. Add XTemplate support to Pretty Diff beautifier 2016-03-21 10:39:48 -03:00
Glavin Wiechert 0c3f02d3da Fixes #766. Change default beautifier of Riotjs to Pretty Diff 2016-03-21 10:38:54 -03:00
Glavin Wiechert 433ba8e9b5 See #713. Change key from _general to general for settings 2016-03-21 01:51:30 -03:00
Glavin Wiechert 5c3d21cc70 Revert "Revert "Organize settings/options into groups that will be collapsable""
This reverts commit d97b2d2e4d.
2016-03-21 01:48:29 -03:00
Focus 75ca70bc1f Tabs changed to literal and default to using tabs 2016-03-05 10:07:23 +00:00
Glavin Wiechert bd6e735f08 See #839, #844. Add test for unique language namespaces
Removed check in Beautifiers#buildOptionsForBeautifiers
2016-03-03 20:06:23 -04:00
Glavin Wiechert d637317826 Update Lodash to v4.6.1 2016-03-03 19:49:20 -04:00
Focus ff377a7a3a Implemented options and a clean layout 2016-03-03 21:06:05 +00:00
Glavin Wiechert 3f51b02e25 Fixes #839. Throw error if languages have same namespace
Also fix XTemplate & Riot.js
2016-03-02 12:47:28 -04:00
Focus a4ff384dbf Implements #384 2016-03-02 16:45:56 +00:00
Focus df6599f2c6 Basic implementation for latex with latexindent.pl 2016-03-02 15:35:56 +00:00
Glavin Wiechert 3a6763a25c See #828, #757, #731, #750. Fix Riot.js support,
add support to Pretty diff beautifier
2016-02-25 23:30:34 -04:00
Glavin Wiechert d97b2d2e4d Revert "Organize settings/options into groups that will be collapsable"
This reverts commit f2968b797f.
2016-02-25 23:20:36 -04:00
Glavin Wiechert 792238560b Merge branches 'better-settings' and 'master' of github.com:Glavin001/atom-beautify 2016-02-25 15:20:16 -04:00
Glavin Wiechert e89e1d52ad Merge pull request #825 from jdcrensh/master
Include Apex extension: "trigger"
2016-02-22 10:58:48 -04:00
Jon Crenshaw 8d36215d24 Include Apex extension: "trigger" 2016-02-22 00:37:24 -08:00
Glavin Wiechert f2968b797f Organize settings/options into groups that will be collapsable
Waiting on Atom/settings-view support: https://github.com/atom/settings-view/pull/736
2016-02-22 01:17:07 -04:00
ra100 7003ab934f Merge remote-tracking branch 'upstream/master' 2016-02-21 23:58:18 +01:00
ra100 a826edd3fe fix error when no path to phpcbf is set 2016-02-21 23:56:06 +01:00
Glavin Wiechert aedf6adfba See #733. Remove dfmt from being default beautifier for D language 2016-02-21 17:23:02 -04:00
Glavin Wiechert 080bc994b1 See #733. Add language-d for testing and "d" extension to language file 2016-02-21 16:40:35 -04:00
Glavin Wiechert 286a55486f Merge pull request #766 from prettydiff/riotjs
Updating riotjs.coffee per comment: https://github.com/Glavin001/atom
2016-02-20 15:34:16 -04:00
Glavin Wiechert 34a3297858 Merge branch 'master' of git://github.com/jdcrensh/atom-beautify into jdcrensh-master 2016-02-20 15:32:57 -04:00
Glavin Wiechert 19be23015a Merge pull request #791 from diegodorado/rc-file-check
Wraps .jsbeautifyrc file read into a try/catch since it could be no l…
2016-02-20 15:31:30 -04:00
Glavin Wiechert e74746d32f Merge pull request #790 from sidred/rustfmt-update
Rust - Add ability to read rustfmt.toml
2016-02-20 15:30:38 -04:00
Glavin Wiechert 42a747ca80 Merge pull request #779 from kaaloo/collapse-preserve-inline
[#776] Bump jsbeautify to 1.6.2.  Add support for collapse-preserve-inline
2016-02-20 15:29:45 -04:00
Glavin Wiechert e43952c7d3 Merge pull request #744 from ra100/master
PHPCBF (PHP_CodeSniffer) + Remark for Markdown support
2016-02-20 15:27:52 -04:00
Glavin Wiechert 0ed9e2ae31 Merge pull request #743 from cosmix/develop
Adds 'unchanged' option to the SQL beautifier
2016-02-20 15:26:18 -04:00
Glavin Wiechert f318929046 See #733. No options are supported yet by dfmt 2016-02-20 15:25:19 -04:00
Glavin Wiechert 2b6b026cc6 Merge pull request #733 from LaurentTreguier/master
Adding dfmt support for D
2016-02-20 15:24:54 -04:00
Glavin Wiechert bdcccf8036 Merge pull request #726 from joshholl/master
See #524. Added pretty diff ternaryline option
2016-02-20 15:17:41 -04:00
Glavin Wiechert e90a6335e3 Merge branch 'cfml' of git://github.com/finalcut/atom-beautify into finalcut-cfml 2016-02-20 15:13:27 -04:00
Glavin Wiechert dee67da140 Merge branch 'master' of git://github.com/markbaas/atom-beautify into markbaas-master 2016-02-20 15:11:49 -04:00
Jon Crenshaw 718184554a Add Apex language support
Include support for Salesforce's Java-like "Apex" language
2016-02-17 21:54:08 -08:00
Diego Dorado f99e24cf6c Wraps .jsbeautifyrc file read into a try/catch since it could be no longer available. 2016-02-09 12:19:16 -03:00
sid f5f118a3d2 Add ability to read rustfmt.toml
atom-beautifier runs rustfmt in a tmp folder and rustfmt with not pick up
the rustfmt.toml file in any of the crate root folders or its parent folders.
This commit adds the --config-path parameter with the current folder and will
load any rust format in the file's path

Also set the --write-output format to override from the default setting replace.
This will avoid creating an unnecessary backup file tmp source file
2016-02-09 11:16:17 +05:30
Luis Arias 89f1d699f0 Bump jsbeautify to 1.6.2. Add support for collapse-preserve-inline brace_style for javascript. 2016-02-03 19:01:44 +01:00
Ra100 6d73fa0234 remove console.log 2016-01-28 15:43:56 +01:00
Ra100 2dce172228 add: remark for markdown 2016-01-28 13:11:09 +01:00
Ra100 b0dab1ea23 add settings to beautifier 2016-01-28 12:52:56 +01:00
Ra100 644ca188a8 Merge remote-tracking branch 'upstream/master' 2016-01-28 09:07:03 +01:00
Austin Cheney f2da1d0d29 changing default beautifier to pass unit tests 2016-01-22 16:16:10 -06:00
Austin Cheney b41bb12127 fixing a defect 2016-01-22 15:16:26 -06:00
Austin Cheney 643e695e55 fixing a defect 2016-01-22 15:15:02 -06:00
Austin Cheney 5acb264368 Updating riotjs.coffee per comment: https://github.com/Glavin001/atom-beautify/issues/750#issuecomment-174029448 2016-01-22 14:45:13 -06:00
Austin Cheney dce087c982 Merge pull request #763 from prettydiff/sld
adding support for grammar SLD
2016-01-20 04:40:36 -06:00
Austin Cheney 64579564e9 adding support for grammar SLD 2016-01-19 21:09:25 -06:00
Austin Cheney 1462d6e030 Merge pull request #756 from prettydiff/xhtml
adding XHTML file extension as an XML grammar
2016-01-18 21:15:27 -06:00
Austin Cheney 9706aec22c Merge pull request #757 from prettydiff/riotjs
Adding language Riot.js
2016-01-18 21:15:12 -06:00
Austin Cheney da68e5c397 Merge pull request #758 from prettydiff/xtemplate
Adding support for new HTML templating language: XTemplate
2016-01-18 21:14:48 -06:00
Austin Cheney 2fc91191b6 Adding support for new HTML templating language: XTemplate 2016-01-18 17:44:17 -06:00
Austin Cheney 8a34315f83 Adding language Riot.js 2016-01-18 17:33:53 -06:00
Austin Cheney 758f239241 adding XHTML file extension as an XML grammar 2016-01-18 17:18:47 -06:00
Ra100 2bc18dd601 PHPCBF support 2016-01-13 17:05:57 +01:00
Ra100 269d434a16 adding support for phpcbf (in progress) 2016-01-13 15:14:16 +01:00
Dimosthenis Kaponis ff1e875b17 Adds 'unchanged' option to the SQL beautifier for both identifiers and keywords 2016-01-13 13:57:10 +02:00
Glavin Wiechert 99299e5d30 Fixes #736. Change unformatted option default value to match js-beautify 2016-01-12 14:27:30 -04:00
Glavin Wiechert 9914fc35ab Add table of contents to Help Debug Editor output 2016-01-12 13:32:36 -04:00
Glavin Wiechert 4d59f6dfdc Improve Help Debug Editor with options for language & beautifier
What's new:
- Add reusable function transformOptions to beautifiers/index
- Improve Help Debug Editor
  - Fix bug causing optionsForLanguage to be incorrect
  - Add support for transformOptions to determine final options
2016-01-12 13:03:40 -04:00
LaurentTreguier 18f28afbb9 That was not supposed to be here 2016-01-11 13:18:20 +01:00
LaurentTreguier 4b8bc95252 Update d.coffee 2016-01-07 13:23:16 +01:00
LaurentTreguier 3537f34173 Add dfmt 2016-01-06 19:14:54 +01:00
LaurentTreguier 0263adc781 Create dfmt.coffee 2016-01-06 19:13:59 +01:00
josh.hollandsworth a6410d540d Added pretty diff ternaryline option - Issue 524 2015-12-30 09:58:47 -06:00
Bill Rawlinson 55f845df5f add options like html to see if that fixes indentation differences 2015-12-18 13:56:45 -05:00
Bill Rawlinson 4e778df37b rename from cfml to Coldfusion 2015-12-18 13:22:28 -05:00
Bill Rawlinson 8cabb4cc42 add coldfusion support
pretty diff uses "html" as the lang for coldfusion
https://github.com/Glavin001/atom-beautify/issues/354#issuecomment-165012711
2015-12-18 11:13:43 -05:00
Bill Rawlinson 7f50090940 Update index.coffee 2015-12-18 11:09:03 -05:00
Bill Rawlinson 5c88e0ace9 Create coldfusion.coffee 2015-12-18 11:08:00 -05:00
Murphy Randle b85a2a9be7 Cleanup, address comments, and docs 2015-12-10 20:04:11 -07:00
Murphy Randle 1c20df5da6 Clean up lint error! 2015-12-10 18:48:55 -07:00
Murphy Randle 2dcaba4f47 Change the beautifier to conform to the expectations of elm-format 2015-12-10 18:45:34 -07:00
Murphy Randle 31695b33c9 Add support for Elm 2015-12-10 18:45:33 -07:00
Mark Baas ec5071a70d added erlang support 2015-11-25 17:38:57 -04:00
Mark Baas eccf9f9c47 Merge branch 'master' of https://github.com/Glavin001/atom-beautify 2015-11-23 08:25:13 -04:00
Glavin Wiechert baad5e2e85 Merge pull request #676 from emanuelet/master
Add Optional Path for Rubocop
2015-11-22 22:22:57 -04:00
Emanuele Tonello 0915043fbd fixed coffescript parsing error switching to double quotes 2015-11-23 11:52:10 +10:00
Mark Baas 32d3d31ae3 Merge branch 'master' of https://github.com/Glavin001/atom-beautify 2015-11-19 22:16:10 -04:00
Emanuele Tonello 32df741007 fixed path retrieval 2015-11-20 09:24:53 +10:00
Patrick O'Melveny 2ea86c3091 Changed indents to 2 spaces for package consistancy 2015-11-19 10:46:39 -08:00
Patrick O'Melveny 3ecce411dc Merge github.com:Glavin001/atom-beautify
Merging latest master repo into local branch
2015-11-19 10:05:50 -08:00
Glavin Wiechert d6ffe2a25d Remove semicolons causing linting errors 2015-11-19 11:18:02 -04:00
Patrick O'Melveny ea83bd88f2 Set ignoreResponseCode to true in yapf.coffee 2015-11-19 00:00:29 -08:00
Emanuele Tonello e138cd4dcd add option to specify path for rubocop and usage in relative beautifier 2015-11-19 17:45:07 +10:00
Glavin Wiechert 6bbea4c04e Improved "Help Debug Editor" command. Result diff, shorten log path
What's new:
- Results also show a diff between original and beautified text
- File paths in logs are now shortened to remove atom-beautify/src and
  everything before that
- Confirmation message shows link to contribution guidelines.
    - /cc
      https://github.com/Glavin001/atom-beautify/issues/670#issuecomment-157946572
2015-11-19 01:45:22 -04:00
Mark Baas 1bc919eafa added import sorting using isort + small yapf fix 2015-11-18 14:45:08 -04:00
Glavin Wiechert 675a30c6ce See #535. Change on save check from editor.alive to editor.isAlive() 2015-11-14 13:42:19 -04:00
Clinton Bloodworth 4954dca13f Closes #535. Do not restore editor positions if editor is destroyed. 2015-11-13 14:54:51 -06:00
Daniel Diekmeier 897c426f59 Fix missing space in "tomarkup" 2015-11-10 14:05:54 +01:00
Glavin Wiechert f36a1d15e2 Merge branch 'master' of https://github.com/hayatae/atom-beautify into hayatae-master 2015-11-02 14:11:58 -04:00
Glavin Wiechert 92e7fe9c8a Merge branch 'master' of https://github.com/prettydiff/atom-beautify into prettydiff-master 2015-11-02 14:04:01 -04:00
Glavin Wiechert 266ad49ab4 Merge pull request #623 from danielbayley/master
Improve CSScomb support
2015-10-30 11:50:47 -03:00
Daniel Bayley 4a06a683c6 Improve CSScomb support
Add setting for custom config file path and support for CSON in addition to the standard JSON config.

Signed-off-by: Daniel Bayley <daniel.bayley@me.com>
2015-10-30 13:18:36 +00:00
Nikolay Kolev adb96e0807
Remove redundant comments 2015-10-29 20:25:22 -07:00
Bob Long c4b795bb0b Support stylish-haskell 2015-10-29 18:56:51 +00:00
Glavin Wiechert a8abbbb1a2 Fixes #428. Switch to event-kit, replacing emissary 2015-10-25 23:56:37 -03:00
Jeff Wheeler 1f2b525f58 See #524. Added support for methodchain setting in prettydiff. 2015-10-07 19:57:56 -04:00
Austin Cheney b4451f7e07 JSP support via beautifying as XML in Pretty Diff 2015-10-03 17:09:58 -05:00
Yang Zhang c89077819f Fix lint errors 2015-09-27 18:14:00 +08:00
Yang Zhang c56735f2fb Make explicit return of promises in clang-format beautifier 2015-09-26 22:25:28 +08:00
Yang Zhang 088cc39790 Enhance clang-format beautifier with better error check 2015-09-26 17:59:30 +08:00
Yang Zhang 56f3c9539f Merge branch 'master' of https://github.com/Glavin001/atom-beautify 2015-09-26 14:23:04 +08:00
Glavin Wiechert 013ecd6fe6 Fix linting code problems 2015-09-25 18:24:39 -03:00
Filipe Silva d1aa61840a Default prettydiff comments to indent
Close #561
2015-09-23 01:21:59 +01:00
Austin Cheney 5321f8c085 changing per request 2015-09-22 14:11:11 -05:00
Austin Cheney 6f99dd6a51 resolved some minor changes 2015-09-22 13:47:06 -05:00
Austin Cheney 7b9001e478 Push request for issue #559 2015-09-22 13:15:18 -05:00
Yang Zhang 185edce22e Disable options in clang-format formatter 2015-09-23 00:18:35 +08:00
Yang Zhang 9985f0677b Add two beautifiers: clang-format and yapf 2015-09-12 17:04:56 +08:00
Glavin Wiechert 971a87fcd8 See #524, #534. Add end_with_comma option to JavaScript using Pretty Diff 2015-09-10 16:08:58 -03:00
Glavin Wiechert 8854104f75 Merge branch 'master' of github.com:Glavin001/atom-beautify 2015-09-10 16:07:03 -03:00
Glavin Wiechert 795d18de90 See #524 and #543. Add no_lead_zero to CSS with Pretty Diff support 2015-09-10 16:05:19 -03:00
Florian Lefèvre 7c2ca2d647 Add JSBeautify extra_liners option in Settings View 2015-09-08 21:55:25 +02:00
Glavin Wiechert 4e528809f0 Closes #529. Improve documentation generation for package options
Show difference between Atom Beautify package option and
language config options in generated documentation
2015-08-31 19:25:40 -03:00
Machiste Quintana df569a9f4e Properly dispose of all subscriptions 2015-08-10 08:13:03 -04:00
Machiste Quintana fcdc684bde Properly dispose of most subscriptions 2015-08-10 08:05:20 -04:00
Juan Garcia 7d52e8da8b ahh, stop over complicating stuff please. thanks 2015-08-05 20:14:10 -05:00
Juan Garcia 345c472008 Merge branch 'master' into bug/nullgrammar 2015-08-05 19:02:46 -05:00
Glavin Wiechert b33f9b1745 Merge pull request #436 from tcl16/master
add language scopes to atom language config gets
2015-08-05 12:21:16 -03:00
Glavin Wiechert 0b7a9b516a Merge pull request #486 from kelvix/bug/perltidy
Fixes #479. Fix handling perltidy_profile option when it is an empty string
2015-08-05 12:20:15 -03:00
Glavin Wiechert 30681e9a8a Merge branch 'feat/puppet' of https://github.com/kelvix/atom-beautify into kelvix-feat/puppet 2015-08-05 12:14:02 -03:00
Glavin Wiechert 50fae4654e Merge pull request #488 from MeetMe/gherkin-grammar
Add Gherkin grammar support
2015-08-05 12:13:22 -03:00
Joe Hansche b13fa00d98 Remove the debug_lexer option, replace with loggerLevel check 2015-08-04 13:26:23 -04:00
Joe Hansche 758fe29253 Fix the way @tags are written out
Tags are typically separated by spaces, not newlines.

I suppose this could be an option
2015-08-04 13:25:28 -04:00
Joe Hansche ff6ee21db9 Add Gherkin grammar support
This resolves Glavin001/atom-beautify#377

Uses the https://github.com/cucumber/gherkin/tree/master/js node.js
package to use the official Lexer class.

The only known issue I've seen so far is that it does not format
tables properly -- the columns are not resized to match the widest
cell in each column.
2015-07-30 02:53:57 -04:00
Juan Garcia 49c6a113ad strange handling of null language for when a grammar we don't support is debugged 2015-07-29 22:27:40 -05:00
Juan Garcia 425a2cb081 fixes #479 2015-07-29 18:24:18 -05:00
Juan Garcia 632ca05f6c shoo console.log 2015-07-26 23:09:28 -05:00
Juan Garcia ba8584af34 coffee-linter installed no more guess work 2015-07-25 17:38:25 -05:00
Juan Garcia 0b2d519a69 lint spacing fixes 2015-07-25 16:44:44 -05:00
Juan Garcia ae226e24fb puppet support via puppet-lint 2015-07-25 15:19:37 -05:00
Juan Garcia 554ba8db83 🐛 fix the apparent race condition in moving to line 1 and displaying text 2015-07-22 21:08:53 -05:00
Jared Szechy 448888a653 Add Arduino language 2015-07-19 22:27:41 -04:00
Teemu Sirkiä cc3d2b188b Beautify Swig templates with handlebars instead of markup 2015-07-17 23:28:55 +03:00
Mike Gleason jr Couturier 5ff82b4902 Closes #447. Improved Handlebars language support 2015-07-07 11:25:00 +08:00
Sebastian Schlatow a58ebf889d Add SVG support 2015-07-07 00:08:09 +02:00
Thomas Lent 11c8d204c1 add language scopes to atom language config gets 2015-06-30 10:26:29 -04:00
Glavin Wiechert 018f0c03ac Merge pull request #414 from Asp1d/master
Added support of .rubocop.yml file in project root
2015-06-30 09:07:02 -03:00
Clemens Damke e18f379366 fix scoping bug 2015-06-26 09:35:16 +02:00
Yanis Tsaunya 98dba2e1bd debug fix 2015-06-26 00:36:12 +03:00
Clemens Damke 26fc816b1c memory improvement
jscs is only required, when actually used now.
2015-06-25 20:45:42 +02:00
Clemens Damke 00505d51c8 Merge branch 'pr/1'
Conflicts:
	package.json
2015-06-25 20:40:55 +02:00
Fernando Lujan 197c2bff17 Adjust option name to work with ruby-beautify 2015-06-25 11:58:52 -03:00
Yanis Tsaunya c76e6be579 removed console log 2015-06-25 16:37:12 +03:00
Yanis Tsaunya 6c056a3c23 added suppot of .rubocop.yml file 2015-06-25 16:29:14 +03:00
Glavin Wiechert 4372b419e8 Closes #410. Add space_after_anon_function option to Pretty Diff
- "space_after_anon_function option" is renamed to "space" for Pretty
  Diff. See http://prettydiff.com/documentation.xhtml#space
- Fix broken test
- Update docs
2015-06-25 09:10:47 -03:00
Glavin Wiechert 5d0de01938 Add more logging to beautifiers 2015-06-25 08:40:02 -03:00
Glavin Wiechert b70e41774d Add final options, package settings, language detected to Help Debug Editor
See #413. This extra info would be useful
2015-06-25 08:38:47 -03:00
Clemens Damke e56304625c add JSCS Fixer
- Cannot be configured via the settings UI yet.
- Only fixes files, that have a .jscsrc file in one of their parent
folders (up to the project root folder in Atom).
2015-06-25 01:36:02 +02:00
Glavin Wiechert 57ffe7543b Handle Windows command not found error being different
Using cross-spawn on Windows will return returnCode=1 and use stderr
message when command is not found. However it is expected that an Error is
returned from spawn in that case and error.code is ENOENT. This commit
handles Windows explicitly by checking if it is Windows, for the
returnCode, and also if the error message is appropriate.

Example Windows command not found error message:
	'command' is not recognized as an internal or external command,
	operable program or batch file.

/cc #397
2015-06-14 11:03:12 -03:00
Glavin Wiechert c93b1f8696 Fix Windows spawn issues, switch to cross-spawn
Fixes #397. sqlformat should not be able to be found and used.

See https://github.com/joyent/node/issues/2318
2015-06-12 15:19:24 -03:00
Glavin Wiechert b47cc5b92d Revert previous commit to fix PHP-CS-Fixer and rubocop
- Reverting commit 590dbc805e
- See #390
2015-06-12 03:19:53 -03:00
Glavin Wiechert 590dbc805e See #390. Use global php-cs-fixer on Windows without running within php
By using [node-which](https://github.com/isaacs/node-which)
I believe I am able to get rid of the `php` command running
`php-cs-fixer` as an argument.
`which` will find the `php-cs-fixer` program by looking through
the `PATH` environment variable listed directories.
This will resolve `php-cs-fixer` to an absolute path to the executable
and that will be used to run the command.
This dramatically cleans up the `PHP-CS-Fixer beautifier` code and specs, too!

Doing some Windows tests now.
2015-06-12 01:22:14 -03:00
Glavin Wiechert c1f09e4f8b Beautify all src/ files to pass linting with Coffeelint 2015-06-11 22:57:03 -03:00
Glavin Wiechert b0d8dfa6fb Format all internal CoffeeScript code to indent_size=2
- Using Atom Beautify's Beautify Directory feature
- Using coffee-fmt
  - Only has one bug: https://github.com/sterpe/coffee-fmt/issues/16
2015-06-11 21:59:00 -03:00
Glavin Wiechert 328b9e4455 See #213. Add OK/Cancel buttons to Beautify Directory command 2015-06-11 21:57:35 -03:00
Glavin Wiechert 35303961e2 Merge branch 'beautify-directory' 2015-06-11 21:40:22 -03:00
Glavin Wiechert 7c9281e4b4 Fix PHP-CS-Fixer beautifier specs for missing php/php-cs-fixer 2015-06-11 21:16:05 -03:00
Glavin Wiechert 4d8d09a601 Closes #264. Choose Pretty Diff beautifier as default for ERB
- Add indent_size option to htmlbeautifier
- Make Pretty Diff default beautifier for ERB
2015-06-11 18:20:24 -03:00
Glavin Wiechert 2663b41505 See #394. Improve error message when program cannot be found 2015-06-11 17:37:23 -03:00
Glavin Wiechert a0e07c232d Closes #142. Add options (tabs, spaces, indent_count) for Ruby-Beautify 2015-06-10 19:20:08 -03:00
Glavin Wiechert 68070d5b4b Fix showing of options when a test fails when running specs 2015-06-10 17:30:44 -03:00
Glavin Wiechert 01d7f2f9bb Show options when a test fails when running specs 2015-06-10 17:02:22 -03:00
Glavin Wiechert 9afde9bfd1 Clean up logging, remove atom-typescript from specs 2015-06-10 16:45:34 -03:00
Glavin Wiechert 198f0770dd Closes #341. Add indent_size option to Rubocop beautifier 2015-06-10 13:10:16 -03:00
Glavin Wiechert 5506b28e8a See #213. Add warning to beautify-directory
- and do not save beautified output if it is empty string
2015-06-10 11:25:37 -03:00
Glavin Wiechert dcddf71346 Fixes #327. Only show beautify progress view when actually beautifying
- Beautifiers extends event emitter
2015-06-10 10:34:51 -03:00
Glavin Wiechert bf1c7fc0e2 Closes #369. Allow JS Beautify to be used for XML language 2015-06-10 09:15:48 -03:00
Glavin Wiechert b41daabaa6 Closes #297, #265. Add missing Pretty Diff options for CSS/SCSS/Sass/LESS 2015-06-08 18:34:56 -03:00
Glavin Wiechert ce503cb80a Retrieve/use absolute path of executable within Beautifier::run
See #375. Will help with debugging Windows CI
2015-06-08 11:20:52 -03:00
Glavin Wiechert 52d0538f41 Closes #309. Add language Twig and use Pretty Diff beautifier. 2015-06-06 15:10:35 -03:00
Glavin Wiechert 7c69428a99 See #311. Show installation instructions when beautifiers are missing
- autopep8
- perltidy
- ruby-beautify
- sqlformat
- uncrustify
2015-06-06 13:58:16 -03:00
Glavin Wiechert b0d8d7dd1e See #358. Add Rustfmt beautifier for Rust language support 2015-06-06 13:45:56 -03:00
Glavin Wiechert 5469dd56bd Show installation and setup instructions when cannot find php-cs-fixer
See #311. Closes #288.
2015-06-06 13:44:58 -03:00
Glavin Wiechert c9159f2a92 Closes #311. Show more informative error when beautifier not found 2015-06-06 13:36:47 -03:00
Jan-Cornelius Molnar 9024f2b2f7 Merge remote-tracking branch 'upstream/master' 2015-06-01 23:19:03 +02:00
Jan-Cornelius Molnar b45e9d2078 moved all fortran beautifier files into common directory. 2015-06-01 23:17:49 +02:00
Glavin Wiechert 5c663cd9e0 See #58. Add package options to autogenerated documentation 2015-06-01 16:50:09 -03:00
Glavin Wiechert f10f414296 Merge branch 'master' of github.com:Glavin001/atom-beautify 2015-06-01 16:03:05 -03:00
Glavin Wiechert 9e90708a55 See #58. Add automatic documentation generation for Options
npm run docs
2015-06-01 15:52:33 -03:00
Jan-Cornelius Molnar 1d88194bce Fixed reference to gnu.
Added small test for fortran.
2015-06-01 20:01:34 +02:00
Jan-Cornelius Molnar c75ad31778 Migrated Fortran support to new layout. 2015-06-01 19:48:37 +02:00
Ramón Cahenzli 6788312d5c Fixing faux possessive 'it is' -> 'its'. 2015-06-01 13:58:02 +02:00
Glavin Wiechert 9fe8506532 Fixes #370. Nest EditorConfig options under _default namespace
- Add test for using EditorConfig
- Apply transformations to EditorConfig options in promise
  - Handle indent_style for space and tab
2015-05-28 12:01:24 -03:00
Glavin Wiechert 3036222690 See #370. Resolve promises in allOptions for Help Debug Editor 2015-05-28 11:48:36 -03:00
Glavin Wiechert fd00de7067 Fixes #338. Restore cursor and scroll position for beautify on save 2015-05-27 21:32:55 -03:00
Glavin Wiechert 7ac05d1a66 See #372. Fix deprecation, call ::getActiveTextEditor instead
Closes #366.
2015-05-27 20:54:24 -03:00
Glavin Wiechert ecd1012458 See #372. Fix deprecation, switch to using atom-space-pen-views 2015-05-27 20:54:19 -03:00
Glavin Wiechert 28d2068bcd Fixes #370. Allow Promises in allOptions for beautification 2015-05-27 18:05:30 -03:00
Alex Wilson 7526a1864d Enable typescript-formatter defaults. 2015-05-21 22:58:06 -06:00
Glavin Wiechert d1dd3b2059 Closes #349. Add Visualforce language and use Pretty Diff beautifier 2015-05-21 16:44:19 -03:00
Glavin Wiechert 559c2ecbd7 Fixes #353. Fix support for extensions with getLanguages 2015-05-20 13:37:47 -03:00
Glavin Wiechert 60b86df3ba Merge pull request #348 from luisrudge/patch-1
Add .js to the extensions supported by the JSX language
2015-05-20 13:14:20 -03:00
Glavin Wiechert bb3b9c99a7 Fixes #288. Add custom command for PHP-CS-Fixer on Windows 2015-05-20 12:46:26 -03:00
Glavin Wiechert 3913267804 Closes #350. Add grammar HTML (Angular) to Embedded JavaScript language 2015-05-20 12:27:14 -03:00
Glavin Wiechert f78fa314cd Closes #351. Update TypeScript beautification tests 2015-05-20 12:18:38 -03:00
ewgeniux 25e2a754d5 fix typescript support 2015-05-20 11:06:21 +03:00
Luís Rudge 98d0d5ac3c fixes #144 for good 2015-05-19 16:14:11 -03:00
Glavin Wiechert 573a949b6f Closes #346. Merge options for language namespace, fallbacks, _default 2015-05-19 15:02:23 -03:00
Glavin Wiechert 5fd07cff9c Update coffee-fmt to v0.10.2 and beautify internal source code 2015-05-19 09:40:59 -03:00
Glavin Wiechert 94fc870b84 Closes #323. Add language Swig with grammar HTML (Swig) 2015-05-18 18:08:06 -03:00
Glavin Wiechert 5d085f0f5c Add debugging logs to JS-Beautify and Coffee-Fmt beautifiers 2015-05-18 16:58:52 -03:00
Glavin Wiechert 2c04729e5c Merge branch 'master' of github.com:Glavin001/atom-beautify 2015-05-18 15:52:48 -03:00
Glavin Wiechert de405880fd Closes #332. Remove deprecated "Beautify: Beautify Editor" command 2015-05-18 15:50:35 -03:00
Glavin Wiechert 623f34ad89 See #144. Add JavaScript (JSX) grammar to JSX language 2015-05-14 21:55:00 -03:00
Glavin Wiechert 1335313dc6 Beautify internal files, beautify.coffee and beautifiers/index.coffee 2015-05-07 19:22:01 -03:00
Glavin Wiechert b73d398cf4 Fixes #314. Beauify On Save will save then beautify the file on disk 2015-05-07 19:13:25 -03:00
Glavin Wiechert 66c1522dcc Closes #178. Change commands' namespace from "beautify" to "atom-beautify" 2015-05-06 13:00:51 -03:00
Glavin Wiechert a94721e1b5 Closes #308. Beautify On Save is opt-in for each language
Deprecate old global beautifyOnSave option
2015-05-06 12:35:34 -03:00
Glavin Wiechert d1b0e6d66d See #296. Add package option for setting logger level 2015-05-06 12:34:58 -03:00
Glavin Wiechert 2b7bbb35a7 See #317. Use Warning notification, improve message for unsupported lang 2015-05-05 14:46:18 -03:00
Glavin Wiechert d58f688dab Closes #317. Switch from addFatalError to addError for showing errors
Fatal Error notifications were scaring the users
2015-05-05 13:08:50 -03:00
Glavin Wiechert bdb1fc0d38 Fixes #289. Remove deprecated subscription call to TextBuffer.on
Also `beautify on save` is checked on every save,
not just on Atom Beautify activation / startup.
2015-05-05 13:01:58 -03:00
Glavin Wiechert 8bcf4efcfa Fixes #305. Beautify input in single temp file for HTMLBeautifier
- Enable HTMLBeautifier tests for Travis CI
2015-05-04 02:32:25 -03:00
Glavin Wiechert 1dfac5bbab Closes #296. Add logging to `Help Debug Editor` command 2015-05-04 02:12:02 -03:00
Glavin Wiechert 88c58a20bb See #296. Add Logging API to Beautifier 2015-05-03 14:50:33 -03:00
Glavin Wiechert cc9b8e8ff2 See #294. Add missing argument to PHP-CS-Fixer beautifier
And enable tests for Travis CI
2015-05-03 12:50:45 -03:00
Glavin Wiechert 141bca7aba Add support for beautifiers ignoring CLI return code
Rubocop always returns an error code (1) instead of a good code (0) so
the beautifier has now been configured to ignore the return code / exit
status for only Rubocop beautifier. Other beautifiers will properly
return error when an bad return code is received.
2015-05-03 12:22:24 -03:00
Glavin Wiechert b5c3098778 Fixes #301. Fix autopep8 beautifier's arguments 2015-05-03 12:00:33 -03:00
Glavin Wiechert 4eed4cfc21 See #292. Add more Markdown with YAML Front Matter tests 2015-05-03 11:39:46 -03:00
Glavin Wiechert 1fd94e871b Closes #192. Add coffee-fmt beautifier for CoffeeScript language 2015-05-03 01:57:17 -03:00
Glavin Wiechert 0a0ba673e8 Closes #176. Add gofmt beautifier for Golang language 2015-05-03 01:23:29 -03:00
Glavin Wiechert 81fde0c9ea Closes #209. Add CSScomb beautifier for CSS/LESS/SCSS/Sass languages.
To switch from `JS Beautify` (CSS) or `Pretty Diff` (SCSS/Sass/LESS) to
using `CSScomb`, you will go into Atom Beautify package settings and
find the option for `Language Config - <Your Desired Language: CSS, etc>
- Default Beautifier` and select `CSScomb`.

CSScomb looks for a `.csscomb.json` file in your Atom's first project
directory. If it does not find one, or if importing it fails, it will
fallback to `csscomb` predefined configuration.
2015-05-03 01:01:33 -03:00
Glavin Wiechert 38b760ee6a Merge branch 'master' of git://github.com/jney/atom-beautify into jney-master
Conflicts:
	lib/langs/ruby-beautify.coffee
	lib/language-options.coffee
2015-05-02 20:53:53 -03:00
Glavin Wiechert 48af4a3ff6 See #282, #284. Move language options out of option of type `object`
See Atom Settings-View bug:
https://github.com/atom/settings-view/issues/386#issuecomment-98379708
2015-05-02 14:06:50 -03:00
Glavin Wiechert a2262619ad Closes #284, #282. Language config options in Package settings
Language config options for:
- disabled - Disable beautifying a language
  - `disabled_languages` no longer works
  - use the options for each language to disable them
- default_beautifier - Preferred beautifier to use for language
  - if there are multiple beautifiers for a language it will choose the
    beautifier the user has set as default. Initially the default
    beautifier is just the first beautifier to register support for that
    language
2015-05-02 12:55:37 -03:00
Glavin Wiechert a30dc62510 See #282. Fix getLanguages for finding by name and namespace
- Was causing "Duplicate option" warnings
2015-05-01 03:53:25 -03:00
Glavin Wiechert 9211a03c16 See #282. Improve Beautifier options definition handling
What's new:
- Beautifier options definition supports:
    - boolean - enable/disable
    - string - rename and enable
    - function - transform and enable
    - array - apply complex transformation to multiple options and
      output single option result
- Show "Supported by <beautifiers>" for each language option
    - Beautifiers have a name
    - Beautifier options definition is used to determine if
    language option is supported by a beautifier
- Remove SQL test, since sqlformat is inconsistant
2015-05-01 02:32:02 -03:00
Glavin Wiechert 26ab3ec198 See #282. Add global language option transforms for beautifier
Beautifier can have global language option transforms
with "_" (underscore) key.
2015-04-30 16:45:45 -03:00
Glavin Wiechert 1a92e608d5 See #164. Remove CLI Path options for CLI beautifiers
CLI beautifiers no longer need hardcoded/fixed paths
to their executable, since the PATH and
other environment variables are being auto-detected
2015-04-30 15:53:24 -03:00
Glavin Wiechert 240368fb09 Closes #164. Auto-detect Shell environment variables 2015-04-30 15:13:53 -03:00
Glavin Wiechert 0b1d0216d9 All tests should pass with new internal API 2015-04-30 13:23:41 -03:00
Glavin Wiechert 7432334d08 See #282. Restructure internal API
Done:
- Create base Beautifier class
- All Languages are separate files
- Options are separated for each language
- Beautifiers reference applicable Languages/Options
- Atom Beautify builds and tests can run
  - 19 failures out of 34 tests

TODO:
- Render Language Options to Atom Package Settings
- Support for Language fallback option namespaces
- Support for chosing from multiple applicable beautifiers
2015-04-29 04:50:09 -03:00