pandoc-csv2table icon indicating copy to clipboard operation
pandoc-csv2table copied to clipboard

Support .tsv files with tab-separation

Open dhimmel opened this issue 5 years ago • 1 comments

In my field of research, bioinformatics, TSV (tab-separated variables) is often used instead of CSV. The only difference is that the values are tab rather than comma separated. For example, GitHub supports both .csv and .tsv files when providing formatted table views.

It would be a nice addition if this filter could interpret .tsv filename extensions. I don't know anything about haskell, but it looks like the SSV package may be helpful for implementing this.

dhimmel avatar Mar 11 '20 13:03 dhimmel

If .tsv files are not humongous, you can convert them to .csv before running this filter. Run the following command in Linux shell or Windows 10 WSL to convert a .tsv file to .csv:

cat input.tsv | tr "\t" "," > output.csv

baig avatar Mar 19 '20 04:03 baig