Commit Graph

340 Commits

Author SHA1 Message Date
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
Dhruva Sagar
8169303d40 Added helpful comment for magic within TableizeRange 2013-03-18 17:20:17 +05:30
Dhruva Sagar
c94b91237e Added s:strlen for counting multibyte characters
Check :h strlen() for more details with regards to counting multibyte
characters accurately.
2013-03-18 17:06:15 +05:30
Dhruva Sagar
674f3e376c Removed unnecessary check 2013-03-18 16:11:31 +05:30
Dhruva Sagar
750ad58ad5 Updated README 2013-03-18 12:31:03 +05:30
Dhruva Sagar
18681a5517 Update README.md 2013-03-18 12:28:18 +05:30
Dhruva Sagar
5defaa10e4 Fixed ConvertDelimiterToSeparator
- 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.
2013-03-18 12:19:38 +05:30
Dhruva Sagar
b2ba3caf24 Added Tableize to wrap content into a table.
- 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.
2013-03-18 12:10:12 +05:30
Dhruva Sagar
71135d6b60 Updated README.md 2013-03-17 15:16:02 +05:30
Dhruva Sagar
958084d9d6 Fixed readme & added youtube screenshot 2013-03-17 13:55:53 +05:30
Dhruva Sagar
ff040d25ce Removed slow demo.gif & linked youtube video 2013-03-17 13:19:26 +05:30
Dhruva Sagar
178783f813 Updated table-mode doc, added author & license. 2013-03-17 11:57:09 +05:30
Dhruva Sagar
0293c35e24 Updated README and added credits section. 2013-03-17 11:51:46 +05:30
Dhruva Sagar
f1707199d4 Fixed the doc, Added demo gif & updated README 2013-03-17 11:45:21 +05:30
Dhruva Sagar
b9eb7a25d5 Added more commands & updated help dpc
- Added :TableModeEnable to explicitly enable & :TableModeDisable to
  explicitly disable the plugin.
2013-03-17 04:37:11 +05:30
Dhruva Sagar
73ff16f147 Updated README 2013-03-17 04:18:29 +05:30
Dhruva Sagar
368d32de45 Table Mode v1.0 2013-03-17 03:56:43 +05:30