All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
3.2.0 - 2017-01-07
- Support to use an unsupported formatter, or otherwise just override default args.
The setting looks like"fmt|filetype": "clicmd arg1 arg2 arg3 etc etc"
- Spaces to tabs
- From using the file's path to its abspath
3.1.1 - 2017-12-17
- Nested table bug
3.1.0 - 2017-12-17
- The
fmt unsetall formattername
command, which unsets all settings the specified formatter is currently set to.
3.0.0 - 2017-12-13
- Tab support for Luafmt (new feature in the formatter itself)
- The
fmt setall formattername
command - The
fmt formattername
command, so that the specified formatter can be run without affecting your settings
- How the settings work, so now each language gets its own line in
settings.json
, instead of each formatter. Example:"css-formatter": "csscomb"
- How
fmt list
output looks, so that it now displays much more information
2.4.0 - 2017-12-10
- Fprettify support
- Dartfmt support
- Tidy support
- Missing filetype support (CSS and HTML) for js-beautify
2.3.0 - 2017-11-29
- Rufo support
- Beautysh support
- Dfmt support
- Tsfmt support
- Shortened the message you get when you do
fmt list
(doesn't change the log output)
2.2.0 - 2017-11-26
- Config file detection in the current directory (with a fallback on our bundled
fmt-micro/configs
). Currently used only on Uncrustify, but it's easy to add to others. - Add an
fmt update
command to force formatter settings to refresh.
- Move extension detection to their own functions
- Updated Uncrustify config to
0.66.1
- Minor optimizations
2.1.0 - 2017-11-23
- The way formatters are launched, so that the more safe/portable
JobSpawn
(a Micro binding to Go'sexec.Command
) is used. - Performance improvements across the board (not benchmarked) by following advice at https://springrts.com/wiki/Lua_Performance
2.0.2 - 2017-11-18
- The arguments, so now they're held in a table, to make adding them not require so much careful string concatenation.
- Windows support
2.0.1 - 2017-11-18
- The two python formatters into one line like the
go
formatters.
- A whitespace error in the command.
2.0.0 - 2017-11-18
- The ability to have duplicate supported languages from formatters, which makes adding new formatters even safer/easier.
- This changelog 😄
- The
fmt-onsave
option, to disable formatting on-save (on by default). - A new
fmt list
command, which prints the supported formatters (and their on/off status) to Micro's log in a pretty table. - Any output from the formatter is printed to Micro's log for easier debugging.
goimports
formatter for alternativeGo
supporthtmlbeautifier
formatter forHTML
supportcoffee-fmt
formatter forCoffeeScript
supportcljfmt
formatter forClojure
supportelm-format
formatter forElm
supportclang-format
formatter for alternativeC
,C++
, andObjective-C
supportpug-beautifier-cli
formatter forPug
(previouslyJade
) supportlatexindent.pl
formatter forLaTeX
supportCSScomb
formatter for alternativeCSS
supportmarko-prettyprint
formatter forMarko
supportocp-indent
formatter forOCaml
supportalign-yaml
formatter forYAML
supportperltidy
formatter forPerl
supportstylish-haskell
formatter forHaskell
supportpuppet-lint
formatter forPuppet
supportjs-beautify
formatter for alternativeJavascript
supportautopep8
formatter for alternativePython
support- Some more info to
CONTRIBUTING.md
- The execution of the actual command, from Lua's
io.popen()
, to Micro'sJobStart()
, which should improve cross-platform support. - The
fmt
command now runs the formatter on the current file. - Applied as many luacheck
recommendations as possible, aka change stuff to
local
- Formatted all the markdown files with the Prettier formatter
1.3.0 - 2017-11-11
- The full command to Micro's log.
- Users settings in the formatter arguments, where possible.
- Python support via the
yapf
formatter. - PHP support via the
php-cs-fixer
formatter. - A link to
CONTRIBUTING.md
in the pull request template. - A
.gitignore
to hide a simple script I use for testing. - All the languages supported by
uncrustify
, and itsdefaults.cfg
config file.
- The "how to add a formatter" comments got moved from the code to CONTRIBUTING.md
- To using the
CurView()
passed from onSave instead of manually callingCurView()
fmt.lua
formatted with luafmt.- The name of Crystal's formatter in the README.
- Capitalized the languages in the README.
- The
if
check to see if the current settings match the ones used by the fmt args.
- The redundant psudo-contributing guide in the pull request template.
1.2.1 - 2017-11-09
- The fact that markdown works with Prettier to the README.
- A literal file extension detection fallback for when Micro returns
Unknown
on the filetype.
1.2.0 - 2017-11-07
- Markdown to Prettier's file-type support.
1.1.1 - 2017-11-07
- Pull request template for Github.
- Issue template for Github.
- Crystal actually uses the correct command now..
1.1.0 - 2017-11-07
- Crystal formatting.
- Flipped the table to hopefully look better.
1.0.1 - 2017-11-07
- Rubocop
- Luafmt
First release