* 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.
- 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.
- Moved plugin to an after/plugin to ensure table-mode is loaded after
Tabularize.
- Gracefully exit with appropriate error message in case Tabularize is
not available and skip loading of plugin.
- Fixed typo in copyright.
- Updated version numbers across.
This allows you to do [count]<Leader>T eg.) 10\T (\ is the leader key on
my system). That will Tableize the next 10 lines into a table. Can be
faster than visual at times, also works faster if you want to tableize
just the current line (I know this is not a very useful scenario).
When applying Tableize on an indented code, the table was created
however the indentation was lost in the process. Earlier the function
s:ConvertDelimiterToSeparator(line) was replace the ^ (start of line),
the g:table_mode_delimiter and $ (end of line) with
g:table_mode_separator and then processing each line for creation of the
table around it, hence since the start of line was replaced it was
causing the indentation to be lost. Fixed this by replacing ^\s*\zs\ze.
(matches just before the first non-blank character) along with
g:table_mode_delimiter and $ and hence the indentation is preserved.
Rather than get a variable number of arguments to make it optional I now
require one argument, the line number to operate on for the function
UpdateLineBorder. Makes sense to be this way.
Also improved some conditionals for better readability.
- We now aggressively add separators to a line even if it does not have
the g:table_mode_delimiter. If the user calls Tableize, we should
trust the user he wishes to tableize everything. Earlier
implementation skips & fails for lines in text that did not have the
g:table_mode_delimiter and hence formed inconsistent tables.
Everything can be undone with a single 'u' anyways.
- Added :Tableize which accepts a range. It checks if the content has a
delimiter defined by g:table_mode_delimiter and if so, it adds a table
around it.
- Added <Leader>T mapping, which is defined by g:table_mode_tableize_map
that applies :Tableize on the visually selected range.
- Added options for tableize.
- Updated vim doc.