How about the ability to change the CSV delimiter?

Suggestions? Comments? Features you'd like to see?
Post Reply
gjc999
Posts: 45
Joined: Tue Aug 03, 2010 12:27 pm
Dive Computer: Pro 2.1

How about the ability to change the CSV delimiter?

Post by gjc999 »

I know it's called a comma separated value file for a reason, but it would be helpful to be able to change the delimiter to something else on an export. I have a lot of location data that has a comma in the value, and the export is being parsed funny by open-office. If there was a way to select "|" or "\" or something like that, it would be useful on occasion. Either have it in the export dialog as an option, or maybe have another setting in the preferences dialog.
User avatar
nick
Site Admin
Posts: 4361
Joined: Sat Apr 12, 2008 8:33 am
Dive Computer: Shearwater Teric
Contact:

Re: How about the ability to change the CSV delimiter?

Post by nick »

Which piece of data ?

The fields are all output in quotes, so they shouldn't be getting confused by commas in values. Is it just open office? Does QuickLook deal with it correctly (just select it in the finder and quicklook it) ?

I can look at adding an option but it shouldn't be happening.
gjc999
Posts: 45
Joined: Tue Aug 03, 2010 12:27 pm
Dive Computer: Pro 2.1

Re: How about the ability to change the CSV delimiter?

Post by gjc999 »

My data in the location column is almost always something like "Town, State", like "Boston, MA". I just opened an export in TextEdit and now that I look at it it looks correct:

Code: Select all

"32.00", "2008-06-01 09:34:00 -0400", "Webster, MA", "31.00", "0.00", "Webster Lake", "74.03", "1965", "Training", "Good"
At first it seemed the OpenOffice CSV import wizard is completely ignoring the " " that surrounds the field. After further investigation however it looks to be the whitespace between the comma and the quotes. This line is consumed by OpenOffice just fine:

Code: Select all

"32.00","2008-06-01 09:34:00 -0400","Webster, MA","31.00","0.00","Webster Lake","74.03","1965","Training","Good"
So, maybe forget the selectable delimiter and remove the whitespace characters?
gjc999
Posts: 45
Joined: Tue Aug 03, 2010 12:27 pm
Dive Computer: Pro 2.1

Re: How about the ability to change the CSV delimiter?

Post by gjc999 »

QuickLook displayed the file perfectly by the way...
User avatar
nick
Site Admin
Posts: 4361
Joined: Sat Apr 12, 2008 8:33 am
Dive Computer: Shearwater Teric
Contact:

Re: How about the ability to change the CSV delimiter?

Post by nick »

Wow, OpenOffice being picky :)

Sure, I can remove the whitespace no problem.
User avatar
nick
Site Admin
Posts: 4361
Joined: Sat Apr 12, 2008 8:33 am
Dive Computer: Shearwater Teric
Contact:

Re: How about the ability to change the CSV delimiter?

Post by nick »

Sorted for the next patch.
Post Reply