wadetb / Sublime-Text-Advanced-CSV

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

Default delimiter #27

Closed lorenzofanchi closed 7 years ago

lorenzofanchi commented 8 years ago

Hi,

Great package! I would love to be able to set the default delimiter, as I mostly work with TSV files. Now it's a bit of a hassle to have to change the delimiter every time..

Alternatively, auto-detection of the delimiter would be even better :)

Thanks!

dacook commented 8 years ago

@lorenzofanchi you should be able to set the default delimiter in your user preferences (AdvancedCSV.sublime-settings).

But I also would love to see auto detection based on filename. A user-defineable would give us enough flexibility, eg:

"delimiter_mapping": {
    "*.tsv": "\t",
    "*.psv": "|"
  }

(if no filename match, it would use the default delimiter)

wadetb commented 7 years ago

Added mapping as described.

dacook commented 7 years ago

Thanks Wade!