Skip to content

Commit

Permalink
Rename :Tabularize and :Table command to :CSVTable
Browse files Browse the repository at this point in the history
fixes #33
  • Loading branch information
chrisbra committed May 14, 2014
1 parent 9276b03 commit 58046aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
9 changes: 6 additions & 3 deletions doc/ft-csv.txt
Expand Up @@ -770,13 +770,13 @@ otherwise it will only transpose the lines in the range given. Note, comments
will be deleted and transposing does not work with fixed-width columns.

*:CSVTabularize*
3.23 Transforming into a table *Table* *csv-tabularize*
3.23 Transforming into a table *:CSVTable* *csv-tabularize*
------------------------------

You can also transform your csv data into a visual table, using the
`:Tabularize` or `:CSVTabularize` : >
`:CSVTabularize` or `:CSVTable`: >
:Tabularize
:CSVTabularize
<
command. This will make a frame around your csv data and substitute all
delimiters by '|', so that it will look like a table.
Expand Down Expand Up @@ -1447,6 +1447,9 @@ Index;Value1;Value2`
- invalid reference to a WarningMsg() function
- WhatColumn! error, if the first line did not contain as many fields
as the line to check.
- Rename |:Table| command to |:CSVTable| (
https://github.com/chrisbra/csv.vim/issues/33,
reported by Peter Jaros, thanks!)

0.30 Mar 27, 2014 {{{1
- |:CSVSubstitute| should substitute all matches in a column, when 'g' flag is
Expand Down
3 changes: 0 additions & 3 deletions ftplugin/csv.vim
Expand Up @@ -1937,9 +1937,6 @@ fu! <sid>CommandDefinitions() "{{{3
\ '-nargs=1 -complete=custom,<sid>CompleteColumnNr')
call <sid>LocalCmd('Transpose', ':call <sid>Transpose(<line1>, <line2>)',
\ '-range=%')
call <sid>LocalCmd('Tabularize', ':call <sid>Tabularize(<bang>0,<line1>,<line2>)',
\ '-bang -range=%')
" Alias for :Tabularize, might be taken by Tabular plugin
call <sid>LocalCmd('CSVTabularize', ':call <sid>Tabularize(<bang>0,<line1>,<line2>)',
\ '-bang -range=%')
call <sid>LocalCmd("AddColumn",
Expand Down
2 changes: 1 addition & 1 deletion plugin/csv.vim
Expand Up @@ -20,7 +20,7 @@ elseif exists("#CSV_Edit#BufReadPost")
aug! CSV_Edit
endif

com! -range -bang Table call <sid>Table(<bang>0, <line1>, <line2>)
com! -range -bang CSVTable call <sid>Table(<bang>0, <line1>, <line2>)

fu! <sid>Table(bang, line1, line2)
" save and restore some options
Expand Down

0 comments on commit 58046aa

Please sign in to comment.