A Sublime Text 3 plugin for converting CSV-like text to other readable table formats in place. The converter internal is a fork from jaredyam/csv-converter.
Clone the repository in your Sublime Text "Packages" directory:
git clone https://github.com/jaredyam/table-generator.git
e.g. the "Packages" directory on macOS is located at:
~/Library/Application Support/Sublime Text 3/Packages/
Then execute install.sh
script for downloading the dependent package:
$ sh install.sh
- Select a target area covering the CSV-like text. If there is no selection, all text in the current view will be regarded as the raw data;
- Press
ctrl/cmd + shift + P
to bring up thecommand palette
; - Enter
Table Generator
into thecommand palette
; - Select a specific converter and press
Enter
; - Enter the alignment in the
command palette
, e.g. assignclr
to a 3-column table, wherec
is forcenter-aligned
, and similarlyl
is forleft-aligned
,r
is forright-aligned
.
Command | Caption In Command Palette |
---|---|
plain_table_generator |
Table Generator: generate plain table |
markdown_table_generator |
Table Generator: generate markdown table |
latex_table_generator |
Table Generator: generate latex table |