mechatroner / sublime_rainbow_csv

🌈Rainbow CSV - Sublime Text Package: Highlight columns in CSV and TSV files and run queeries in SQL-like language
MIT License
119 stars 7 forks source link

| 'pipe' separator auto-detection not working #17

Closed tomapirin closed 5 years ago

tomapirin commented 5 years ago

Hello, first of all, thank you for this FANTASTIC Sublime package, it saves me a great deal of time analysing csv files. It worked seamless opening files with 'comma' delimiter. When we changed to 'pipe' separator it did not auto-detect it.

I have upgraded Sublime and the package to latest version. Sublime Text v3.2 sublime_rainbow_csv v1.1.1

I have tried to change user settings with no success. "enable_rainbow_csv_autodetect": true/false. If I manually set separator in menu "Enable standard" or "Enable simple". It highlights the repeated re-open of file. But for every new csv file I have to set it manually again, and I deal with a lot of files.

Could this be somehow defined in settings, or simply changed in application code? If not, could it be fixed?

Issue example image

mechatroner commented 5 years ago

Hi @tomapirin, Thank you very much for the feedback! Sure, this is easy to implement. I will include this feature in the next release.

tomapirin commented 5 years ago

Hi @mechatroner, when is the next release expected?

mechatroner commented 5 years ago

I will try to publish it on Friday this week

mechatroner commented 5 years ago

Implemented in 1.2.1

mechatroner commented 5 years ago

This config line should do the trick:

"rainbow_csv_autodetect_dialects": [["\t", "simple"], [",", "quoted"], [";", "quoted"], ["|", "simple"]]

Please let me know if it doesn't work or if there are some other issues!

tomapirin commented 5 years ago

Great job, works perfectly!