366 Commits

Author SHA1 Message Date
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
Dhruva Sagar
da871cac51 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
2013-03-21 08:44:26 +05:30
Dhruva Sagar
f23737d5fa Releasing v2.1
- 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.
v2.1
2013-03-20 07:24:54 +05:30
Dhruva Sagar
3cf75f665e Updated non-pathogen installation instructions 2013-03-19 11:29:13 +05:30
Dhruva Sagar
e6e49e8907 Updated README 2013-03-19 09:34:12 +05:30
Dhruva Sagar
39d71ddfd3 Releasing v2.0
- Moved relevant code to autoload.
- Added markers for folding.
- Updated README.md
- Updated doc/text-mode.txt
v2.0
2013-03-19 09:25:30 +05:30
Dhruva Sagar
21d8926165 Updated vim doc
Added tag links for all commands
2013-03-18 19:17:37 +05:30
Dhruva Sagar
ab11ee1035 Added normal mode mapping as well
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).
2013-03-18 19:01:14 +05:30
Dhruva Sagar
a3aba5100e Fixed Tableize indentation issue
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.
2013-03-18 17:57:14 +05:30
Dhruva Sagar
12700a2a3b Updated UpdateLineBorder function
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.
2013-03-18 17:55:01 +05:30