mechatroner / vscode_rainbow_csv

🌈Rainbow CSV - VS Code extension: Highlight CSV and TSV files in different rainbow colors to make them more readable
MIT License
426 stars 51 forks source link

single space as delimiter #131

Closed kew24 closed 4 months ago

kew24 commented 1 year ago

Currently, with whitespace as a separator, consecutive whitespaces are merged. However, if I have a file that is delimited by single spaces, I can't seem to make it recognize I want a single space as my delimiter.

Is there any way to specify I want a single space character as my delimiter, or is this restricted to just any whitespace? Maybe adding a setting to toggle off consecutive whitespace merging would work instead. Let me know what you think.

Thanks for this extension — it's been super helpful.

mechatroner commented 1 year ago

Thanks for the feedback! Technically it should be doable, although as I remember there are a lot of places in the code that have special handling of whitespaces by default. Also, it is not obvious how to reflect the choice between merge/no-merge on the UI level. I will try to take a look at it when I have some available time.

mechatroner commented 4 months ago

Done, starting from version 3.12 you can use Set rainbow separator command to select the whitespace separator with a non-merging policy in the new UI.

kew24 commented 4 months ago

Awesome, thanks for adding this in!