wadetb / Sublime-Text-Advanced-CSV

Efficiently format, edit, arrange, and evaluate cells in CSV files
169 stars 14 forks source link

Added CSV:Format function #17

Closed P-Ushakov closed 9 years ago

P-Ushakov commented 9 years ago

from https://github.com/ericmartel/Sublime-Text-2-CSV-Plugin

with small changes to make it work in this project

This function let you format CSV text to plain text with template. Very useful if you want to make .PO files or .XML files from CSV files

Usage: in Sublime press Ctrl + Shift + P write CSV:Format In the opened line add your template. Use {0} , {1} , {....} for columns of your CSV file For example if your CSV file have fields:

Field_A , Field_B

11111 , 22222

and you will use format {0} ***\ {1}

You recive file with data:

11111 ***\ 22222

P-Ushakov commented 9 years ago

Added menu function in CSV: "Format by template" Added submenu function in CSV: "Format by template" Added hot key "Ctrl+,","f" Removed unnecessary code

wadetb commented 9 years ago

This is now merged; apologies for the delay.