- In certain condition, changing the box style was not taken into account.
- Comment strings wasn't displayed for languages that doesn't have block comments when the
comment_style
option is set to"auto"
or"block"
(issue #41).
- regexes improved for the
:CBline
command (see README or doc). - A titled line in an empty line is automatically converted to a simple line.
zsh
andkdl
file types support.
- Using the functions directly for the titled lines lead to an error if no lines were selected.
- For the adapted boxes, the new nomenclature was not working when using the function directly (for example:
require("comment-box").cabox()
).
- Four new predefined styles of line.
- Complete rework of the way the plugin deal with the comment strings which allow a complete support of multi-line comments!
A new option has been added (
comment_style
) that can take one of three states:"line"
: no matter the type of comment applied to the selected comments, boxes, title lines and simple lines will always be commented with line style."block"
: no matter the type of comment applied to the selected comments, boxes, title lines and simple lines will always be commented with block style."auto"
: if you select one line, boxes, titled lines and simple lines will be commented with line style, if you select multiple lines, they will be commented with block style.
The plugin will bypass this option if the language of the file allow only block comments or only line comments.
To keep a consistency in the nomenclature of the commands (older commands still work but are deprecated):
CBalbox
becomesCBlabox
.CBacbox
becomesCBcabox
.CBarbox
becomesCBrabox
.CBlline
has been added (same asCBline
).
CBalbox
.CBacbox
.CBarbox
.
- New category: titled lines (see titled lines).
- Quick Start section for people with no time to waste!
CBy
andCBd
can be used on titled lines as well.
CBdbox
becomesCBd
.