Skip to content

Releases: stkb/Rewrap

v1.5.0

27 Aug 18:27
Compare
Choose a tag to compare
  • Added multiple ruler support (VSCode, VS). (#30)
  • Added Git tag editing as a document type.
  • VSCode: Removed old keybinding (ctrl+k ctrl+w) (how to add it back)
  • VS: Fixed bug in Options screen (#44)

v1.4.2

01 Aug 14:50
Compare
Choose a tag to compare
  • Added support for PowerShell Comment-Based Help (#43).
  • Added git-commit as a document type.
  • (Visual Studio only) Added per-language settings.
    • Because of a change here in how settings are stored, existing settings unfortunately won't be carried over to this version.

v1.4.1

14 Jul 14:18
Compare
Choose a tag to compare

Fixed a bug with markdown block-quotes (#42).

v1.4.0

27 Jun 10:20
Compare
Choose a tag to compare

Important: if you still use and prefer the old keybinding for Rewrap (ctrl+k ctrl+w), please add it to your settings manually. It will be removed in the next version.

Rewrap is now also available for Visual Studio!

The main change in this release is that all1 comments now are parsed as Markdown (CommonMark spec), enabling wrapping of bulleted/numbered lists and all other Markdown features.2

Additionally, a new setting: wholeCommment, has been added to give more control over wrapping comments. See here.

Added languages:

  • Elixir
  • Dart

Other fixes and changes:

  • Supports unicode (#38)
  • In js/javadoc, inline tags (eg: {@link}) aren't broken up (#35)
  • Support doc-comments in PHP (#34)

1 Except for .Net xml-doc comments.

2 (This introduces a small breaking change: where code samples (which aren't rewrapped) within a comment previously only required a 2-space indent, now they require 4 spaces, in line with the Markdown spec.)

VSIX file attached is only for Visual Studio.

v1.3.0

16 Feb 09:02
Compare
Choose a tag to compare

Added a new command; "Rewrap Comment / Text at column..."(id: rewrap.rewrapCommentAt).
This allows you to re-wrap something at a custom wrapping width (#27).

v1.2.0

09 Feb 19:27
Compare
Choose a tag to compare
  • Added support for the new language-specific settings. Now you can customize editor.rulers and Rewrap's settings per language. (#25)
  • Improvements for LaTeX:
    • Most \commands starting a line will now denote a new paragraph (#24).
    • Indentation for subsequent lines in that paragraph will be cleaned up (#23).
    • Line breaks following a line-break command (eg \, \newline) will be preserved.
  • Added basic support for TOML files (#26).

v1.1.0

18 Jan 17:55
Compare
Choose a tag to compare
  • Wrapping now works with js and css sections embedded in an html document (#22).
  • Very basic support for (La)TeX files added.

v1.0.0

24 Nov 18:31
Compare
Choose a tag to compare

Bumping up to version 1.0.0 since it was about time.

Two new features; see the README for details.

  • Added a feature from Vim gq and Emacs fill-paragraph: when lines ending in a period are wrapped, two spaces will be added after the period in the wrapped text. To turn this feature on, add "rewrap.doubleSentenceSpacing": true to your settings.json. (#17)
  • If you use rulers, Rewrap can now take the wrapping column from the first value in the editor.rulers setting. rewrap.wrappingColumn is then no longer needed. (#19)

Bug fixes:

  • Cursor/selection position after wrapping has been fixed. Now the text cursor should always stay next to the same word it was at before wrapping, allowing you to keep typing from where you left off. (#18)

v0.6.4

16 Nov 18:05
Compare
Choose a tag to compare

This doesn't affect comments, only other plain text within a file (eg. in YAML
files). Now blocks of plain text with differing indents are treated as separate
paragraphs. Previously a blank line was needed to separate paragraphs.

Eg: this text was treated as one paragraph but now as two.

Some text
    Some more text

Also doesn't affect markdown files, or .txt files, which are currently treated
the same as markdown.

v0.6.3

04 Nov 15:14
Compare
Choose a tag to compare
  • Added """-comments for Python (previously only supported ''') (#15)
  • Added # markers for ini files (includes other types of config files, eg .gitconfig)
  • Fixed an error caused by empty comments (#11, #14)

Upgraded to TypeScript 2.0; vscode v1.6+ is now required.