jaredyam / table-generator

A Sublime Text 3 plugin for converting CSV-like text to other readable table formats in place.

Home Page:https://github.com/jaredyam/table-generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table Generator - ST3 Plugin

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.

DEMO: demo-gif

Installation

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

Usage

  1. 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;
  2. Press ctrl/cmd + shift + P to bring up the command palette;
  3. Enter Table Generator into the command palette;
  4. Select a specific converter and press Enter;
  5. Enter the alignment in the command palette, e.g. assign clr to a 3-column table, where c is for center-aligned, and similarly l is for left-aligned, r is for right-aligned.

Supported Commands

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

About

A Sublime Text 3 plugin for converting CSV-like text to other readable table formats in place.

https://github.com/jaredyam/table-generator


Languages

Language:Python 88.6%Language:Shell 11.4%