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.
- Name of
properlyIndent
function to just beindent
. - Conform to Keep a Changelog
- Update formatting and fixed indentation error in the README.
- Update example GIF.
- Fix test documentation formatting.
1.0.0 - 2016-09-15
- Update to ES6; functionality should be the same as 0.4.3
0.4.3 - 2016-03-26
- Fix indentation behavior when there are odd numbers of escaped single quotes within a string. This fixed #22.
- Update some wording in the README.
- Clean up variable names.
0.4.2 - 2016-03-15
- Don't throw error when source code is malformed. This fixed #17.
0.4.1 - 2016-03-01
- Properly indent continuing lines in a hanging indent after closing a nested bracket pair. This fixed #15.
- Improve test coverage.
0.4.0 - 2016-02-26
-
Make indentation behave as expected in practically every scenario.
Essentially, simple parsing is performed to keep a stack of the column-location of open brackets (one of [({). When an opening bracket is read, it adds to the stack indicating the column where the bracket is located, when a closing bracket (one of })]) is read, it pops the latest element (it does not do any checking to make sure the closing bracket matches the opening bracket - this is why it assumes the python source code is well-formed). If there is anything in the stack after parsing the python file up to the cursor location, then that means there is an open bracket. We can see what column the most recent addition to the stack was on, and then set the indent from that.
0.3.4 - 2016-02-24
- Major refactor to better modularize components.
- Whitespace after a comma in a list caused an exception. This fixed #6.
- Fringe functionality introduced in
0.3.0
that caused newlines to not be created when text was on the next line.
0.3.3 - 2016-02-11
- Search the
scopeName
of the current grammar rather than thepackageName
. This allows the package to scale better with all Python-based grammars. Thanks @alix-!
0.3.2 - 2016-02-03
- MagicPython as a supported grammar.
- Regex for hanging indent new lines.
0.3.1 - 2016-02-012
- Bug where hanging indents were deleting one non-newline characters when a new line is created directly after an opening parentheses, but with trailing characters.
- Make sure this package is only run with Python language files.
0.3.0 - 2016-02-01
- Setting for Hanging Indent Regex.
- Settings that began with
fluid
toopening delimiter
.
- Setting for Continuation Indent Type. This is now automatically detected based on syntax, allowing for both aligned with opening delmiter and hanging indent types at the same time.
0.2.0 - 2016-01-19
- Hanging indentation feature in Settings.
- Setting for number of tabs to indent.
- Further examples and improve documentation.
- Potential bug for
:
character when ending a fluid indentation and the character exists somewhere else in the line (perhaps a string).
- Fluid indent in tuples, lists, and parameters.
- Unindent to tab after fluid indented tuples, lists and parameters.