Commit Graph

75 Commits

Author SHA1 Message Date
Dhruva Sagar
2e909c0668 Releasing Table Mode v3.1
* 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.
v3.1
2013-09-19 02:06:22 +05:30
Dhruva Sagar
eed25aee91 Removed unnecessary closing markers for folds 2013-06-10 09:56:54 +05:30
Dhruva Sagar
0683cec58c Added more error checks in GetCells 2013-05-22 07:36:53 +05:30
Dhruva Sagar
27544e168a Fixed s:Sum
Was previously converting to integer so loosing float data after decimal
place, converting to float instead now.
v3.0
2013-05-21 14:40:54 +05:30
Dhruva Sagar
e4af7200ff Fixed function EvaluateExpr
- Added support for column references in current row when defining
  formulas for individual cells.
2013-05-21 14:32:02 +05:30
Dhruva Sagar
3cea0bbaba Minor Fixes
- 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.
2013-05-20 16:38:31 +05:30
Dhruva Sagar
8931891845 Updated README 2013-05-20 12:49:32 +05:30
Dhruva Sagar
0810512c54 Fixed #8
- 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.
2013-05-18 03:58:03 +05:30
Dhruva Sagar
4606d9c637 Fixed s:GetCommentEnd(), s:EndCommentExpr()
Also fixed s:ConvertDelimiterToSeparator() such that it doesn't mess up
the end comment and draws the border before it.
2013-05-18 03:34:02 +05:30
Dhruva Sagar
9ff1b37210 Updated README 2013-05-18 02:55:22 +05:30
Dhruva Sagar
287f45cfa2 Updated README 2013-05-17 17:32:30 +05:30
Dhruva Sagar
1ce3ec4e7f Fixed Table Mode
- Several New Updates weren't working properly for commented tables.
  Fixed & improved the API to work accurately for commented tables.
2013-05-17 17:13:56 +05:30
Dhruva Sagar
34e271b24a Updated README, fixed expr evaluator 2013-05-17 14:12:44 +05:30
Dhruva Sagar
d0d9d1d4f6 Updated README.md
- Removed requirement of dependence on Tabular since table-mode is no
  longer dependent on the same.
2013-05-17 10:29:03 +05:30
Dhruva Sagar
41fa837437 Updated README.md
- Added another example expression.
2013-05-17 10:26:38 +05:30
Dhruva Sagar
fb63484e47 Updated CHANGELOG & doc/table-mode.txt 2013-05-17 10:00:00 +05:30
Dhruva Sagar
51c108188c Updated README.md 2013-05-17 09:34:19 +05:30
Dhruva Sagar
974d506484 Merge branch 'feature/table-formulas' 2013-05-17 07:48:38 +05:30
Dhruva Sagar
dd38fcfeeb Releasing v3.0
- Added feature to define & add formula expressions to table and
  calculate them.
- Persist the fomulas as comments as line right after table.
2013-05-17 07:45:49 +05:30
Dhruva Sagar
94a76dc0f7 Merge branch 'master' of github.com:dhruvasagar/vim-table-mode into feature/table-formulas
Conflicts:
	autoload/tablemode.vim
2013-05-16 15:50:56 +05:30
Dhruva Sagar
eba2481798 Fine tuning & formatting 2013-05-16 14:49:03 +05:30
Dhruva Sagar
edfb221b3e Removed dependence on Tabular for more control.
- Right align numbers automatically.
2013-05-15 23:16:34 +05:30
Dhruva Sagar
e9d9030cbb Updated Table Formulas
- 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.
2013-05-14 19:35:00 +05:30
Dhruva Sagar
2bde444575 First Cut of Table Formulas 2013-05-13 18:34:00 +05:30
Dhruva Sagar
def9a08623 Merge pull request #7 from mhinz/master
only small improvements
2013-05-07 06:04:19 -07:00
Marco Hinz
57a49efe7e Improve modeline settings 2013-05-07 14:47:56 +02:00
Marco Hinz
af55d03e14 Adhere to common conventions 2013-05-07 14:47:34 +02:00
Dhruva Sagar
cb21c1626c Minor refactoring 2013-05-07 15:17:37 +05:30
Dhruva Sagar
4e8e87256b Updated README.md 2013-05-05 22:52:03 +05:30
Dhruva Sagar
88edc35ea6 Updated README.md 2013-05-05 12:11:51 +05:30
Dhruva Sagar
87a713efb7 Releasing v2.4.0
- Added table cell text object.
- Added api to delete table row.
- Added api to delete table column.
- Updated doc/table-mode.txt
- Updated CHANGELOG.md
v2.4.0
2013-05-05 08:47:21 +05:30
Dhruva Sagar
272bef4ce0 Releasing v2.3.0
- 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
v2.3.0
2013-05-04 03:23:20 +05:30
Dhruva Sagar
7c4039e5e1 Updated Table Mode Public API
- 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.
2013-05-03 16:22:20 +05:30
Dhruva Sagar
28b13a32ab Fixed #6
- Realign now updates table borders as well.
2013-05-01 12:08:39 +05:30
Dhruva Sagar
599a39c28d Updated documentation 2013-05-01 02:30:24 +05:30
Dhruva Sagar
241d0ccba0 Finished #6
- Updated doc.
- Bumped version.
- Added a mapping for realigning table columns.
- Added mapping for moving to next / prev row / column.
v2.2.2
2013-05-01 01:57:47 +05:30
Dhruva Sagar
ef3e5323d0 Fixed bugs
- Covered case when commentstring is not set (default).
- Escaping commentstring symbols.
2013-04-09 10:53:57 +05:30
Dhruva Sagar
8489ca0c3b Refactored for table within inline comments v2.2.1 2013-04-08 21:40:02 +05:30
Dhruva Sagar
a5e2584347 Releasing v2.2.1
- 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.
2013-04-08 19:52:37 +05:30
Dhruva Sagar
c6609fd67d Moved Change Log to CHANGELOG.md 2013-03-28 18:02:14 +05:30
Dhruva Sagar
f189754d2e Releasing v2.2
- 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.
v2.2
2013-03-28 15:41:26 +05:30
Dhruva Sagar
87f9e9d3f5 Updated Table Mode
- Added recommended check for vi compatibility.
- Updated docs.
2013-03-26 16:46:40 +05:30
Dhruva Sagar
e997144d2f Releasing v2.1.3
- 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.
v2.1.3
2013-03-25 11:04:14 +05:30
Dhruva Sagar
554c57703f Minor refactoring 2013-03-23 12:40:48 +05:30
Dhruva Sagar
60ab92cd35 Updated doc & README.md v2.1.2 2013-03-21 13:37:30 +05:30
Dhruva Sagar
503271fca5 Fixed #4 2013-03-21 13:35:16 +05:30
Dhruva Sagar
b789e2c86f Fixed #3 2013-03-21 12:41:02 +05:30
Dhruva Sagar
7b89b6b50d Insert mode mapping is for current buffer only #2 2013-03-21 12:16:27 +05:30
Dhruva Sagar
28dc1626ab Merge branch 'master' of github.com:dhruvasagar/vim-table-mode 2013-03-21 08:47:53 +05:30
Dhruva Sagar
f8610cebdb Releasing v2.1.1
- Moved some code around for better readability.
- Added new option g:table_mode_align for allowing the user to set the
  format option for aligning the text, this is passed directly to
  Tabular.
- Updated vim doc.
- Updated README.md
v2.1.1
2013-03-21 08:46:18 +05:30