Support for TOML

Suggestion: Support for TOML would be lovely:

  • Editor
  • Merge documents

Currently, I need to use an external editor:

Use case:
I want to document meta information about a contract and merge them into a single file without fiddling around with commas etc.

[[contract]]
  name = "Company"
  street = "Street 1"
  city = "12243 City"
  phone_number = "123456"
  website = ""
  [contract.additional_info]
    customer_id = 23234243

For now I plan to use a script for merging, but having editor support would be helpful.

1 Like

Is there any structured data format natively supported by DT?

You could use the hidden preference AdditionalPlainTextExtensions to add the extension to the list of known plain text extensions and just edit it like plain text.

Ah. That’s good. Or just use “.toml.txt”, not very “pretty”, but straight forward and should work in DTTG, right? Doing that makes merging work like a charm.

Thanks!