Commit Graph

929 Commits

Author SHA1 Message Date
Glavin Wiechert b86607acc3 Merge pull request #941 from garretwilson/issues/707
Fix issue #707 by adding Atom-based EOL detection
2016-04-23 14:27:09 -03: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 09c3d6a539 Prepare 0.29.6 release 2016-04-19 20:18:09 -03: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 b4a12a7e78 Prepare 0.29.5 release 2016-04-19 19:24:26 -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
Glavin Wiechert 6de115f8e6 Prepare 0.29.4 release 2016-04-16 20:05:21 -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 1e282de280 Prepare 0.29.3 release 2016-04-16 16:19:12 -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 3bc3c6d3a7 See #924. Add JavaScript test that is reported to crash Atom 2016-04-16 16:15:47 -03:00
Glavin Wiechert 1009945b8a Fix built-options and docs script adding duplicate beautifiers 2016-04-16 16:15:14 -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
Jan-Cornelius Molnar 106a3130e4 updated elm examples to v0.2 2016-04-14 14:05:18 +02:00
Jan-Cornelius Molnar ae38396df0 updating travis and appveyor elm-format dep 2016-04-14 12:08:37 +02:00
Jan-Cornelius Molnar a31711a0cb modified test runner 2016-04-14 11:48:49 +02:00
Jan-Cornelius Molnar 4e91dd3558 there seems to be an issue on windows where having an executable foo on the PATH and a folder foo in the cwd causes windows to be confused between the two. therefore, I renamed the folders for uncrustify and elm-format. 2016-04-14 11:19:04 +02:00
Jan-Cornelius Molnar 4906e65cdb updated build script 2016-04-14 10:53:52 +02:00
Jan-Cornelius Molnar e809a220cb appveyor 2016-04-14 10:40:16 +02:00
Jan-Cornelius Molnar 792b58d30b fixed path 2016-04-14 10:35:19 +02:00
Jan-Cornelius Molnar 77d488633b modified atom runner 2016-04-14 10:26:53 +02:00
Jan-Cornelius Molnar 8ede61e9da added elm-format to appveyor 2016-04-14 01:19:36 +02:00
Jan-Cornelius Molnar 4584d98dd6 more appveyor debugging 2016-04-14 01:14:47 +02:00
Glavin Wiechert f85ff44773 Merge pull request #916 from ewgenius/patch-1
allow beatify *.pug files
2016-04-13 10:54:30 -03:00
ewgenius 4788deaa6d adding Pug extension and grammar
*.pug files can't be beautified
2016-04-13 08:18:29 +03:00
Jan-Cornelius Molnar 7f1ca2ac73 debugging appveyor 2016-04-12 16:20:45 +02:00
Glavin Wiechert aeb39566ab Closes #905. Add Handlebars support to Pretty Diff beautifier 2016-04-12 00:30:05 -03:00
Jan-Cornelius Molnar c534a1e323 removed check for sqlparse from appveyor build script 2016-04-10 20:32:56 +02:00
Jan-Cornelius Molnar cf6a98d33f dont use > when downloading in powershell since this converts the output to unicode which is not preferable when downloading binaries 2016-04-10 20:06:28 +02:00
Jan-Cornelius Molnar 238b81867b added isort and sqlparse to appveyor 2016-04-10 19:57:24 +02:00
Jan-Cornelius Molnar af36550639 added missing packages to appveyor build script 2016-04-10 18:23:41 +02:00
Jan-Cornelius Molnar 125660c1e7 fixed appveyor uncrustify download command 2016-04-10 18:10:10 +02:00
Jan-Cornelius Molnar 55445d66ad fixed non empty check of emacs path 2016-04-10 17:31:49 +02:00
Glavin Wiechert 0e7c942cb8 Prepare 0.29.2 release 2016-04-08 09:59:40 -03:00
Glavin Wiechert f84973bbe8 Merge branch 'master' of github.com:Glavin001/atom-beautify 2016-04-08 09:58:09 -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 7d363c105b Merge pull request #904 from tcyrus/patch-1
Update README.md to use kbd tags
2016-04-07 21:31:01 -03:00
Timothy Cyrus fbe161de31 Update README.md
Use `<kbd>` tags
2016-04-07 20:25:55 -04:00
Glavin Wiechert 4cdb738d28 See #898. Add more tests for migrate settings helper 2016-04-07 11:35:15 -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 9add49118e Prepare 0.29.1 release 2016-04-04 11:00:26 -03:00
Glavin Wiechert 9daa9f0101 Update options docs 2016-04-04 11:00:13 -03:00
Glavin Wiechert 98fe2aa777 Fixes #891. Fix build-options postinstall script for Windows 2016-04-04 10:59:13 -03:00
Glavin Wiechert e919790c64 Prepare 0.29.0 release 2016-04-01 22:42:20 -03: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 c43556f636 Disable LaTeX beautification tests since they are not setup to pass 2016-04-01 18:59:37 -03:00