2019-09-20 17:08:09 -07:00
|
|
|
# Changelog
|
|
|
|
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
The format is based on [Keep a Changelog].
|
|
|
|
|
2024-02-25 18:05:44 -08:00
|
|
|
## 4.1 (released 2024-02-25)
|
2023-11-29 21:26:19 +02:00
|
|
|
### Enhancements
|
2023-12-02 02:16:34 +02:00
|
|
|
* Use `perltidy` as default formatter for `cperl-mode` ([#260]).
|
2023-11-29 21:26:19 +02:00
|
|
|
* The `perltidy` formatter now supports Emacs indentation and line length
|
|
|
|
settings ([#261]).
|
2023-12-15 04:47:50 +02:00
|
|
|
* Indent level is now determined for `graphql-mode`, `html-mode`, `ruby-mode`,
|
|
|
|
`ruby-ts-mode`, `svelte-mode`, and `yaml-mode` ([#258]).
|
2023-12-15 04:53:39 +02:00
|
|
|
* Indent level support when using yq to format JSON, XML, and YAML ([#259]).
|
2023-11-29 21:26:19 +02:00
|
|
|
|
2023-11-28 22:53:53 +02:00
|
|
|
### Formatters
|
2023-12-15 04:30:35 +02:00
|
|
|
* [`dprint`](https://dprint.dev) for various (depending on
|
|
|
|
[installed plugins](https://dprint.dev/plugins/)) ([#209]).
|
2023-11-28 22:53:53 +02:00
|
|
|
* [`js-beautify`](https://github.com/beautify-web/js-beautify) for
|
|
|
|
[JavaScript](https://www.javascript.com/),
|
|
|
|
[JSON](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON),
|
|
|
|
[HTML](https://en.wikipedia.org/wiki/HTML) and
|
|
|
|
[CSS](https://www.google.com/search?q=css)
|
|
|
|
([#229])
|
2023-12-15 04:04:19 +02:00
|
|
|
* [`python3-json`](https://docs.python.org/3/library/json.html#module-json.tool)
|
|
|
|
for JSON ([#257]).
|
2023-11-29 00:50:25 +02:00
|
|
|
* [`robotidy`](https://robotidy.readthedocs.io) for Robot Framework files
|
|
|
|
([#263]).
|
2024-01-12 11:23:26 -08:00
|
|
|
* [`ruff-isort`](https://github.com/astral-sh/ruff) for [Python](https://python.org) imports using ruff ([#279]).
|
2023-11-30 03:25:11 +08:00
|
|
|
* [denofmt](https://docs.deno.com/runtime/manual/tools/formatter) for
|
|
|
|
js, jsx, ts, tsx, json, jsonc, md files. ([#264])
|
2023-12-15 03:46:12 +01:00
|
|
|
* [docformatter](https://github.com/PyCQA/docformatter) for Python docstrings ([#267])
|
2023-12-15 10:03:18 +08:00
|
|
|
* [cljfmt](https://github.com/weavejester/cljfmt) for clojure,
|
|
|
|
clojurescript, edn files. ([#271])
|
2023-12-30 15:19:01 -06:00
|
|
|
* Stylua is used now in `lua-ts-mode` as well as just `lua-mode`, by
|
|
|
|
default ([#275]).
|
2024-02-09 01:56:49 +00:00
|
|
|
* [`treefmt`](https://numtide.github.io/treefmt) for project
|
|
|
|
configured formatters ([#280]).
|
|
|
|
* [`pyang`](https://github.com/mbj4668/pyang) for
|
|
|
|
[YANG](https://www.rfc-editor.org/rfc/rfc7950.html) ([#282]).
|
2023-11-28 22:53:53 +02:00
|
|
|
|
2023-12-30 14:31:06 -07:00
|
|
|
### Bugs fixed
|
|
|
|
* Apheleia sometimes failed to determine indent level from Emacs
|
|
|
|
settings even when configured to do so. This is fixed ([#274]).
|
|
|
|
|
2023-12-15 04:30:35 +02:00
|
|
|
[#209]: https://github.com/radian-software/apheleia/pull/209
|
2023-11-28 22:53:53 +02:00
|
|
|
[#229]: https://github.com/radian-software/apheleia/pull/229
|
2023-12-15 04:04:19 +02:00
|
|
|
[#257]: https://github.com/radian-software/apheleia/pull/257
|
2023-12-15 04:47:50 +02:00
|
|
|
[#258]: https://github.com/radian-software/apheleia/pull/258
|
2023-12-15 04:53:39 +02:00
|
|
|
[#259]: https://github.com/radian-software/apheleia/pull/259
|
2023-12-02 02:16:34 +02:00
|
|
|
[#260]: https://github.com/radian-software/apheleia/pull/260
|
2023-11-29 21:26:19 +02:00
|
|
|
[#261]: https://github.com/radian-software/apheleia/pull/261
|
2023-11-29 00:50:25 +02:00
|
|
|
[#263]: https://github.com/radian-software/apheleia/pull/263
|
2023-11-30 03:25:11 +08:00
|
|
|
[#264]: https://github.com/radian-software/apheleia/pull/264
|
2023-12-15 03:46:12 +01:00
|
|
|
[#267]: https://github.com/radian-software/apheleia/pull/267
|
2023-12-15 10:03:18 +08:00
|
|
|
[#271]: https://github.com/radian-software/apheleia/pull/271
|
2023-12-30 14:31:06 -07:00
|
|
|
[#274]: https://github.com/radian-software/apheleia/issues/274
|
2023-12-30 15:19:01 -06:00
|
|
|
[#275]: https://github.com/radian-software/apheleia/pull/275
|
2024-01-12 11:23:26 -08:00
|
|
|
[#279]: https://github.com/radian-software/apheleia/pull/279
|
2024-02-09 01:56:49 +00:00
|
|
|
[#282]: https://github.com/radian-software/apheleia/pull/282
|
2023-11-28 22:53:53 +02:00
|
|
|
|
2023-11-23 14:11:15 -08:00
|
|
|
## 4.0 (released 2023-11-23)
|
2023-09-09 16:13:13 -07:00
|
|
|
### Breaking changes
|
|
|
|
* The order of entries in `apheleia-mode-alist` is no longer as
|
|
|
|
important. Specifically, if two different mode entries in
|
|
|
|
`apheleia-mode-alist` match the current buffer, then the more
|
|
|
|
specific one is used, even if it comes later. This is generally
|
|
|
|
speaking what you would expect to happen. For other cases, such as
|
|
|
|
ordering of regex entries, or modes versus regexes, order is
|
|
|
|
respected as before ([#206]).
|
2023-09-30 09:37:20 +01:00
|
|
|
* Disable formatting of go module files with gofmt. This was never supported
|
|
|
|
([#214]).
|
2023-10-17 21:20:38 +01:00
|
|
|
* Remove support for Emacs 26 ([#215]).
|
2023-11-23 12:29:10 -08:00
|
|
|
* Emacs will infer indentation configuration from your major mode and,
|
|
|
|
by default, supply this configuration to formatters, to ensure
|
|
|
|
consistency between how you have Emacs configured and how your
|
|
|
|
formatter is configured. You can disable this by setting
|
|
|
|
`apheleia-formatters-respect-indent-level` to nil ([#167], [#208]).
|
2023-10-12 20:19:14 -07:00
|
|
|
|
2023-03-23 17:00:51 -04:00
|
|
|
### Enhancements
|
2023-09-30 21:40:48 -07:00
|
|
|
* Use the `prettier-json` formatter for `js-json-mode` ([#209]).
|
2023-03-23 17:00:51 -04:00
|
|
|
* Prettier is now enabled in `svelte-mode`.
|
2023-05-13 08:48:33 +08:00
|
|
|
* More tree-sitter based major modes have been added to
|
|
|
|
`apheleia-mode-alist` ([#191]).
|
2023-11-18 11:53:07 +11:00
|
|
|
* All marks (the current `(mark)`, and the `mark-ring`) are now
|
|
|
|
adjusted, alongside `(point)` ([#197]).
|
2023-11-05 12:08:58 -08:00
|
|
|
* Built-in formatters now use a new `"apheleia-npx"` built-in script
|
|
|
|
instead of the legacy `npx` keyword. The effect of the new script is
|
|
|
|
the same, except that it also works with Yarn PNP projects as well
|
|
|
|
as `node_modules` style projects ([#200]).
|
2023-10-17 21:20:38 +01:00
|
|
|
* Autoload the apheleia-goto-error command ([#215]).
|
2023-10-21 11:41:15 -07:00
|
|
|
* Use `lisp-indent` as default formatter for `emacs-lisp-mode` ([#223])
|
2023-10-29 23:17:34 +01:00
|
|
|
* Use `hclfmt` for formatting hashicorp HCL files ([#231])
|
2023-11-11 16:32:40 -08:00
|
|
|
* The `mix format` formatter will respect `.formatter.exs` files even
|
|
|
|
if they are present in a parent directory rather than the same
|
|
|
|
directory as the file being formatted ([#232]).
|
2023-10-17 21:20:38 +01:00
|
|
|
|
|
|
|
### Internal Changes
|
|
|
|
* Refactored the organisation of the apheleia package for ease of
|
|
|
|
understanding and usability ([#215]).
|
2023-11-05 12:08:58 -08:00
|
|
|
* The new `scripts/pnp-bin.js` script is standalone minified nodejs built
|
|
|
|
from the [`pnp-bin`](https://github.com/PuddleByteComputing/pnp-bin) repo,
|
|
|
|
extracted from apheleia PR [#200].
|
2023-11-11 16:28:17 -08:00
|
|
|
* Test environment bumped from Ubuntu 20.04 to 22.04 ([#242]).
|
2023-11-17 16:18:12 -08:00
|
|
|
* The function `apheleia--format-after-save` was renamed to
|
|
|
|
`apheleia-format-after-save`. This is only called out explicitly
|
|
|
|
because it was added to `after-save-hook` so customization that
|
|
|
|
assumed this behavior might break.
|
2023-03-29 23:35:02 +02:00
|
|
|
|
2023-03-12 00:46:17 +01:00
|
|
|
### Bugs fixed
|
|
|
|
* `ktlint` would emit log messages into its stdout when formatting,
|
|
|
|
and these would get spliced into the source file. This has been fixed
|
|
|
|
by suppressing all logs from `ktlint`.
|
Run jq without colorization (#213)
Set the -M flag to jq:
```text
λ jq --help mohkale@mk-desktop ~
jq - commandline JSON processor [version 1.7]
Usage: jq [options] <jq filter> [file...]
jq [options] --args <jq filter> [strings...]
jq [options] --jsonargs <jq filter> [JSON_TEXTS...]
jq is a tool for processing JSON inputs, applying the given filter to
its JSON text inputs and producing the filter's results as JSON on
standard output.
The simplest filter is ., which copies jq's input to its output
unmodified except for formatting. For more advanced filters see
the jq(1) manpage ("man jq") and/or https://jqlang.github.io/jq/.
Example:
$ echo '{"foo": 0}' | jq .
{
"foo": 0
}
Command options:
-n, --null-input use `null` as the single input value;
-R, --raw-input read each line as string instead of JSON;
-s, --slurp read all inputs into an array and use it as
the single input value;
-c, --compact-output compact instead of pretty-printed output;
-r, --raw-output output strings without escapes and quotes;
--raw-output0 implies -r and output NUL after each output;
-j, --join-output implies -r and output without newline after
each output;
-a, --ascii-output output strings by only ASCII characters
using escape sequences;
-S, --sort-keys sort keys of each object on output;
-C, --color-output colorize JSON output;
-M, --monochrome-output disable colored output;
--tab use tabs for indentation;
--indent n use n spaces for indentation (max 7 spaces);
--unbuffered flush output stream after each output;
--stream parse the input value in streaming fashion;
--stream-errors implies --stream and report parse error as
an array;
--seq parse input/output as application/json-seq;
-f, --from-file file load filter from the file;
-L directory search modules from the directory;
--arg name value set $name to the string value;
--argjson name value set $name to the JSON value;
--slurpfile name file set $name to an array of JSON values read
from the file;
--rawfile name file set $name to string contents of file;
--args consume remaining arguments as positional
string values;
--jsonargs consume remaining arguments as positional
JSON values;
-e, --exit-status set exit status code based on the output;
-V, --version show the version;
--build-configuration show jq's build configuration;
-h, --help show the help;
-- terminates argument processing;
Named arguments are also available as $ARGS.named[], while
positional arguments are available as $ARGS.positional[].
```
2023-10-01 00:40:18 +01:00
|
|
|
* Disable colorized output with the jq formatter ([#213]).
|
2023-10-17 21:20:38 +01:00
|
|
|
* Fixed apheleia skipped running a formatter on a remote when it isn't
|
|
|
|
installed locally ([#215]).
|
|
|
|
* Fixed clang-format formatter did not respect remote file-name component for
|
|
|
|
the assumed file-name ([#215]).
|
2023-11-23 13:14:20 -08:00
|
|
|
* Always supply `--stdin-filepath` to Prettier to allow it to pick up
|
|
|
|
the correct settings from project-level config files ([#253]).
|
2023-03-12 00:46:17 +01:00
|
|
|
|
2023-03-29 23:35:02 +02:00
|
|
|
### Formatters
|
2023-04-20 13:50:03 +01:00
|
|
|
|
2023-04-22 10:26:49 +01:00
|
|
|
* [`asmfmt`](https://github.com/klauspost/asmfmt) for assembly ([#168]).
|
2023-04-22 10:36:38 +01:00
|
|
|
* [`astyle`](https://github.com/steinwurf/astyle) for C ([#169]).
|
2023-04-22 11:34:12 +01:00
|
|
|
* [`beautysh`](https://github.com/lovesegfault/beautysh) for shell
|
|
|
|
scripts ([#170])
|
2023-04-22 11:38:15 +01:00
|
|
|
* [`buildifier`](https://github.com/bazelbuild/buildtools)
|
|
|
|
for [Bazel Build](https://bazel.build/) ([#171]).
|
2023-04-22 11:41:37 +01:00
|
|
|
* [`cmake-format`](https://github.com/cheshirekow/cmake_format)
|
|
|
|
for [CMake](https://cmake.org/) ([#172]).
|
2023-10-06 21:39:38 -07:00
|
|
|
* [`fourmolu`](https://github.com/fourmolu/fourmolu) for haskell
|
2023-11-23 22:34:41 +02:00
|
|
|
* [`gawk`](https://www.gnu.org/software/gawk/) for
|
|
|
|
[awk](https://en.wikipedia.org/wiki/AWK) ([#187]).
|
|
|
|
* [`hclfmt`](https://github.com/hashicorp/hcl/tree/main/cmd/hclfmt) for [HCL](https://github.com/hashicorp/hcl) ([#231])
|
2023-04-22 11:44:44 +01:00
|
|
|
* [`html-tidy`](https://www.html-tidy.org/) for HTML/XML ([#173]).
|
2023-11-23 22:34:41 +02:00
|
|
|
* [`jq`](https://stedolan.github.io/jq/) for
|
|
|
|
[JSON](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON)
|
|
|
|
([#174]).
|
2023-10-06 21:39:38 -07:00
|
|
|
* [`ormolu`](https://github.com/tweag/ormolu) for haskell.
|
2023-04-22 11:48:38 +01:00
|
|
|
* [`perltidy`](https://perltidy.sourceforge.net/) for
|
|
|
|
[perl](https://www.perl.org/) ([#175]).
|
2023-11-23 23:03:37 +01:00
|
|
|
* [`pgformatter`](https://github.com/darold/pgFormatter) for [SQL](https://en.wikipedia.org/wiki/SQL) ([#247])
|
2023-11-23 22:34:41 +02:00
|
|
|
* [purs-tidy](https://github.com/natefaubion/purescript-tidy) for PureScript ([#182]).
|
2023-04-22 11:53:13 +01:00
|
|
|
* [`rubocop`](https://github.com/rubocop/rubocop) for [ruby](https://www.ruby-lang.org/en/) ([#176]).
|
2023-08-11 17:25:58 -07:00
|
|
|
* [`ruby-standard`](https://github.com/standardrb/standard) for
|
|
|
|
[ruby](https://www.ruby-lang.org/en/) ([#201])
|
2023-11-11 16:24:28 -08:00
|
|
|
* [`ruff`](https://github.com/astral-sh/ruff) for
|
2023-11-04 11:23:00 -07:00
|
|
|
[python](https://python.org) ([#236])
|
2023-04-22 11:56:29 +01:00
|
|
|
* [`rufo`](https://github.com/ruby-formatter/rufo) for
|
|
|
|
[Ruby](https://www.ruby-lang.org/en/) ([#177]).
|
2023-11-23 22:34:41 +02:00
|
|
|
* [`xmllint`](https://gitlab.gnome.org/GNOME/libxml2) for XML ([#251]).
|
2023-05-27 20:55:56 +03:00
|
|
|
* [`yapf`](https://github.com/google/yapf) for [Python](https://www.python.org/) ([#196])
|
2023-11-23 22:34:41 +02:00
|
|
|
* [`yq`](https://mikefarah.gitbook.io/yq/) for YAML, JSON, CSV, TSV, XML and [.properties](https://en.wikipedia.org/wiki/.properties) ([#250]).
|
2023-03-29 23:35:02 +02:00
|
|
|
|
2023-11-23 12:29:10 -08:00
|
|
|
[#167]: https://github.com/radian-software/apheleia/pull/167
|
2023-04-22 10:26:49 +01:00
|
|
|
[#168]: https://github.com/radian-software/apheleia/pull/168
|
2023-04-22 10:36:38 +01:00
|
|
|
[#169]: https://github.com/radian-software/apheleia/pull/169
|
2023-04-22 11:34:12 +01:00
|
|
|
[#170]: https://github.com/radian-software/apheleia/pull/170
|
2023-04-22 11:38:15 +01:00
|
|
|
[#171]: https://github.com/radian-software/apheleia/pull/171
|
2023-04-22 11:41:37 +01:00
|
|
|
[#172]: https://github.com/radian-software/apheleia/pull/172
|
2023-04-22 11:44:44 +01:00
|
|
|
[#173]: https://github.com/radian-software/apheleia/pull/173
|
2023-04-20 13:50:03 +01:00
|
|
|
[#174]: https://github.com/radian-software/apheleia/pull/174
|
2023-04-22 11:48:38 +01:00
|
|
|
[#175]: https://github.com/radian-software/apheleia/pull/175
|
2023-04-22 11:53:13 +01:00
|
|
|
[#176]: https://github.com/radian-software/apheleia/pull/176
|
2023-04-22 11:56:29 +01:00
|
|
|
[#177]: https://github.com/radian-software/apheleia/pull/177
|
2023-03-29 23:35:02 +02:00
|
|
|
[#182]: https://github.com/radian-software/apheleia/pull/182
|
2023-04-20 14:33:53 +01:00
|
|
|
[#187]: https://github.com/radian-software/apheleia/pull/187
|
2023-05-27 20:55:56 +03:00
|
|
|
[#196]: https://github.com/radian-software/apheleia/pull/196
|
2023-11-18 11:53:07 +11:00
|
|
|
[#197]: https://github.com/radian-software/apheleia/issues/197
|
2023-10-12 20:19:14 -07:00
|
|
|
[#208]: https://github.com/radian-software/apheleia/discussions/208
|
2023-09-30 21:40:48 -07:00
|
|
|
[#209]: https://github.com/radian-software/apheleia/pull/209
|
Run jq without colorization (#213)
Set the -M flag to jq:
```text
λ jq --help mohkale@mk-desktop ~
jq - commandline JSON processor [version 1.7]
Usage: jq [options] <jq filter> [file...]
jq [options] --args <jq filter> [strings...]
jq [options] --jsonargs <jq filter> [JSON_TEXTS...]
jq is a tool for processing JSON inputs, applying the given filter to
its JSON text inputs and producing the filter's results as JSON on
standard output.
The simplest filter is ., which copies jq's input to its output
unmodified except for formatting. For more advanced filters see
the jq(1) manpage ("man jq") and/or https://jqlang.github.io/jq/.
Example:
$ echo '{"foo": 0}' | jq .
{
"foo": 0
}
Command options:
-n, --null-input use `null` as the single input value;
-R, --raw-input read each line as string instead of JSON;
-s, --slurp read all inputs into an array and use it as
the single input value;
-c, --compact-output compact instead of pretty-printed output;
-r, --raw-output output strings without escapes and quotes;
--raw-output0 implies -r and output NUL after each output;
-j, --join-output implies -r and output without newline after
each output;
-a, --ascii-output output strings by only ASCII characters
using escape sequences;
-S, --sort-keys sort keys of each object on output;
-C, --color-output colorize JSON output;
-M, --monochrome-output disable colored output;
--tab use tabs for indentation;
--indent n use n spaces for indentation (max 7 spaces);
--unbuffered flush output stream after each output;
--stream parse the input value in streaming fashion;
--stream-errors implies --stream and report parse error as
an array;
--seq parse input/output as application/json-seq;
-f, --from-file file load filter from the file;
-L directory search modules from the directory;
--arg name value set $name to the string value;
--argjson name value set $name to the JSON value;
--slurpfile name file set $name to an array of JSON values read
from the file;
--rawfile name file set $name to string contents of file;
--args consume remaining arguments as positional
string values;
--jsonargs consume remaining arguments as positional
JSON values;
-e, --exit-status set exit status code based on the output;
-V, --version show the version;
--build-configuration show jq's build configuration;
-h, --help show the help;
-- terminates argument processing;
Named arguments are also available as $ARGS.named[], while
positional arguments are available as $ARGS.positional[].
```
2023-10-01 00:40:18 +01:00
|
|
|
[#213]: https://github.com/radian-software/apheleia/pull/213
|
2023-09-30 09:37:20 +01:00
|
|
|
[#214]: https://github.com/radian-software/apheleia/pull/214
|
2023-10-17 21:20:38 +01:00
|
|
|
[#215]: https://github.com/radian-software/apheleia/pull/215
|
2023-10-21 11:41:15 -07:00
|
|
|
[#223]: https://github.com/radian-software/apheleia/pull/223
|
2023-10-29 23:17:34 +01:00
|
|
|
[#231]: https://github.com/radian-software/apheleia/pull/231
|
2023-11-11 16:32:40 -08:00
|
|
|
[#232]: https://github.com/radian-software/apheleia/issues/232
|
2023-11-04 11:23:00 -07:00
|
|
|
[#236]: https://github.com/radian-software/apheleia/pull/236
|
2023-11-11 16:28:17 -08:00
|
|
|
[#242]: https://github.com/radian-software/apheleia/pull/242
|
2023-11-23 13:14:20 -08:00
|
|
|
[#253]: https://github.com/radian-software/apheleia/pull/253
|
2023-11-23 23:03:37 +01:00
|
|
|
[#247]: https://github.com/radian-software/apheleia/pull/247
|
2023-03-29 23:35:02 +02:00
|
|
|
|
2023-02-25 11:31:26 -08:00
|
|
|
## 3.2 (released 2023-02-25)
|
2022-11-12 04:03:14 +01:00
|
|
|
### Features
|
2022-11-12 10:28:40 +07:00
|
|
|
* You can use `apheleia-inhibit` as a file-local variable to disable
|
|
|
|
Apheleia turning on automatically for a file or directory. You can
|
|
|
|
also use `apheleia-inhibit-functions` to configure custom logic to
|
|
|
|
prevent Apheleia from turning on automatically under certain
|
|
|
|
circumstances, without needing to adjust file-local variables. See
|
|
|
|
[#134] and [#138].
|
2022-11-12 04:03:14 +01:00
|
|
|
* `apheleia-mode` lighter is now customizable ([#143]).
|
|
|
|
|
2023-01-20 20:31:33 -07:00
|
|
|
### Changes
|
|
|
|
* shfmt is no longer enabled by default in order to prevent corruption
|
|
|
|
of zsh scripts. Re-enabling shfmt in a future release is intended,
|
|
|
|
but depends on further implementation work in Apheleia to only
|
|
|
|
enable it for supported shells.
|
|
|
|
|
2022-11-26 18:17:13 -08:00
|
|
|
### Enhancements
|
|
|
|
* Emacs 29's tree-sitter-based major modes have been added to
|
2023-02-16 02:18:21 +00:00
|
|
|
`apheleia-mode-alist` ([#145], [#148], [#151], [#155]).
|
2022-11-26 18:17:13 -08:00
|
|
|
|
2022-11-11 19:50:56 -08:00
|
|
|
### Bugs fixed
|
|
|
|
* If a formatter exited with a zero exit code when being killed by a
|
|
|
|
signal (even though that is really weird behavior and arguably a bug
|
|
|
|
in the formatter), then if a file was saved multiple times in quick
|
|
|
|
succession, its contents could be erased and replaced with an error
|
|
|
|
message from the formatter. This has been fixed. See [#131] for more
|
|
|
|
details.
|
2023-02-04 09:07:25 +09:00
|
|
|
* Npx commands in apheleia-formatters are not overwritten when
|
|
|
|
expanding binary path to node_modules directory ([#152]).
|
2023-02-15 19:00:59 -08:00
|
|
|
* Error is no longer reported when the first element of a command is
|
|
|
|
an evaluable form rather than a literal string ([#156]).
|
2022-11-11 19:50:56 -08:00
|
|
|
|
|
|
|
### Formatters
|
|
|
|
* [`crystal tool
|
|
|
|
format`](https://crystal-lang.org/reference/1.6/man/crystal/index.html#crystal-tool-format)
|
|
|
|
for [Crystal](https://crystal-lang.org/) ([#137]).
|
2022-12-10 07:37:34 +05:30
|
|
|
* [gofumpt](https://pkg.go.dev/mvdan.cc/gofumpt) and
|
|
|
|
[goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports) for
|
|
|
|
[Go](https://golang.google.cn/) ([#147]).
|
2023-02-19 02:00:08 +01:00
|
|
|
* [`caddy fmt`](https://caddyserver.com/docs/command-line#caddy-fmt)
|
|
|
|
for [Caddyfile](https://caddyserver.com/docs/caddyfile), used by
|
|
|
|
[Caddy 2](https://caddyserver.com/) ([#136])
|
2022-11-11 19:50:56 -08:00
|
|
|
|
|
|
|
[#131]: https://github.com/radian-software/apheleia/issues/131
|
|
|
|
[#134]: https://github.com/radian-software/apheleia/issues/134
|
2023-02-19 02:00:08 +01:00
|
|
|
[#136]: https://github.com/radian-software/apheleia/issues/136
|
2022-11-11 19:50:56 -08:00
|
|
|
[#137]: https://github.com/radian-software/apheleia/pull/137
|
|
|
|
[#138]: https://github.com/radian-software/apheleia/pull/138
|
|
|
|
[#143]: https://github.com/radian-software/apheleia/pull/143
|
2022-11-26 18:17:13 -08:00
|
|
|
[#145]: https://github.com/radian-software/apheleia/pull/145
|
2022-12-10 07:37:34 +05:30
|
|
|
[#147]: https://github.com/radian-software/apheleia/pull/147
|
2022-12-24 12:04:22 -05:00
|
|
|
[#148]: https://github.com/radian-software/apheleia/pull/148
|
2023-04-06 19:26:42 -04:00
|
|
|
[#151]: https://github.com/radian-software/apheleia/pull/151
|
2023-02-04 09:07:25 +09:00
|
|
|
[#152]: https://github.com/radian-software/apheleia/pull/152
|
2023-04-06 19:26:42 -04:00
|
|
|
[#155]: https://github.com/radian-software/apheleia/pull/155
|
2022-11-11 19:50:56 -08:00
|
|
|
|
2022-11-11 19:47:03 -08:00
|
|
|
## 3.1 (released 2022-11-11)
|
2022-06-04 15:37:45 -07:00
|
|
|
### Enhancements
|
|
|
|
* shfmt uses 4 spaces instead of tabs by default.
|
2022-08-14 16:28:01 -07:00
|
|
|
* Formatters using `'filepath` (OCamlFormat and Prettier) are no
|
|
|
|
longer prevented from running on a modified buffer ([#109], [#110]).
|
2022-08-21 23:47:20 +02:00
|
|
|
* Buffer content is now always passed to formatters using a pipe. This
|
|
|
|
fixes issues with formatters that behave differently when receiving
|
|
|
|
input on stdin versus being run on a tty ([#119]).
|
2022-09-10 17:24:54 -07:00
|
|
|
* Prettier now specifies `--parser` argument explicitly, so it will
|
|
|
|
work properly even when the name of the file does not match what
|
|
|
|
Prettier expects (e.g. `.yamllint` will be formatted as YAML by
|
|
|
|
Prettier as long as it is in `yaml-mode`). See [#103].
|
2022-06-04 15:37:45 -07:00
|
|
|
|
2022-08-21 23:21:21 +01:00
|
|
|
### Bugs fixed
|
|
|
|
* When a formatter has a bug and fails to return anything on stdout
|
|
|
|
(e.g. scalafmt), do not erase the buffer ([#116]).
|
2022-09-11 00:37:13 +01:00
|
|
|
* Fix `Error: "Selecting deleted buffer"` which occurred in some
|
|
|
|
circumstances due to a race condition ([#123]).
|
2022-09-11 01:06:06 +01:00
|
|
|
* Apheleia does not delete the contents of narrowed buffers when
|
|
|
|
running. Instead, it is disabled in narrowed buffers. Support for
|
|
|
|
narrowed buffers may be added in future but it has never been
|
|
|
|
correctly supported in the past (see [#43]). More at [#124], [#127].
|
2022-09-11 09:18:30 +01:00
|
|
|
* Currently, when a formatter invoked via a process isn't installed
|
|
|
|
correctly; it throws an error. It doesn't make sense to attempt to
|
|
|
|
format if we can't find the correct formatter, so instead formatting
|
|
|
|
is only attempted when the formatter is found. [#126]
|
2022-09-14 03:05:22 +01:00
|
|
|
* clang-format doesn't handle filenames correctly by default. Support
|
|
|
|
for guessing the flags from first the file name then the major mode
|
|
|
|
in the case of a temporary buffer was added in [#128]
|
2022-10-05 23:19:36 +00:00
|
|
|
* Fix handling of formatters using `inplace` in some circumstances
|
|
|
|
([#132]).
|
2022-08-21 23:21:21 +01:00
|
|
|
|
2022-06-21 06:21:27 +09:00
|
|
|
### Formatters
|
2022-09-03 18:57:40 +01:00
|
|
|
* [elm-format](https://github.com/avh4/elm-format) for Elm ([#100]).
|
2022-06-20 22:51:17 +01:00
|
|
|
* [bean-format](https://github.com/beancount/beancount) for Beancount
|
|
|
|
([#101]).
|
2022-06-21 06:21:27 +09:00
|
|
|
* [stylua](https://github.com/JohnnyMorganz/StyLua) for Lua ([#105]).
|
2022-09-03 19:22:35 +01:00
|
|
|
* Native Emacs indentation of Emacs Lisp code as a formatter ([#102]).
|
2022-09-14 19:05:04 -07:00
|
|
|
This is not enabled by default but you can enable it by adding
|
|
|
|
`(emacs-lisp-mode . lisp-indent)` to `apheleia-mode-alist`
|
2022-06-21 06:21:27 +09:00
|
|
|
|
2022-09-10 17:24:54 -07:00
|
|
|
### Bugfixes
|
|
|
|
* Prettier supports SCSS instead of SASS. The original support for
|
|
|
|
SASS in Apheleia was a bug because Prettier actually never had
|
|
|
|
support for SASS in the first place, so Apheleia would have failed
|
|
|
|
anyway on trying to format a SASS file.
|
|
|
|
|
2022-09-11 01:06:06 +01:00
|
|
|
[#43]: https://github.com/radian-software/apheleia/issues/43
|
2022-09-03 18:57:40 +01:00
|
|
|
[#100]: https://github.com/radian-software/apheleia/pull/100
|
2022-06-20 22:51:17 +01:00
|
|
|
[#101]: https://github.com/radian-software/apheleia/pull/101
|
2022-09-03 19:22:35 +01:00
|
|
|
[#102]: https://github.com/radian-software/apheleia/pull/102
|
2022-09-10 17:24:54 -07:00
|
|
|
[#103]: https://github.com/radian-software/apheleia/issues/103
|
2022-06-20 22:51:17 +01:00
|
|
|
[#105]: https://github.com/radian-software/apheleia/pull/105
|
2022-08-14 16:28:01 -07:00
|
|
|
[#109]: https://github.com/radian-software/apheleia/issues/109
|
|
|
|
[#110]: https://github.com/radian-software/apheleia/pull/110
|
2022-08-21 23:21:21 +01:00
|
|
|
[#116]: https://github.com/radian-software/apheleia/pull/116
|
2022-08-21 23:47:20 +02:00
|
|
|
[#119]: https://github.com/radian-software/apheleia/pull/119
|
2022-09-11 00:37:13 +01:00
|
|
|
[#123]: https://github.com/radian-software/apheleia/issues/123
|
2022-09-11 01:06:06 +01:00
|
|
|
[#124]: https://github.com/radian-software/apheleia/issues/124
|
2022-09-11 00:37:13 +01:00
|
|
|
[#125]: https://github.com/radian-software/apheleia/pull/125
|
2022-09-14 03:05:22 +01:00
|
|
|
[#126]: https://github.com/radian-software/apheleia/pull/126
|
2022-09-11 01:06:06 +01:00
|
|
|
[#127]: https://github.com/radian-software/apheleia/pull/127
|
2022-09-11 09:18:30 +01:00
|
|
|
[#128]: https://github.com/radian-software/apheleia/pull/128
|
2022-10-05 23:19:36 +00:00
|
|
|
[#132]: https://github.com/radian-software/apheleia/pull/132
|
2022-06-21 06:21:27 +09:00
|
|
|
|
2022-06-01 09:58:10 -07:00
|
|
|
## 3.0 (released 2022-06-01)
|
2022-04-10 22:21:50 +01:00
|
|
|
### Breaking changes
|
|
|
|
* The arguments of formatters defined as Elisp functions has changed.
|
|
|
|
A formatter function should now be a `cl-defun` taking key-value
|
|
|
|
arguments with support for more keys being provided on a later
|
|
|
|
apheleia release (by including `&allow-other-keys` in the parameter
|
|
|
|
list). For a list of provided arguments see
|
|
|
|
`apheleia--run-formatter-function`.
|
|
|
|
* Emacs 25 is no longer supported.
|
|
|
|
|
2022-05-12 00:26:22 +01:00
|
|
|
### Enhancements
|
|
|
|
* Ocamlformat is now used in `caml-mode` in addition to `tuareg-mode`
|
|
|
|
([#94]).
|
|
|
|
|
2022-05-02 05:51:27 +08:00
|
|
|
### Formatters
|
|
|
|
* [dart-format](https://dart.dev/tools/dart-format) for Dart ([#89]).
|
2022-05-12 00:26:33 +01:00
|
|
|
* [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) for PHP
|
|
|
|
([#87]).
|
2022-05-16 00:36:47 -04:00
|
|
|
* [ktlint](https://github.com/pinterest/ktlint) for Kotlin ([#97]).
|
|
|
|
* [nixfmt](https://github.com/serokell/nixfmt) for Nix ([#98]).
|
2022-05-02 05:51:27 +08:00
|
|
|
|
2022-04-10 22:21:50 +01:00
|
|
|
### Features
|
|
|
|
* Support remote files and buffers that were opened through TRAMP
|
|
|
|
([#33]).
|
|
|
|
|
2022-06-20 14:51:38 -07:00
|
|
|
[#33]: https://github.com/radian-software/apheleia/issues/33
|
|
|
|
[#87]: https://github.com/radian-software/apheleia/pull/87
|
|
|
|
[#89]: https://github.com/radian-software/apheleia/pull/89
|
2022-05-12 00:26:22 +01:00
|
|
|
[#94]: https://github.com/radian-software/apheleia/pull/94
|
2022-05-16 00:36:47 -04:00
|
|
|
[#97]: https://github.com/radian-software/apheleia/pull/97
|
|
|
|
[#98]: https://github.com/radian-software/apheleia/pull/98
|
2022-04-10 22:21:50 +01:00
|
|
|
|
2022-06-01 09:58:10 -07:00
|
|
|
## 2.0 (released 2022-04-10)
|
2022-04-10 22:21:50 +01:00
|
|
|
### Breaking changes
|
2022-01-04 15:32:38 -08:00
|
|
|
* The interface to `apheleia-format-buffer` has changed. You now pass
|
|
|
|
in the symbol of a formatter from `apheleia-formatters` (or a list
|
|
|
|
of them) rather than the actual command. This change improves the
|
|
|
|
ability of Apheleia to report useful error messages and logging.
|
2022-01-02 16:41:20 -08:00
|
|
|
* Stdout and stderr buffers are no longer retained after running a
|
|
|
|
formatter. Instead, the stderr is appended into an
|
2022-01-03 20:07:44 -08:00
|
|
|
`*apheleia-cmdname-log*` buffer if it fails, or unconditionally if
|
|
|
|
the new user option `apheleia-log-only-errors` is set to nil. See
|
2022-01-04 15:32:38 -08:00
|
|
|
[#64], [#65]. The log buffer is not hidden by default, unlike the
|
|
|
|
old stdout and stderr buffers, but this can be changed with the new
|
|
|
|
user option `apheleia-hide-log-buffers`. Also, the log shows all
|
|
|
|
command output rather than just the latest run. You can add further
|
|
|
|
customizations using the new hook `apheleia-formatter-exited-hook`
|
|
|
|
([#69]).
|
|
|
|
|
2022-04-10 22:21:50 +01:00
|
|
|
### Features
|
2022-01-04 15:32:38 -08:00
|
|
|
* Apheleia can now format buffers that do not have an underlying file
|
|
|
|
([#52]).
|
|
|
|
* You can now use a Lisp function as a formatter, by providing a
|
|
|
|
symbol or lambda in `apheleia-formatters` rather than a list of
|
2022-04-10 22:21:50 +01:00
|
|
|
strings ([#62]). The function should be a `cl-defun` taking key-value
|
|
|
|
arguments with support for more keys being provided on a later
|
|
|
|
apheleia release (by including `&allow-other-keys` in the parameter
|
|
|
|
list). For a list of provided arguments see
|
|
|
|
`apheleia--run-formatter-function`.
|
2022-01-04 16:21:10 -08:00
|
|
|
* Formatters that operate on files in place are now supported, by
|
|
|
|
using the symbol `inplace` in an entry on `apheleia-formatters` to
|
|
|
|
stand in for the name of a temporary file that will be modified in
|
|
|
|
place by the formatter ([#23]).
|
2022-01-02 16:41:20 -08:00
|
|
|
|
2022-04-10 22:21:50 +01:00
|
|
|
### Enhancements
|
2022-01-15 00:29:26 +01:00
|
|
|
* The buffer-local variable `apheleia-formatter` is now marked as safe
|
|
|
|
([#74]). This allows you to configure the formatter that Apheleia
|
|
|
|
will use in a file-local variable. Note: only formatters already
|
|
|
|
declared in `apheleia-formatters` can be used; this does not allow
|
|
|
|
arbitrary shell commands to be specified in file-local variables.
|
|
|
|
|
2022-04-10 22:21:50 +01:00
|
|
|
### Bugs fixed
|
2021-12-27 20:21:56 -08:00
|
|
|
* Allow running the same formatter in multiple buffers in parallel
|
|
|
|
([#64], [#65]). Previously, when saving a number of files at the
|
|
|
|
same time, the contents of those buffers could be corrupted by a
|
|
|
|
race condition.
|
|
|
|
* In some circumstances the error `wrong-type-argument bufferp nil`
|
|
|
|
could be reported when running certain formatters under Apheleia.
|
|
|
|
This has been fixed.
|
2022-01-02 16:41:20 -08:00
|
|
|
* Rustfmt is no longer passed the `--unstable-features` and
|
|
|
|
`--skip-children` flags, since they are not available on all
|
|
|
|
versions of Rustfmt ([#69]).
|
2022-01-04 16:08:04 -08:00
|
|
|
* When a formatter cannot be found, orphaned stderr processes are no
|
|
|
|
longer created and left around forever ([#47]).
|
2022-01-04 21:07:17 -08:00
|
|
|
* Apheleia no longer resets the major mode to its default value when
|
|
|
|
formatting a buffer. This was never intended and the bug has now
|
|
|
|
been fixed ([#58]).
|
2021-12-27 20:21:56 -08:00
|
|
|
|
2022-04-10 22:21:50 +01:00
|
|
|
### Formatters added
|
2022-01-11 21:14:17 -08:00
|
|
|
* [fish\_indent](https://fishshell.com/docs/current/cmds/fish_indent.html)
|
|
|
|
for [Fish](https://fishshell.com/) ([#68]).
|
|
|
|
|
2022-04-10 22:21:50 +01:00
|
|
|
### Formatter bugs fixed
|
2022-01-11 21:14:17 -08:00
|
|
|
* isort is passed different arguments so as not to trigger a crash
|
|
|
|
that appears to be related to the `--stdout` flag.
|
|
|
|
* latexindent now has its log file disabled so as to avoid cluttering
|
|
|
|
the working directory.
|
|
|
|
* ocamlformat is now configured to work even outside of detected
|
|
|
|
projects.
|
|
|
|
|
2022-06-20 14:51:38 -07:00
|
|
|
[#23]: https://github.com/radian-software/apheleia/issues/23
|
|
|
|
[#47]: https://github.com/radian-software/apheleia/issues/47
|
|
|
|
[#52]: https://github.com/radian-software/apheleia/issues/52
|
|
|
|
[#58]: https://github.com/radian-software/apheleia/issues/58
|
|
|
|
[#60]: https://github.com/radian-software/apheleia/issues/60
|
|
|
|
[#62]: https://github.com/radian-software/apheleia/issues/62
|
|
|
|
[#64]: https://github.com/radian-software/apheleia/issues/64
|
|
|
|
[#65]: https://github.com/radian-software/apheleia/pull/65
|
|
|
|
[#68]: https://github.com/radian-software/apheleia/issues/68
|
|
|
|
[#69]: https://github.com/radian-software/apheleia/issues/69
|
|
|
|
[#74]: https://github.com/radian-software/apheleia/pull/74
|
2021-12-27 20:21:56 -08:00
|
|
|
|
2021-12-27 20:20:02 -08:00
|
|
|
## 1.2 (released 2021-12-27)
|
2021-10-25 02:28:18 +01:00
|
|
|
### Enhancements
|
|
|
|
* Support multiple formatters ([#31]). You can now configure a list of
|
|
|
|
formatters for a major-mode in `apheleia-mode-alist` and they will
|
|
|
|
be run in sequence.
|
2021-10-31 17:57:44 +00:00
|
|
|
* Support evaluating items in `apheleia-formatters` to make formatter
|
|
|
|
commands more dynamic ([#50], [#55]).
|
2021-10-25 02:28:18 +01:00
|
|
|
|
2021-08-08 13:07:08 +00:00
|
|
|
### Formatters
|
|
|
|
* [ClangFormat](https://clang.llvm.org/docs/ClangFormat.html) for
|
2021-10-03 12:18:03 -06:00
|
|
|
C/C++
|
|
|
|
* [`google-java-format`](https://github.com/google/google-java-format)
|
|
|
|
for Java
|
2021-10-25 02:28:18 +01:00
|
|
|
* [isort](https://github.com/PyCQA/isort) for
|
|
|
|
[Python](https://www.python.org/) ([#51])
|
2021-10-03 12:18:03 -06:00
|
|
|
* [latexindent](https://ctan.org/pkg/latexindent?lang=en) for
|
|
|
|
[LaTeX](https://www.latex-project.org/)
|
|
|
|
* [rustfmt](https://github.com/rust-lang/rustfmt) for
|
|
|
|
[Rust](https://www.rust-lang.org/) ([#24])
|
|
|
|
* [`mix format`](https://hexdocs.pm/mix/1.12/Mix.Tasks.Format.html)
|
|
|
|
for Elixir ([#48])
|
|
|
|
* [`@prettier/plugin-ruby`](https://github.com/prettier/plugin-ruby)
|
|
|
|
for Ruby ([#49])
|
2021-08-08 13:07:08 +00:00
|
|
|
|
2021-02-26 22:04:15 -08:00
|
|
|
### Bugs fixed
|
|
|
|
* Fix spelling error in generated process names ([#32]).
|
2021-12-29 17:13:28 -07:00
|
|
|
* Apheleia no longer conflicts with undo-fu ([#39]).
|
2021-05-23 14:59:26 -07:00
|
|
|
* Apheleia no longer triggers `after-set-visited-file-name-hook`,
|
|
|
|
which reduces conflicts with various modes. For example, `lsp-mode`
|
|
|
|
will no longer trigger a reconnect every time you save.
|
2021-07-22 22:16:42 -04:00
|
|
|
* Fix inconsistent `:type` spec preventing use of `customize-variable`
|
|
|
|
on `apheleia-formatters`.
|
2021-10-31 23:55:26 +06:00
|
|
|
* Fix mixed style line ending generated by `diff` ([#54]) by adding
|
|
|
|
`--strip-trailing-cr` to `diff`'s argument list.
|
2021-02-26 22:04:15 -08:00
|
|
|
|
2022-06-20 14:51:38 -07:00
|
|
|
[#24]: https://github.com/radian-software/apheleia/pull/24
|
|
|
|
[#30]: https://github.com/radian-software/apheleia/issues/30
|
|
|
|
[#31]: https://github.com/radian-software/apheleia/issues/31
|
|
|
|
[#32]: https://github.com/radian-software/apheleia/pull/32
|
|
|
|
[#39]: https://github.com/radian-software/apheleia/issues/39
|
|
|
|
[#48]: https://github.com/radian-software/apheleia/pull/48
|
|
|
|
[#49]: https://github.com/radian-software/apheleia/pull/49
|
|
|
|
[#50]: https://github.com/radian-software/apheleia/pull/50
|
|
|
|
[#51]: https://github.com/radian-software/apheleia/pull/51
|
|
|
|
[#54]: https://github.com/radian-software/apheleia/pull/54
|
|
|
|
[#55]: https://github.com/radian-software/apheleia/issues/55
|
|
|
|
[#64]: https://github.com/radian-software/apheleia/issues/64
|
|
|
|
[#65]: https://github.com/radian-software/apheleia/pull/65
|
2021-02-26 22:04:15 -08:00
|
|
|
|
2021-02-26 22:04:05 -08:00
|
|
|
## 1.1.2 (released 2021-02-26)
|
2020-11-07 07:04:41 -08:00
|
|
|
### Enhancements
|
|
|
|
* Prettier is now enabled in `json-mode`.
|
|
|
|
|
2020-10-17 08:29:21 -07:00
|
|
|
### Bugs fixed
|
|
|
|
* Prettier now respects `.prettierignore` ([#21]).
|
2021-02-07 18:50:31 +02:00
|
|
|
* Apheleia's global mode should no longer trigger warnings about a locally
|
|
|
|
let-bound `after-save-hook` ([#27]).
|
2020-10-17 08:29:21 -07:00
|
|
|
|
2022-06-20 14:51:38 -07:00
|
|
|
[#21]: https://github.com/radian-software/apheleia/issues/21
|
|
|
|
[#27]: https://github.com/radian-software/apheleia/issues/27
|
2020-10-17 08:29:21 -07:00
|
|
|
|
2020-07-16 08:22:54 -06:00
|
|
|
## 1.1.1 (released 2020-07-16)
|
|
|
|
### Formatters
|
|
|
|
* New: [OCamlFormat](https://github.com/ocaml-ppx/ocamlformat) for
|
|
|
|
[Ocaml](https://ocaml.org/) ([#19]).
|
|
|
|
|
2020-04-02 08:58:41 -06:00
|
|
|
### Bugs fixed
|
|
|
|
* Previously, there were some race conditions related to switching the
|
|
|
|
current buffer. In particular, if you switched the current buffer
|
|
|
|
right after saving, or save two buffers in quick succession, then it
|
|
|
|
was possible for one buffer to be overwritten or to not be
|
|
|
|
formatted. These problems have been fixed ([#8]).
|
|
|
|
* Previously, enabling `undo-tree-auto-save-history` caused Apheleia
|
|
|
|
to mark the buffer as modified after formatting. This has been
|
|
|
|
fixed ([#10]).
|
2020-07-16 08:22:54 -06:00
|
|
|
* Apheleia now tries harder to accidentally enter an infinite
|
|
|
|
formatting loop ([#12]).
|
2020-04-02 08:58:41 -06:00
|
|
|
|
2022-06-20 14:51:38 -07:00
|
|
|
[#8]: https://github.com/radian-software/apheleia/issues/8
|
|
|
|
[#10]: https://github.com/radian-software/apheleia/issues/10
|
|
|
|
[#12]: https://github.com/radian-software/apheleia/pull/12
|
|
|
|
[#19]: https://github.com/radian-software/apheleia/pull/19
|
2020-04-02 08:58:41 -06:00
|
|
|
|
2020-04-02 08:54:06 -06:00
|
|
|
## 1.1 (released 2020-04-02)
|
2020-03-19 08:21:49 -06:00
|
|
|
### Enhancements
|
|
|
|
* There is now a maximum length for the dynamic programming algorithm,
|
|
|
|
controlled by `apheleia-max-alignment-size`. This prevents Emacs
|
|
|
|
from hanging due to Apheleia. under any circumstances ([#4]).
|
|
|
|
|
|
|
|
### Formatters
|
|
|
|
* New: [Brittany](https://hackage.haskell.org/package/brittany) for
|
|
|
|
[Haskell](https://www.haskell.org/).
|
|
|
|
|
2019-12-31 10:16:32 -07:00
|
|
|
### Bugs fixed
|
|
|
|
* Previously, weirdness could happen if manually running Prettier via
|
|
|
|
`M-x apheleia-format-buffer` on a buffer which was modified from
|
|
|
|
what was written to disk. Now we simply abort running a command that
|
|
|
|
uses the `file` keyword if the buffer is modified, since it will not
|
|
|
|
produce correct results. This should not affect normal usage of
|
|
|
|
Apheleia.
|
2020-03-19 08:21:49 -06:00
|
|
|
* Previously, the buffer could be erased when running Apheleia from a
|
|
|
|
buffer that had no backing file. This has been fixed, and Apheleia
|
|
|
|
can run correctly on buffers both with and without backing files
|
|
|
|
([#9]).
|
|
|
|
|
2022-06-20 14:51:38 -07:00
|
|
|
[#4]: https://github.com/radian-software/apheleia/issues/4
|
|
|
|
[#9]: https://github.com/radian-software/apheleia/pull/9
|
2019-12-31 10:16:32 -07:00
|
|
|
|
2019-09-20 17:08:09 -07:00
|
|
|
## 1.0 (released 2019-09-20)
|
|
|
|
### Added
|
|
|
|
* Package `apheleia`
|
|
|
|
* Command `apheleia-format-buffer`
|
|
|
|
* User options:
|
|
|
|
* `apheleia-formatters`, with supported formatters:
|
|
|
|
* `black`
|
|
|
|
* `prettier`
|
|
|
|
* `gofmt`
|
|
|
|
* `terraform`
|
|
|
|
* `apheleia-mode-alist`
|
|
|
|
* `apheleia-post-format-hook`
|
|
|
|
* Variable `apheleia-formatter`
|
|
|
|
* Minor mode `apheleia-mode` (and `apheleia-global-mode`)
|
|
|
|
|
|
|
|
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
|