Skip to content

Latest commit

 

History

History
117 lines (93 loc) · 4.58 KB

CHANGELOG.md

File metadata and controls

117 lines (93 loc) · 4.58 KB

Change Log

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.

Changed

  • Name of properlyIndent function to just be indent.
  • 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

Changed

  • Update to ES6; functionality should be the same as 0.4.3

0.4.3 - 2016-03-26

Fixed

  • Fix indentation behavior when there are odd numbers of escaped single quotes within a string. This fixed #22.

Changed

  • Update some wording in the README.
  • Clean up variable names.

0.4.2 - 2016-03-15

Fixed

  • Don't throw error when source code is malformed. This fixed #17.

0.4.1 - 2016-03-01

Fixed

  • 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

Added

  • 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.

All improvements for this release are thanks to the incredible work of @kbrose!

0.3.4 - 2016-02-24

Changed

  • Major refactor to better modularize components.

Fixed

  • Whitespace after a comma in a list caused an exception. This fixed #6.

Removed

  • 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

Changed

  • Search the scopeName of the current grammar rather than the packageName. This allows the package to scale better with all Python-based grammars. Thanks @alix-!

0.3.2 - 2016-02-03

Added

  • MagicPython as a supported grammar.

Changed

  • Regex for hanging indent new lines.

0.3.1 - 2016-02-012

Fixed

  • 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

Added

  • Setting for Hanging Indent Regex.

Changed

  • Settings that began with fluid to opening delimiter.

Removed

  • 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

Added

  • Hanging indentation feature in Settings.
  • Setting for number of tabs to indent.
  • Further examples and improve documentation.

Fixed

  • Potential bug for : character when ending a fluid indentation and the character exists somewhere else in the line (perhaps a string).

0.1.0 - 2016-01-18

Added

  • Fluid indent in tuples, lists, and parameters.
  • Unindent to tab after fluid indented tuples, lists and parameters.