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

Profiles & Formats (CSV) #74

Closed
IAmVigneswaran opened this issue Dec 1, 2023 · 6 comments
Closed

Profiles & Formats (CSV) #74

IAmVigneswaran opened this issue Dec 1, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request profiles Ideas for new profiles
Milestone

Comments

@IAmVigneswaran
Copy link
Contributor

Continuing the discussion here from #21 (comment)

We can have Export Profile name called CSV.

While both of our Notion and Airtable Profiles' manifest file would be in .json file format, it would be great if we can have a dedicated profile called CSV.

It would allow users to import the data into spreadsheet applications like, Excel, Numbers, Google Sheet or Libreoffice.

We can use the current Airtable's CSV profile for CSV profile. It would not have Icon Image column and it would not generate the Notion icons.

I am not sure if .csv or .tsv would make the best sense.

https://stackoverflow.com/questions/11130120/choosing-between-tsv-and-csv

@IAmVigneswaran IAmVigneswaran added enhancement New feature or request profiles Ideas for new profiles labels Dec 1, 2023
@IAmVigneswaran IAmVigneswaran added this to the 0.3.2 milestone Dec 1, 2023
@orchetect
Copy link
Contributor

orchetect commented Dec 1, 2023

It's pretty easy to support both TSV and CSV. I've done it in many other apps.

There is actually more to the formats than just using a tab or comma as column delimiters. There's additional formatting considerations. So whenever reading or writing these formats, never parse it manually. Always use a library that is designed to read and write them. And of course same principle applies to JSON.

@orchetect
Copy link
Contributor

Once we have a CSV profile it should probably become the default profile since it's the most vanilla / common format.

@orchetect orchetect self-assigned this Dec 16, 2023
@IAmVigneswaran
Copy link
Contributor Author

Once we have a CSV profile it should probably become the default profile since it's the most vanilla / common format.

Yes. CSV profile can become the new default.

orchetect added a commit that referenced this issue Jan 1, 2024
orchetect added a commit that referenced this issue Jan 1, 2024
@orchetect
Copy link
Contributor

Done. CSV and TSV profiles will be in 0.3.1.

I have also fixed CSV encoding so fields that might contain double-quotes (") and/or commas (,) encode correctly.

@orchetect orchetect modified the milestones: 0.3.2, 0.3.1 Jan 1, 2024
@IAmVigneswaran
Copy link
Contributor Author

Notion is still the default profile in 0.3.1?

@orchetect
Copy link
Contributor

Yeah, missed that. I'll update the new issue when it's changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request profiles Ideas for new profiles
Projects
None yet
Development

No branches or pull requests

2 participants