Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What do I have to change to use ; as a separator for csv files #46

Open
dahanbn opened this issue Sep 5, 2017 · 4 comments
Open

What do I have to change to use ; as a separator for csv files #46

dahanbn opened this issue Sep 5, 2017 · 4 comments

Comments

@dahanbn
Copy link

dahanbn commented Sep 5, 2017

In Germany a comma isn't usually a separator for csv fields. And my data uses the comma as a decimal point.

What do I have to set in my user settings that the package will only use the semicolon as a field separator for csv files?

I tried the following without any effect:

{
  "delimiter_mapping": {
  	"*.csv": ";",
  	"*.psv": "|",
  	"*.tsv": "\t"
  },
  "delimiter": ";",
  "auto_quote": true
}
@Bobtron2000
Copy link

Second that, semicolon would be much more useful to me.
Actually comma is useless to me, often there is at comment section, that will contain comma(s), one of the reasons that standard around here also is semicolon.

And btw. is there a way to change the syntax color?

@wadetb
Copy link
Owner

wadetb commented Mar 28, 2018

Thanks for the report @dahanbn and apologies for the slow reply. I'll investigate using ; as a separator.

Note that it won't affect syntax highlighting - as far as I know Sublime does not allow changing the syntax regex based on settings - though it might be possible to support different syntax files for common cases based on extension?

@Korsani
Copy link

Korsani commented Nov 19, 2020

Same here!
Adding that:
right click -> set delimiter -> ';'
doesn't work

@GitDoggo
Copy link

I managed to have ';' work as a delimiter with the settings but syntax highlighting is a big problem. Everything is the same color, it's less practical than no color at all.
At this point I even think a fork of the package where everything is the same except ';' is the default delimiter could be worth it. As it is now, the package is hardly usable for people who work with semicolons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants