* Removed table border and related options. You can now optionally have
a header instead, simply add a table header and add a border to it
triggered by the vim iabbrev '+-' on the line immidiately after the
header and it will expand to the correct border. It will auto update
as the table realigns with changes. Similar approach as followed by
tables in org-mode.
* Fixed bug of incorrect indentation of a newly added formula line.
* Fixed bug in ConvertDelimiterToSeparator causing incorrect
tableization of commented blocks of delimited content.
- Updated s:EndExpr() to include \s\+ within optional escaped comment so
that the space is also matched.
- Fixed Formula addition in case of double comment (start and end) are
required, eg) in c/c++.
- Parsing expr row/column numbers from string correctly.
- Renamed option for eval_expr.
- Defined a new option `g:table_mode_map_prefix` set to `<Leader>t` by
default to be used as a prefix for all other table mode commands.
- Updated docs to reflect the same.
- Updated README.
- Added single function for both command & mapping to take formula from
input.
- Reusing g:table_mode_align for formatting table content, which was
missed when moving from :Tableize to tabular#TabularizeStrings
- Correctly parsing ranges as strings.
- Refactored realignment logic.
- Generating borders by hand rather than relying on
tabular formatting since that puts restrictions on the borders
(padding). With the new scheme, I am able to generate good looking
tables with neat borders like they should be, without padding.
- Updated doc/table-mode.txt
- Added tablemode#RowCount(line). Returns the total number of rows in a
table given a line (row).
- Added tablemode#ColumnCount(line). Returns the total number of columns
in a line (row).
- Added tablemode#RowNr(line). Returns the row number on given line.
- Added tablemode#ColumnNr(line). Returns the column on given line.
- Fixes#5. We now have the ability to invoke table mode within inline
comments. Works for both instant table creation and table conversion
for csv data. Uses 'commentstring' option of vim to identify comments,
so it should work for most filetypes as long as 'commentstring' option
has been set. This is usually done appropriately in filetype plugins.
- Improved :Tableize to accept a {patter} in a similar way as
:Tabularize does. eg.)
:Tableize/;
The above command will tableize the selection taking ';' as the
delimiter rather than the default ',' defined by the
g:table_mode_delimiter option. If you do not provide a pattern, the
default delimiter will be used.
- Updated doc/table-mode.txt
- Updated README.md
- Added tags to .gitignore to avoid checking in tags file.
- Fixed#1. Added new option `g:table_mode_no_border_padding` which if
set to 1 (set to 0 by default) removes the padding around borders (and
the text too), sets `g:table_mode_align` to `'c0'` for achieving the
same.