diff --git a/CHANGELOG.md b/CHANGELOG.md index 475cd42..a54c5aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log +## Version 4.4.0 +* Minor bug fixes +* Added feature to allow using negative indices within formulas to access rows, + columns relative to the last, -1 being the last. + ## Version 4.3.0 * Refactored some more * Fixed issue #19, hiphens in the table broke alignment diff --git a/README.md b/README.md index 30b6797..3730965 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# VIM Table Mode v4.3.0 [![Build Status](https://travis-ci.org/dhruvasagar/vim-table-mode.png?branch=master)](https://travis-ci.org/dhruvasagar/vim-table-mode) +# VIM Table Mode v4.4.0 [![Build Status](https://travis-ci.org/dhruvasagar/vim-table-mode.png?branch=master)](https://travis-ci.org/dhruvasagar/vim-table-mode) An awesome automatic table creator & formatter allowing one to create neat tables as you type. @@ -137,11 +137,13 @@ $ git submodule add git@github.com:dhruvasagar/vim-table-mode.git bundle/table-m - `$n`: This matches the table column number `n`. So the `formula` would be evaluated for each cell in that column and the result would be placed - in it. + in it. You can use negative indice to represent column relative to the + last, -1 being the last. - `$n,m`: This matches the table cell n,m (row, column). So in this case the formula would be evaluated and the result will be placed in this - cell. + cell. You can also use negative values to refer to cells relative to + the size, -1 being the last (row or column). - The `formula` can be a simple mathematical expression involving cells which are also defined by the same format as that of the target cell. You diff --git a/doc/table-mode.txt b/doc/table-mode.txt index da7c7ac..a79f211 100644 --- a/doc/table-mode.txt +++ b/doc/table-mode.txt @@ -1,7 +1,7 @@ -*table-mode.txt* Table Mode for easy table formatting. v4.3.0 +*table-mode.txt* Table Mode for easy table formatting. v4.4.0 =============================================================================== Table Mode, THE AWESOME AUTOMATIC TABLE CREATOR & FORMATTER - VERSION 4.3.0 + VERSION 4.4.0 Author: Dhruva Sagar License: MIT @@ -104,11 +104,14 @@ Formula Expressions : '$n': This matches the table column number 'n'. So the formula would be evaluated for each cell in that column and the result - would be placed in it. + would be placed in it. You can use negative indice to + represent column relative to the last, -1 being the last. '$n,m': This matches the table cell n,m (row, column). So in this case the formula would be evaluated and the result will - be placed in this cell. + be placed in this cell. You can also use negative values to + refer to cells relative to the size, -1 being the last (row or + column). The formula can be a simple mathematical expression involving cells which are also defined by the same format as that of the target cell.