- Min: get the lowest value
- Max: get the highest value
- CountE: count the number of empty cells
- CountNE: count the number of non-empty cells
- PercentE: percent of empty cells
- PercentNE: percent of non-empty cells
- AverageNE: average over non-empty cells
Also added a subtle tweak that ignores an HTML comment tag ('<!--')
found between the table and the starting formula line. Being able to
wrap all the formula lines with an HTML comment prevents the formulas
from being rendered in Markdown/ReST output.
Readme mentions settings for Markdown and ReST, but we can apply them
automatically for the current filetype. If a user is editing a no
filetype scratch buffer, they'll still need to configure these options
themselves. But this provides better defaults when editing a buffer of
these filetypes.
Adds get_buffer_or_global_option that could be used for any other
buffer-local (filetype-specific) options.
Since realigning doesn't work well in insert mode, I have removed auto
align feature for it. Auto align will now kick in once you have made
changes and get back to normal mode.
This is for better experience with auto align, we override the
updatetime with the value of the configuration g:table_mode_update_time.
Once table mode is disabled prior defaults are restored.
* Refactored complete code to be more modular.
* Fixed long standing unicode alignment issue #8.
* Testing individual components ensuring better test coverage.
Added a new configuration option g:table_mode_corner_corner to
correspond to the extreme corners of the table border, by default it is
set to '|' to maintain backward compatibility but it can be overriden to
anything else.
* 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.
- 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
- 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.