elliotchance / gedcom

👪 A Go library and CLI tools for encoding, decoding, traversing, merging, comparing, querying and publishing GEDCOM files.
MIT License
97 stars 22 forks source link

csv2gedcom possible? Sample code? #317

Closed sarnobat closed 3 years ago

sarnobat commented 3 years ago

As I attempt to get away from the captive user interface that is MyHeritage Family Tree Builder, this project is central to my toolchain whenever family members share new information with me.

I'd like to edit gedcom files by:

  1. converting all the data in my gedcom file to CSV
  2. edit the CSV data in my favorite program (could be plaintext editor or a spreadsheet)
  3. Save the CSV data
  4. Write the entire CSV file out to gedcom again

I think your project does the hard work to make this possible, but part 4) I need some guidance to figure out (I'm trying to learn Golang but am not there yet). Is it possible to provide a code sample to guide me? This is the closest I can see in the docs but I'm not sure whether "encoding" means "writing Golang data out to gedcom file."

Again, fantastic work and I hope I'll be using this project long term.

sarnobat commented 3 years ago

See https://github.com/elliotchance/gedcom/issues/318#issuecomment-831998489