Merge pull request #1220 from quilicicf/master_bash_beautifier

🆕 Add beautysh as bash/shell beautifier
This commit is contained in:
Glavin Wiechert 2016-12-29 19:34:21 -04:00 committed by GitHub
commit c273e7ff4a
34 changed files with 2025 additions and 137 deletions

View File

@ -138,3 +138,5 @@ before_install:
- opam install --yes ocp-indent
# Crystal
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install crystal-lang; fi
# Bash
- pip install beautysh

View File

@ -63,6 +63,7 @@ See [all supported options in the documentation at `docs/options.md`](docs/opti
| --- | --- | --- | ---- |
| Apex | `Apex` |`.cls`, `.trigger` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
| Arduino | `Arduino` |`.ino`, `.pde` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
| Bash | `Shell Script` |`.bash`, `.sh` | [`beautysh`](https://github.com/bemeurer/beautysh) (Default) |
| C | `C`, `opencl` |`.h`, `.c`, `.cl` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) |
| Coldfusion | `html` |`.cfm`, `.cfml`, `.cfc` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
| Clojure | `Clojure` |`.clj`, `.cljs`, `.edn` | [`cljfmt`](https://github.com/snoe/node-cljfmt) (Default) |

View File

@ -50,6 +50,11 @@
Beautifier
</a>
</li>
<li>
<a href='class/BashBeautify.html'>
BashBeautify
</a>
</li>
<li>
<a href='class/Beautifiers.html'>
Beautifiers
@ -65,6 +70,11 @@
ClangFormat
</a>
</li>
<li>
<a href='class/Cljfmt.html'>
Cljfmt
</a>
</li>
<li>
<a href='class/CoffeeFmt.html'>
CoffeeFmt
@ -175,6 +185,11 @@
Lua
</a>
</li>
<li>
<a href='class/Languages.html'>
Languages
</a>
</li>
<li>
<a href='class/LoadingView.html'>
LoadingView
@ -380,6 +395,14 @@
(src&#47;beautifiers)
</small>
</li>
<li>
<a href='file/src/beautifiers/beautysh.coffee.html'>
beautysh.coffee
</a>
<small>
(src&#47;beautifiers)
</small>
</li>
<li>
<a href='file/src/beautify.coffee.html'>
beautify.coffee
@ -388,6 +411,14 @@
(src)
</small>
</li>
<li>
<a href='file/src/languages/bash.coffee.html'>
bash.coffee
</a>
<small>
(src&#47;languages)
</small>
</li>
</ul>
</ul>
<ul>
@ -465,6 +496,14 @@
(src&#47;languages)
</small>
</li>
<li>
<a href='file/src/languages/clojure.coffee.html'>
clojure.coffee
</a>
<small>
(src&#47;languages)
</small>
</li>
<li>
<a href='file/src/languages/coffeescript.coffee.html'>
coffeescript.coffee
@ -679,6 +718,14 @@
<ul>
<li class='letter'>i</li>
<ul>
<li>
<a href='file/src/beautifiers/cljfmt/index.coffee.html'>
index.coffee
</a>
<small>
(src&#47;beautifiers&#47;cljfmt)
</small>
</li>
<li>
<a href='file/src/beautifiers/formatR/index.coffee.html'>
index.coffee
@ -1206,6 +1253,19 @@
</li>
</ul>
</ul>
<ul>
<li class='letter'>u</li>
<ul>
<li>
<a href='file/src/languages/ux_markup.coffee.html'>
ux_markup.coffee
</a>
<small>
(src&#47;languages)
</small>
</li>
</ul>
</ul>
<ul>
<li class='letter'>v</li>
<ul>

View File

@ -0,0 +1,206 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../javascript/application.js'></script>
<script src='../javascript/search.js'></script>
<link rel='stylesheet' href='../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../'></div>
<div id='header'>
<div id='menu'>
<a href='../extra/README.md.html' title='Atom-Beautify'>
Atom-Beautify
</a>
&raquo;
<a href='../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>BashBeautify</span>
</div>
</div>
<div id='content'>
<h1>
Class:
BashBeautify
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>src&#47;beautifiers&#47;beautysh.coffee</td>
</tr>
<tr>
<td>Inherits:</td>
<td>
<a href='../class/Beautifier.html'>Beautifier</a>
</td>
</tr>
</table>
<h2>Variables Summary</h2>
<dl class='constants'>
<dt id='name-variable'>
name
=
</dt>
<dd>
<pre><code class='coffeescript'>&quot;beautysh&quot;</code></pre>
</dd>
<dt id='link-variable'>
link
=
</dt>
<dd>
<pre><code class='coffeescript'>&quot;https:&#47;&#47;github.com&#47;bemeurer&#47;beautysh&quot;</code></pre>
</dd>
<dt id='options-variable'>
options
=
</dt>
<dd>
<pre><code class='coffeescript'>{
Bash: {
indent_size: true
}
}</code></pre>
</dd>
</dl>
<h3 class='inherited'>
Variable inherited from
<a href='../class/Beautifier.html'>Beautifier</a>
</h3>
<p class='inherited'>
<a href='../class/Beautifier.html#Promise-variable'>Promise</a>
<a href='../class/Beautifier.html#name-variable'>name</a>
<a href='../class/Beautifier.html#options-variable'>options</a>
<a href='../class/Beautifier.html#languages-variable'>languages</a>
<a href='../class/Beautifier.html#beautify-variable'>beautify</a>
<a href='../class/Beautifier.html#_envCache-variable'>_envCache</a>
<a href='../class/Beautifier.html#_envCacheDate-variable'>_envCacheDate</a>
<a href='../class/Beautifier.html#_envCacheExpiry-variable'>_envCacheExpiry</a>
<a href='../class/Beautifier.html#logger-variable'>logger</a>
</p>
<h2>Instance Method Summary</h2>
<ul class='summary'>
<li>
<span class='signature'>
<a href='#beautify-dynamic'>
#
(void)
<b>beautify</b><span>(text, language, options)</span>
</a>
</span>
<span class='desc'>
</span>
</li>
</ul>
<h2>
<small>Inherited Method Summary</small>
<h3 class='inherited'>
Methods inherited from
<a href='../class/Beautifier.html'>Beautifier</a>
</h3>
<p class='inherited'>
<a href='../class/Beautifier.html#deprecate-dynamic'>#deprecate</a>
<a href='../class/Beautifier.html#tempFile-dynamic'>#tempFile</a>
<a href='../class/Beautifier.html#readFile-dynamic'>#readFile</a>
<a href='../class/Beautifier.html#findFile-dynamic'>#findFile</a>
<a href='../class/Beautifier.html#getShellEnvironment-dynamic'>#getShellEnvironment</a>
<a href='../class/Beautifier.html#which-dynamic'>#which</a>
<a href='../class/Beautifier.html#commandNotFoundError-dynamic'>#commandNotFoundError</a>
<a href='../class/Beautifier.html#run-dynamic'>#run</a>
<a href='../class/Beautifier.html#spawn-dynamic'>#spawn</a>
<a href='../class/Beautifier.html#setupLogger-dynamic'>#setupLogger</a>
</p>
</h2>
<h2>Instance Method Details</h2>
<div class='methods'>
<div class='method_details'>
<p class='signature' id='beautify-dynamic'>
#
(void)
<b>beautify</b><span>(text, language, options)</span>
<br>
</p>
</div>
</div>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>

View File

@ -36,7 +36,9 @@
<h2>Direct Known Subclasses</h2>
<p class='children'>
<a href='../class/Autopep8.html'>Autopep8</a>
<a href='../class/BashBeautify.html'>BashBeautify</a>
<a href='../class/ClangFormat.html'>ClangFormat</a>
<a href='../class/Cljfmt.html'>Cljfmt</a>
<a href='../class/CoffeeFmt.html'>CoffeeFmt</a>
<a href='../class/CoffeeFormatter.html'>CoffeeFormatter</a>
<a href='../class/Crystal.html'>Crystal</a>

View File

@ -39,12 +39,6 @@
</td>
</tr>
</table>
<h2>Overview</h2>
<div class='docstring'>
<p>Register all supported beautifiers</p>
</div>
<div class='tags'>
</div>
<h2>Variables Summary</h2>
<dl class='constants'>
<dt id='beautifierNames-variable'>
@ -52,7 +46,7 @@
=
</dt>
<dd>
<pre><code class='coffeescript'>[&#39;uncrustify&#39;, &#39;autopep8&#39;, &#39;coffee-formatter&#39;, &#39;coffee-fmt&#39;, &#39;clang-format&#39;, &#39;crystal&#39;, &#39;dfmt&#39;, &#39;elm-format&#39;, &#39;htmlbeautifier&#39;, &#39;csscomb&#39;, &#39;gherkin&#39;, &#39;gofmt&#39;, &#39;latex-beautify&#39;, &#39;fortran-beautifier&#39;, &#39;js-beautify&#39;, &#39;jscs&#39;, &#39;lua-beautifier&#39;, &#39;ocp-indent&#39;, &#39;perltidy&#39;, &#39;php-cs-fixer&#39;, &#39;phpcbf&#39;, &#39;prettydiff&#39;, &#39;pug-beautify&#39;, &#39;puppet-fix&#39;, &#39;remark&#39;, &#39;rubocop&#39;, &#39;ruby-beautify&#39;, &#39;rustfmt&#39;, &#39;sass-convert&#39;, &#39;sqlformat&#39;, &#39;stylish-haskell&#39;, &#39;tidy-markdown&#39;, &#39;typescript-formatter&#39;, &#39;vue-beautifier&#39;, &#39;yapf&#39;, &#39;erl_tidy&#39;, &#39;marko-beautifier&#39;, &#39;formatR&#39;]</code></pre>
<pre><code class='coffeescript'>[&#39;uncrustify&#39;, &#39;autopep8&#39;, &#39;coffee-formatter&#39;, &#39;coffee-fmt&#39;, &#39;cljfmt&#39;, &#39;clang-format&#39;, &#39;crystal&#39;, &#39;dfmt&#39;, &#39;elm-format&#39;, &#39;htmlbeautifier&#39;, &#39;csscomb&#39;, &#39;gherkin&#39;, &#39;gofmt&#39;, &#39;latex-beautify&#39;, &#39;fortran-beautifier&#39;, &#39;js-beautify&#39;, &#39;jscs&#39;, &#39;lua-beautifier&#39;, &#39;ocp-indent&#39;, &#39;perltidy&#39;, &#39;php-cs-fixer&#39;, &#39;phpcbf&#39;, &#39;prettydiff&#39;, &#39;pug-beautify&#39;, &#39;puppet-fix&#39;, &#39;remark&#39;, &#39;rubocop&#39;, &#39;ruby-beautify&#39;, &#39;rustfmt&#39;, &#39;sass-convert&#39;, &#39;sqlformat&#39;, &#39;stylish-haskell&#39;, &#39;tidy-markdown&#39;, &#39;typescript-formatter&#39;, &#39;vue-beautifier&#39;, &#39;yapf&#39;, &#39;erl_tidy&#39;, &#39;marko-beautifier&#39;, &#39;formatR&#39;, &#39;beautysh&#39;]</code></pre>
<div class='docstring'>
<p>List of beautifier names</p><p>To register a beautifier add its name here</p>
</div>

204
docs/code/class/Cljfmt.html Normal file
View File

@ -0,0 +1,204 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../javascript/application.js'></script>
<script src='../javascript/search.js'></script>
<link rel='stylesheet' href='../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../'></div>
<div id='header'>
<div id='menu'>
<a href='../extra/README.md.html' title='Atom-Beautify'>
Atom-Beautify
</a>
&raquo;
<a href='../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>Cljfmt</span>
</div>
</div>
<div id='content'>
<h1>
Class:
Cljfmt
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>src&#47;beautifiers&#47;cljfmt&#47;index.coffee</td>
</tr>
<tr>
<td>Inherits:</td>
<td>
<a href='../class/Beautifier.html'>Beautifier</a>
</td>
</tr>
</table>
<h2>Variables Summary</h2>
<dl class='constants'>
<dt id='name-variable'>
name
=
</dt>
<dd>
<pre><code class='coffeescript'>&quot;cljfmt&quot;</code></pre>
</dd>
<dt id='link-variable'>
link
=
</dt>
<dd>
<pre><code class='coffeescript'>&quot;https:&#47;&#47;github.com&#47;snoe&#47;node-cljfmt&quot;</code></pre>
</dd>
<dt id='options-variable'>
options
=
</dt>
<dd>
<pre><code class='coffeescript'>{
Clojure: false
}</code></pre>
</dd>
</dl>
<h3 class='inherited'>
Variable inherited from
<a href='../class/Beautifier.html'>Beautifier</a>
</h3>
<p class='inherited'>
<a href='../class/Beautifier.html#Promise-variable'>Promise</a>
<a href='../class/Beautifier.html#name-variable'>name</a>
<a href='../class/Beautifier.html#options-variable'>options</a>
<a href='../class/Beautifier.html#languages-variable'>languages</a>
<a href='../class/Beautifier.html#beautify-variable'>beautify</a>
<a href='../class/Beautifier.html#_envCache-variable'>_envCache</a>
<a href='../class/Beautifier.html#_envCacheDate-variable'>_envCacheDate</a>
<a href='../class/Beautifier.html#_envCacheExpiry-variable'>_envCacheExpiry</a>
<a href='../class/Beautifier.html#logger-variable'>logger</a>
</p>
<h2>Instance Method Summary</h2>
<ul class='summary'>
<li>
<span class='signature'>
<a href='#beautify-dynamic'>
#
(void)
<b>beautify</b><span>(text, language, options)</span>
</a>
</span>
<span class='desc'>
</span>
</li>
</ul>
<h2>
<small>Inherited Method Summary</small>
<h3 class='inherited'>
Methods inherited from
<a href='../class/Beautifier.html'>Beautifier</a>
</h3>
<p class='inherited'>
<a href='../class/Beautifier.html#deprecate-dynamic'>#deprecate</a>
<a href='../class/Beautifier.html#tempFile-dynamic'>#tempFile</a>
<a href='../class/Beautifier.html#readFile-dynamic'>#readFile</a>
<a href='../class/Beautifier.html#findFile-dynamic'>#findFile</a>
<a href='../class/Beautifier.html#getShellEnvironment-dynamic'>#getShellEnvironment</a>
<a href='../class/Beautifier.html#which-dynamic'>#which</a>
<a href='../class/Beautifier.html#commandNotFoundError-dynamic'>#commandNotFoundError</a>
<a href='../class/Beautifier.html#run-dynamic'>#run</a>
<a href='../class/Beautifier.html#spawn-dynamic'>#spawn</a>
<a href='../class/Beautifier.html#setupLogger-dynamic'>#setupLogger</a>
</p>
</h2>
<h2>Instance Method Details</h2>
<div class='methods'>
<div class='method_details'>
<p class='signature' id='beautify-dynamic'>
#
(void)
<b>beautify</b><span>(text, language, options)</span>
<br>
</p>
</div>
</div>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>

View File

@ -0,0 +1,196 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../javascript/application.js'></script>
<script src='../javascript/search.js'></script>
<link rel='stylesheet' href='../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../'></div>
<div id='header'>
<div id='menu'>
<a href='../extra/README.md.html' title='Atom-Beautify'>
Atom-Beautify
</a>
&raquo;
<a href='../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>Languages</span>
</div>
</div>
<div id='content'>
<h1>
Class:
Languages
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>src&#47;languages&#47;index.coffee</td>
</tr>
</table>
<h2>Variables Summary</h2>
<dl class='constants'>
<dt id='languageNames-variable'>
languageNames
=
</dt>
<dd>
<pre><code class='coffeescript'>[&quot;apex&quot;, &quot;arduino&quot;, &quot;bash&quot;, &quot;c-sharp&quot;, &quot;c&quot;, &quot;clojure&quot;, &quot;coffeescript&quot;, &quot;coldfusion&quot;, &quot;cpp&quot;, &quot;crystal&quot;, &quot;css&quot;, &quot;csv&quot;, &quot;d&quot;, &quot;ejs&quot;, &quot;elm&quot;, &quot;erb&quot;, &quot;erlang&quot;, &quot;gherkin&quot;, &quot;go&quot;, &quot;fortran&quot;, &quot;handlebars&quot;, &quot;haskell&quot;, &quot;html&quot;, &quot;jade&quot;, &quot;java&quot;, &quot;javascript&quot;, &quot;json&quot;, &quot;jsx&quot;, &quot;latex&quot;, &quot;less&quot;, &quot;lua&quot;, &quot;markdown&quot;, &#39;marko&#39;, &quot;mustache&quot;, &quot;nunjucks&quot;, &quot;objective-c&quot;, &quot;ocaml&quot;, &quot;pawn&quot;, &quot;perl&quot;, &quot;php&quot;, &quot;puppet&quot;, &quot;python&quot;, &quot;r&quot;, &quot;riotjs&quot;, &quot;ruby&quot;, &quot;rust&quot;, &quot;sass&quot;, &quot;scss&quot;, &quot;spacebars&quot;, &quot;sql&quot;, &quot;svg&quot;, &quot;swig&quot;, &quot;tss&quot;, &quot;twig&quot;, &quot;typescript&quot;, &quot;ux_markup&quot;, &quot;vala&quot;, &quot;vue&quot;, &quot;visualforce&quot;, &quot;xml&quot;, &quot;xtemplate&quot;]</code></pre>
<div class='docstring'>
<p>Supported unique configuration keys
Used for detecting nested configurations in .jsbeautifyrc</p>
</div>
<div class='tags'>
</div>
</dd>
<dt id='languages-variable'>
languages
=
</dt>
<dd>
<pre><code class='coffeescript'>null</code></pre>
<div class='docstring'>
<p>Languages</p>
</div>
<div class='tags'>
</div>
</dd>
<dt id='namespaces-variable'>
namespaces
=
</dt>
<dd>
<pre><code class='coffeescript'>null</code></pre>
<div class='docstring'>
<p>Namespaces</p>
</div>
<div class='tags'>
</div>
</dd>
</dl>
<h2>Instance Method Summary</h2>
<ul class='summary'>
<li>
<span class='signature'>
<a href='#getLanguages-dynamic'>
#
(void)
<b>getLanguages</b><span>({name, namespace, grammar, extension})</span>
</a>
</span>
<span class='desc'>
Get language for grammar and extension
</span>
</li>
</ul>
<h2>Constructor Details</h2>
<div class='methods'>
<div class='method_details'>
<p class='signature' id='constructor-dynamic'>
#
(void)
<b>constructor</b><span>()</span>
<br>
</p>
<div class='docstring'>
<p>Constructor</p>
</div>
<div class='tags'>
</div>
</div>
</div>
<h2>Instance Method Details</h2>
<div class='methods'>
<div class='method_details'>
<p class='signature' id='getLanguages-dynamic'>
#
(void)
<b>getLanguages</b><span>({name, namespace, grammar, extension})</span>
<br>
</p>
<div class='docstring'>
<p>Get language for grammar and extension</p>
</div>
<div class='tags'>
</div>
</div>
</div>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>

View File

@ -132,7 +132,8 @@
}
}
],
ternaryline: &quot;preserve_ternary_lines&quot;
ternaryline: &quot;preserve_ternary_lines&quot;,
bracepadding: &quot;space_in_paren&quot;
},
&#47;*
@ -157,6 +158,7 @@
Twig: true,
LESS: true,
Swig: true,
&quot;UX Markup&quot;: true,
Visualforce: true,
&quot;Riot.js&quot;: true,
XTemplate: true

View File

@ -49,6 +49,18 @@
</small>
</li>
<li>
<a href='class/BashBeautify.html' target='main'>
BashBeautify
</a>
<small class='parent'>
<
Beautifier
</small>
<small class='namespace'>
</small>
</li>
<li>
<a href='class/ClangFormat.html' target='main'>
ClangFormat
@ -61,6 +73,18 @@
</small>
</li>
<li>
<a href='class/Cljfmt.html' target='main'>
Cljfmt
</a>
<small class='parent'>
<
Beautifier
</small>
<small class='namespace'>
</small>
</li>
<li>
<a href='class/CoffeeFmt.html' target='main'>
CoffeeFmt
@ -493,6 +517,14 @@
</small>
</li>
<li>
<a href='class/Languages.html' target='main'>
Languages
</a>
<small class='namespace'>
</small>
</li>
<li>
<a href='class/LoadingView.html' target='main'>
LoadingView

View File

@ -45,6 +45,7 @@
<li>Closes <a href="https://github.com/Glavin001/atom-beautify/issues/786">#786</a> YAPF configuration files are ignored.</li>
<li>Fix phpcbf hanging issue by closing stdin. See <a href="https://github.com/Glavin001/atom-beautify/issues/893">#893</a></li>
<li>Add warning notification when parsing <code>.jsbeautifyrc</code> as JSON or YAML fails. See <a href="https://github.com/Glavin001/atom-beautify/issues/1106">#1106</a></li>
<li>Add support for PrettyDiff&#39;s <em>bracepadding</em> option in JavaScript. See <a href="https://github.com/Glavin001/atom-beautify/issues/1157">#1157</a></li>
</ul>
<h1 id="v0-29-0">v0.29.0</h1>
<ul>

View File

@ -118,6 +118,12 @@ Thank you.</p><h2 id="language-support">Language Support</h2><p>See <a href="htt
<td><a href="https://github.com/uncrustify/uncrustify"><code>Uncrustify</code></a> (Default)</td>
</tr>
<tr>
<td>Bash</td>
<td><code>Shell Script</code></td>
<td><code>.bash</code>, <code>.sh</code></td>
<td><a href="https://github.com/bemeurer/beautysh"><code>beautysh</code></a> (Default)</td>
</tr>
<tr>
<td>C</td>
<td><code>C</code>, <code>opencl</code></td>
<td><code>.h</code>, <code>.c</code>, <code>.cl</code></td>
@ -130,6 +136,12 @@ Thank you.</p><h2 id="language-support">Language Support</h2><p>See <a href="htt
<td><a href="https://github.com/prettydiff/prettydiff"><code>Pretty Diff</code></a> (Default)</td>
</tr>
<tr>
<td>Clojure</td>
<td><code>Clojure</code></td>
<td><code>.clj</code>, <code>.cljs</code>, <code>.edn</code></td>
<td><a href="https://github.com/snoe/node-cljfmt"><code>cljfmt</code></a> (Default)</td>
</tr>
<tr>
<td>CoffeeScript</td>
<td><code>CoffeeScript</code></td>
<td><code>.coffee</code></td>
@ -257,7 +269,7 @@ Thank you.</p><h2 id="language-support">Language Support</h2><p>See <a href="htt
</tr>
<tr>
<td>JSX</td>
<td><code>JSX</code>, <code>JavaScript (JSX)</code></td>
<td><code>JSX</code>, <code>JavaScript (JSX)</code>, <code>Babel ES6 JavaScript</code></td>
<td><code>.jsx</code>, <code>.js</code></td>
<td><a href="https://github.com/prettydiff/prettydiff"><code>Pretty Diff</code></a> (Default)</td>
</tr>
@ -424,6 +436,12 @@ Thank you.</p><h2 id="language-support">Language Support</h2><p>See <a href="htt
<td><a href="https://github.com/vvakame/typescript-formatter"><code>TypeScript Formatter</code></a> (Default)</td>
</tr>
<tr>
<td>UX Markup</td>
<td><code>UX</code></td>
<td><code>.ux</code></td>
<td><a href="https://github.com/prettydiff/prettydiff"><code>Pretty Diff</code></a> (Default)</td>
</tr>
<tr>
<td>Vala</td>
<td><code>Vala</code></td>
<td><code>.vala</code>, <code>.vapi</code></td>

View File

@ -0,0 +1,123 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../../../javascript/application.js'></script>
<script src='../../../javascript/search.js'></script>
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../../../'></div>
<div id='header'>
<div id='menu'>
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
Atom-Beautify
</a>
&raquo;
<a href='../../../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>src</span>
&raquo;
<span class='title'>beautifiers</span>
&raquo;
<span class='title'>bash-beautify.coffee</span>
</div>
</div>
<div id='content'>
<h1>
File:
bash-beautify.coffee
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>src&#47;beautifiers</td>
</tr>
<tr>
<td>
Classes:
</td>
<td>
<a href='../../../class/BashBeautify.html'>
BashBeautify
</a>
</td>
</tr>
</table>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>

View File

@ -0,0 +1,123 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../../../javascript/application.js'></script>
<script src='../../../javascript/search.js'></script>
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../../../'></div>
<div id='header'>
<div id='menu'>
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
Atom-Beautify
</a>
&raquo;
<a href='../../../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>src</span>
&raquo;
<span class='title'>beautifiers</span>
&raquo;
<span class='title'>beautifysh.coffee</span>
</div>
</div>
<div id='content'>
<h1>
File:
beautifysh.coffee
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>src&#47;beautifiers</td>
</tr>
<tr>
<td>
Classes:
</td>
<td>
<a href='../../../class/BashBeautify.html'>
BashBeautify
</a>
</td>
</tr>
</table>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>

View File

@ -0,0 +1,123 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../../../javascript/application.js'></script>
<script src='../../../javascript/search.js'></script>
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../../../'></div>
<div id='header'>
<div id='menu'>
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
Atom-Beautify
</a>
&raquo;
<a href='../../../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>src</span>
&raquo;
<span class='title'>beautifiers</span>
&raquo;
<span class='title'>beautysh.coffee</span>
</div>
</div>
<div id='content'>
<h1>
File:
beautysh.coffee
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>src&#47;beautifiers</td>
</tr>
<tr>
<td>
Classes:
</td>
<td>
<a href='../../../class/BashBeautify.html'>
BashBeautify
</a>
</td>
</tr>
</table>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>

View File

@ -0,0 +1,125 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../../../../javascript/application.js'></script>
<script src='../../../../javascript/search.js'></script>
<link rel='stylesheet' href='../../../../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../../../../'></div>
<div id='header'>
<div id='menu'>
<a href='../../../../extra/README.md.html' title='Atom-Beautify'>
Atom-Beautify
</a>
&raquo;
<a href='../../../../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>src</span>
&raquo;
<span class='title'>beautifiers</span>
&raquo;
<span class='title'>cljfmt</span>
&raquo;
<span class='title'>index.coffee</span>
</div>
</div>
<div id='content'>
<h1>
File:
index.coffee
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>src&#47;beautifiers&#47;cljfmt</td>
</tr>
<tr>
<td>
Classes:
</td>
<td>
<a href='../../../../class/Cljfmt.html'>
Cljfmt
</a>
</td>
</tr>
</table>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>

View File

@ -0,0 +1,162 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../../../javascript/application.js'></script>
<script src='../../../javascript/search.js'></script>
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../../../'></div>
<div id='header'>
<div id='menu'>
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
Atom-Beautify
</a>
&raquo;
<a href='../../../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>src</span>
&raquo;
<span class='title'>languages</span>
&raquo;
<span class='title'>bash.coffee</span>
</div>
</div>
<div id='content'>
<h1>
File:
bash.coffee
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>src&#47;languages</td>
</tr>
</table>
<h2>Variables Summary</h2>
<dl class='constants'>
<dt id='scope-variable'>
scope
=
</dt>
<dd>
<pre><code class='coffeescript'>[&#39;source.sh&#39;, &#39;source.bash&#39;]</code></pre>
</dd>
<dt id='defaultIndentSize-variable'>
defaultIndentSize
=
</dt>
<dd>
<pre><code class='coffeescript'>(softTabs ? tabLength : 1)</code></pre>
</dd>
<dt id='module.exports-variable'>
module.exports
=
</dt>
<dd>
<pre><code class='coffeescript'>{
name: &quot;Bash&quot;,
namespace: &quot;bash&quot;,
&#47;*
Supported Grammars
*&#47;
grammars: [&quot;Shell Script&quot;],
defaultBeautifier: &quot;beautysh&quot;,
&#47;*
Supported extensions
*&#47;
extensions: [&quot;bash&quot;, &quot;sh&quot;],
options: {
indent_size: {
type: &#39;integer&#39;,
&quot;default&quot;: defaultIndentSize,
minimum: 0,
description: &quot;Indentation size&#47;length&quot;
}
}
}</code></pre>
</dd>
</dl>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>

View File

@ -0,0 +1,138 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../../../javascript/application.js'></script>
<script src='../../../javascript/search.js'></script>
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../../../'></div>
<div id='header'>
<div id='menu'>
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
Atom-Beautify
</a>
&raquo;
<a href='../../../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>src</span>
&raquo;
<span class='title'>languages</span>
&raquo;
<span class='title'>clojure.coffee</span>
</div>
</div>
<div id='content'>
<h1>
File:
clojure.coffee
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>src&#47;languages</td>
</tr>
</table>
<h2>Variables Summary</h2>
<dl class='constants'>
<dt id='module.exports-variable'>
module.exports
=
</dt>
<dd>
<pre><code class='coffeescript'>{
name: &quot;Clojure&quot;,
namespace: &quot;clj&quot;,
&#47;*
Supported Grammars
*&#47;
grammars: [&quot;Clojure&quot;],
&#47;*
Supported extensions
*&#47;
extensions: [&#39;clj&#39;, &#39;cljs&#39;, &#39;edn&#39;],
defaultBeautifier: &quot;cljfmt&quot;
}</code></pre>
</dd>
</dl>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>

View File

@ -36,6 +36,16 @@
<td>Defined in:</td>
<td>src&#47;languages</td>
</tr>
<tr>
<td>
Classes:
</td>
<td>
<a href='../../../class/Languages.html'>
Languages
</a>
</td>
</tr>
</table>
<h2>Variables Summary</h2>
<dl class='constants'>

View File

@ -52,7 +52,7 @@
&#47;*
Supported Grammars
*&#47;
grammars: [&quot;JSX&quot;, &quot;JavaScript (JSX)&quot;],
grammars: [&quot;JSX&quot;, &quot;JavaScript (JSX)&quot;, &quot;Babel ES6 JavaScript&quot;],
&#47;*
Supported extensions

View File

@ -0,0 +1,139 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Atom-Beautify Documentation</title>
<script src='../../../javascript/application.js'></script>
<script src='../../../javascript/search.js'></script>
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../../../'></div>
<div id='header'>
<div id='menu'>
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
Atom-Beautify
</a>
&raquo;
<a href='../../../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>src</span>
&raquo;
<span class='title'>languages</span>
&raquo;
<span class='title'>ux_markup.coffee</span>
</div>
</div>
<div id='content'>
<h1>
File:
ux_markup.coffee
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>src&#47;languages</td>
</tr>
</table>
<h2>Variables Summary</h2>
<dl class='constants'>
<dt id='module.exports-variable'>
module.exports
=
</dt>
<dd>
<pre><code class='coffeescript'>{
name: &quot;UX Markup&quot;,
namespace: &quot;ux&quot;,
fallback: [&#39;html&#39;],
&#47;*
Supported Grammars
*&#47;
grammars: [&quot;UX&quot;],
&#47;*
Supported extensions
*&#47;
extensions: [&quot;ux&quot;],
defaultBeautifier: &quot;Pretty Diff&quot;
}</code></pre>
</dd>
</dl>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>

View File

@ -57,6 +57,14 @@
src&#47;beautifiers
</small>
</li>
<li>
<a href='file/src/beautifiers/beautysh.coffee.html' target='main'>
beautysh.coffee
</a>
<small class='namespace'>
src&#47;beautifiers
</small>
</li>
<li>
<a href='file/src/beautifiers/clang-format.coffee.html' target='main'>
clang-format.coffee
@ -65,6 +73,22 @@
src&#47;beautifiers
</small>
</li>
<li>
<span>
cljfmt
</span>
</li>
<ul>
<li>
<a href='file/src/beautifiers/cljfmt/index.coffee.html' target='main'>
index.coffee
</a>
<small class='namespace'>
src&#47;beautifiers&#47;cljfmt
</small>
</li>
</ul>
<li>
<a href='file/src/beautifiers/coffee-fmt.coffee.html' target='main'>
coffee-fmt.coffee
@ -441,6 +465,14 @@
src&#47;languages
</small>
</li>
<li>
<a href='file/src/languages/bash.coffee.html' target='main'>
bash.coffee
</a>
<small class='namespace'>
src&#47;languages
</small>
</li>
<li>
<a href='file/src/languages/c-sharp.coffee.html' target='main'>
c-sharp.coffee
@ -457,6 +489,14 @@
src&#47;languages
</small>
</li>
<li>
<a href='file/src/languages/clojure.coffee.html' target='main'>
clojure.coffee
</a>
<small class='namespace'>
src&#47;languages
</small>
</li>
<li>
<a href='file/src/languages/coffeescript.coffee.html' target='main'>
coffeescript.coffee
@ -857,6 +897,14 @@
src&#47;languages
</small>
</li>
<li>
<a href='file/src/languages/ux_markup.coffee.html' target='main'>
ux_markup.coffee
</a>
<small class='namespace'>
src&#47;languages
</small>
</li>
<li>
<a href='file/src/languages/vala.coffee.html' target='main'>
vala.coffee

View File

@ -11589,27 +11589,27 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
e.preventDefault();
try {
parent.frames.list.$('#search input').focus().select();
} catch (undefined) {}
} catch (error) {}
try {
return $('#search input').focus().select();
} catch (undefined) {}
} catch (error) {}
});
key('esc', function() {
try {
parent.frames.list.$('#search input').blur();
parent.frames.main.$('#help').hide();
parent.frames.main.$('#fuzzySearch').hide();
} catch (undefined) {}
} catch (error) {}
try {
parent.$("#search .active").click();
parent.$('#help').hide();
parent.$('#fuzzySearch').hide();
} catch (undefined) {}
} catch (error) {}
try {
$('#search input').blur();
$('#help').hide();
return $('#fuzzySearch').hide();
} catch (undefined) {}
} catch (error) {}
});
key('l', function() {
var body;
@ -11638,13 +11638,12 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
return loadSearch('extra_list.html', 'extra_list_link');
});
key('h', function() {
var error;
try {
return parent.frames.main.$('#help').toggle();
} catch (error) {
try {
return $('#help').toggle();
} catch (undefined) {}
} catch (error) {}
}
});
return key('t', function(e) {
@ -11652,11 +11651,11 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
try {
$('#fuzzySearch').toggle();
$('#fuzzySearch input').focus().select();
} catch (undefined) {}
} catch (error) {}
try {
parent.frames.main.$('#fuzzySearch').show();
return parent.frames.main.$('#fuzzySearch input').focus().select();
} catch (undefined) {}
} catch (error) {}
});
});

File diff suppressed because one or more lines are too long

View File

@ -38,19 +38,19 @@
</small>
</li>
<li>
<a href='class/Gofmt.html#beautify-dynamic' target='main' title='beautify'>
<a href='class/Gherkin.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Gofmt)
(Gherkin)
</small>
</li>
<li>
<a href='class/OCPIndent.html#beautify-dynamic' target='main' title='beautify'>
<a href='class/PerlTidy.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(OCPIndent)
(PerlTidy)
</small>
</li>
<li>
@ -61,6 +61,14 @@
(src&#47;beautify.coffee)
</small>
</li>
<li>
<a href='class/OCPIndent.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(OCPIndent)
</small>
</li>
<li>
<a href='class/MarkoBeautifier.html#beautify-dynamic' target='main' title='beautify'>
#beautify
@ -85,14 +93,6 @@
(LatexBeautify)
</small>
</li>
<li>
<a href='class/Rustfmt.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Rustfmt)
</small>
</li>
<li>
<a href='class/Autopep8.html#beautify-dynamic' target='main' title='beautify'>
#beautify
@ -102,43 +102,11 @@
</small>
</li>
<li>
<a href='class/JSCSFixer.html#beautify-dynamic' target='main' title='beautify'>
<a href='class/Sqlformat.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(JSCSFixer)
</small>
</li>
<li>
<a href='class/RubyBeautify.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(RubyBeautify)
</small>
</li>
<li>
<a href='class/JSBeautify.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(JSBeautify)
</small>
</li>
<li>
<a href='class/PHPCSFixer.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(PHPCSFixer)
</small>
</li>
<li>
<a href='class/Rubocop.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Rubocop)
(Sqlformat)
</small>
</li>
<li>
@ -149,6 +117,30 @@
(SassConvert)
</small>
</li>
<li>
<a href='class/JSCSFixer.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(JSCSFixer)
</small>
</li>
<li>
<a href='class/JSBeautify.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(JSBeautify)
</small>
</li>
<li>
<a href='class/Rustfmt.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Rustfmt)
</small>
</li>
<li>
<a href='class/PHPCBF.html#beautify-dynamic' target='main' title='beautify'>
#beautify
@ -157,6 +149,14 @@
(PHPCBF)
</small>
</li>
<li>
<a href='class/StylishHaskell.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(StylishHaskell)
</small>
</li>
<li>
<a href='class/PrettyDiff.html#beautify-dynamic' target='main' title='beautify'>
#beautify
@ -174,27 +174,35 @@
</small>
</li>
<li>
<a href='class/Yapf.html#beautify-dynamic' target='main' title='beautify'>
<a href='class/RubyBeautify.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Yapf)
(RubyBeautify)
</small>
</li>
<li>
<a href='class/Sqlformat.html#beautify-dynamic' target='main' title='beautify'>
<a href='class/TidyMarkdown.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Sqlformat)
(TidyMarkdown)
</small>
</li>
<li>
<a href='class/StylishHaskell.html#beautify-dynamic' target='main' title='beautify'>
<a href='class/BashBeautify.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(StylishHaskell)
(BashBeautify)
</small>
</li>
<li>
<a href='class/TypeScriptFormatter.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(TypeScriptFormatter)
</small>
</li>
<li>
@ -205,6 +213,14 @@
(ClangFormat)
</small>
</li>
<li>
<a href='class/Cljfmt.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Cljfmt)
</small>
</li>
<li>
<a href='class/CoffeeFmt.html#beautify-dynamic' target='main' title='beautify'>
#beautify
@ -277,14 +293,6 @@
(FortranBeautifier)
</small>
</li>
<li>
<a href='class/Gherkin.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Gherkin)
</small>
</li>
<li>
<a href='class/Beautifiers.html#beautify-dynamic' target='main' title='beautify'>
#beautify
@ -293,6 +301,14 @@
(Beautifiers)
</small>
</li>
<li>
<a href='class/Gofmt.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Gofmt)
</small>
</li>
<li>
<a href='class/HTMLBeautifier.html#beautify-dynamic' target='main' title='beautify'>
#beautify
@ -301,30 +317,6 @@
(HTMLBeautifier)
</small>
</li>
<li>
<a href='class/TidyMarkdown.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(TidyMarkdown)
</small>
</li>
<li>
<a href='class/TypeScriptFormatter.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(TypeScriptFormatter)
</small>
</li>
<li>
<a href='class/Remark.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Remark)
</small>
</li>
<li>
<a href='class/Uncrustify.html#beautify-dynamic' target='main' title='beautify'>
#beautify
@ -333,14 +325,6 @@
(Uncrustify)
</small>
</li>
<li>
<a href='class/PuppetFix.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(PuppetFix)
</small>
</li>
<li>
<a href='class/VueBeautifier.html#beautify-dynamic' target='main' title='beautify'>
#beautify
@ -350,11 +334,43 @@
</small>
</li>
<li>
<a href='class/PerlTidy.html#beautify-dynamic' target='main' title='beautify'>
<a href='class/Rubocop.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(PerlTidy)
(Rubocop)
</small>
</li>
<li>
<a href='class/Yapf.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Yapf)
</small>
</li>
<li>
<a href='class/Remark.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(Remark)
</small>
</li>
<li>
<a href='class/PuppetFix.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(PuppetFix)
</small>
</li>
<li>
<a href='class/PHPCSFixer.html#beautify-dynamic' target='main' title='beautify'>
#beautify
</a>
<small>
(PHPCSFixer)
</small>
</li>
<li>
@ -429,6 +445,22 @@
(Beautifier)
</small>
</li>
<li>
<a href='class/Languages.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(Languages)
</small>
</li>
<li>
<a href='class/Beautifiers.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(Beautifiers)
</small>
</li>
<li>
<a href='class/MessageView.html#constructor-dynamic' target='main' title='constructor'>
#constructor
@ -446,11 +478,11 @@
</small>
</li>
<li>
<a href='class/Beautifiers.html#constructor-dynamic' target='main' title='constructor'>
#constructor
<a href='class/LoadingView.html#content-static' target='main' title='content'>
.content
</a>
<small>
(Beautifiers)
(LoadingView)
</small>
</li>
<li>
@ -461,14 +493,6 @@
(MessageView)
</small>
</li>
<li>
<a href='class/LoadingView.html#content-static' target='main' title='content'>
.content
</a>
<small>
(LoadingView)
</small>
</li>
<li>
<a href='file/src/beautify.coffee.html#debug-' target='main' title='debug'>
~debug
@ -517,14 +541,6 @@
(Beautifiers)
</small>
</li>
<li>
<a href='class/Beautifier.html#findFile-dynamic' target='main' title='findFile'>
#findFile
</a>
<small>
(Beautifier)
</small>
</li>
<li>
<a href='class/Beautifiers.html#findFile-dynamic' target='main' title='findFile'>
#findFile
@ -533,6 +549,14 @@
(Beautifiers)
</small>
</li>
<li>
<a href='class/Beautifier.html#findFile-dynamic' target='main' title='findFile'>
#findFile
</a>
<small>
(Beautifier)
</small>
</li>
<li>
<a href='class/Beautifiers.html#getBeautifierForLanguage-dynamic' target='main' title='getBeautifierForLanguage'>
#getBeautifierForLanguage
@ -581,6 +605,14 @@
(Beautifiers)
</small>
</li>
<li>
<a href='class/Languages.html#getLanguages-dynamic' target='main' title='getLanguages'>
#getLanguages
</a>
<small>
(Languages)
</small>
</li>
<li>
<a href='class/Beautifiers.html#getOptions-dynamic' target='main' title='getOptions'>
#getOptions

View File

@ -319,6 +319,75 @@ Path to uncrustify config file. i.e. uncrustify.cfg (Supported by Uncrustify)
}
```
#### [Bash](#bash)
**Supported Beautifiers**: [`beautysh`](#beautysh)
| Option | beautysh |
| --- | --- |
| `disabled` | :white_check_mark: |
| `default_beautifier` | :white_check_mark: |
| `beautify_on_save` | :white_check_mark: |
**Description**:
Options for language Bash
##### [Disable Beautifying Language](#disable-beautifying-language)
**Important**: This option is only configurable from within Atom Beautify's setting panel.
**Type**: `boolean`
**Description**:
Disable Bash Beautification
**How to Configure**
1. You can open the [Settings View](https://github.com/atom/settings-view) by navigating to
*Edit > Preferences (Linux)*, *Atom > Preferences (OS X)*, or *File > Preferences (Windows)*.
2. Go into *Packages* and search for "*Atom Beautify*" package.
3. Find the option "*Disable Beautifying Language*" and change it to your desired configuration.
##### [Default Beautifier](#default-beautifier)
**Important**: This option is only configurable from within Atom Beautify's setting panel.
**Default**: `beautysh`
**Type**: `string`
**Enum**: `beautysh`
**Description**:
Default Beautifier to be used for Bash
**How to Configure**
1. You can open the [Settings View](https://github.com/atom/settings-view) by navigating to
*Edit > Preferences (Linux)*, *Atom > Preferences (OS X)*, or *File > Preferences (Windows)*.
2. Go into *Packages* and search for "*Atom Beautify*" package.
3. Find the option "*Default Beautifier*" and change it to your desired configuration.
##### [Beautify On Save](#beautify-on-save)
**Important**: This option is only configurable from within Atom Beautify's setting panel.
**Type**: `boolean`
**Description**:
Automatically beautify Bash files on save
**How to Configure**
1. You can open the [Settings View](https://github.com/atom/settings-view) by navigating to
*Edit > Preferences (Linux)*, *Atom > Preferences (OS X)*, or *File > Preferences (Windows)*.
2. Go into *Packages* and search for "*Atom Beautify*" package.
3. Find the option "*Beautify On Save*" and change it to your desired configuration.
#### [C](#c)
**Supported Beautifiers**: [`Uncrustify`](#uncrustify) [`clang-format`](#clang-format)

View File

@ -0,0 +1,11 @@
# Displays information about the network configuration
netinfo() {
printf '--------------- Network Information ---------------\n'
/sbin/ifconfig | awk /'inet addr/ {print $2}'
/sbin/ifconfig | awk /'Bcast/ {print $3}'
/sbin/ifconfig | awk /'inet addr/ {print $4}'
/sbin/ifconfig | awk /'HWaddr/ {print $4,$5}'
myIP =$(wget -qO- http://ipecho.net/plain)
printf 'Public: %s\n' "$myIP"
printf '---------------------------------------------------'
}

View File

@ -0,0 +1,11 @@
# Displays information about the network configuration
netinfo() {
printf '--------------- Network Information ---------------\n'
/sbin/ifconfig | awk /'inet addr/ {print $2}'
/sbin/ifconfig | awk /'Bcast/ {print $3}'
/sbin/ifconfig | awk /'inet addr/ {print $4}'
/sbin/ifconfig | awk /'HWaddr/ {print $4,$5}'
myIP =$(wget -qO- http://ipecho.net/plain)
printf 'Public: %s\n' "$myIP"
printf '---------------------------------------------------'
}

View File

@ -288,6 +288,8 @@
"nunjucks",
"ux markup",
"cljfmt",
"bash",
"beautysh",
"glsl"
],
"devDependencies": {
@ -295,10 +297,11 @@
"handlebars": "^4.0.2"
},
"scripts": {
"postinstall": "node script/build-options.js",
"build-options": "node script/build-options.js",
"postinstall": "npm run build-options",
"docs": "npm run build-options && coffee docs/",
"prepublish": "npm run docs",
"docs": "coffee docs/",
"lint": "coffeelint src/ spec/",
"code-docs": "codo && open docs/code/index.html"
}
}
}

View File

@ -11,6 +11,8 @@ _plus = require('underscore-plus');
require("coffee-script/register");
logger = require('../src/logger')(__filename)
Beautifiers = require("../src/beautifiers");
buildOptionsForBeautifiers = function(beautifiers, allLanguages) {
@ -380,4 +382,4 @@ fs.writeFile(outputFilename, optionsStr, function(err) {
} else {
return console.log("Beautifier options successfully saved to " + outputFilename);
}
});
});

View File

@ -0,0 +1,15 @@
"use strict"
Beautifier = require('./beautifier')
module.exports = class BashBeautify extends Beautifier
name: "beautysh"
link: "https://github.com/bemeurer/beautysh"
options: {
Bash:
indent_size: true
}
beautify: (text, language, options) ->
file = @tempFile("input", text)
@run('beautysh', [ '-i', options.indent_size, '-f', file ], help: { link: "https://github.com/bemeurer/beautysh" })
.then(=> @readFile file)

View File

@ -73,6 +73,7 @@ module.exports = class Beautifiers extends EventEmitter
'erl_tidy'
'marko-beautifier'
'formatR'
'beautysh'
]
###

35
src/languages/bash.coffee Normal file
View File

@ -0,0 +1,35 @@
scope = ['source.sh', 'source.bash']
tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 2
softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true
defaultIndentSize = (if softTabs then tabLength else 1)
module.exports = {
name: "Bash"
namespace: "bash"
###
Supported Grammars
###
grammars: [
"Shell Script"
]
defaultBeautifier: "beautysh"
###
Supported extensions
###
extensions: [
"bash"
"sh"
]
options:
indent_size:
type: 'integer'
default: defaultIndentSize
minimum: 0
description: "Indentation size/length"
}

View File

@ -14,6 +14,7 @@ module.exports = class Languages
languageNames: [
"apex"
"arduino"
"bash"
"c-sharp"
"c"
"clojure"