chronofile icon indicating copy to clipboard operation
chronofile copied to clipboard

Nested activities in config

Open M2WZ opened this issue 3 years ago • 2 comments

Hi, it would be nice to have a way to have nesting in the config file, e.g.

{"activityGroups":{
  "Exercise":{
    "Outdoor":[
      "Hiking",
      "Jogging"
    ],
    "Indoor":[
      "Yoga",
      "Workout"
    ]
  }
}}

Would it be possible to add something like this or is it already implemented in another way?

M2WZ avatar Jan 01 '22 18:01 M2WZ

Interesting idea. Would you expect all of these to be charted as Exercise?

Not supported at the moment, but one possible way to express this without changing the format:

{"activityGroups":{
  "Exercise":[
    "Outdoor",
    "Indoor"
  ],
  "Outdoor":[
    "Hiking",
    "Jogging"
  ],
  "Indoor":[
    "Yoga",
    "Workout"
  ]
}}

artnc avatar Jan 01 '22 20:01 artnc

Would you expect all of these to be charted as Exercise?

Yup

Not supported at the moment, but one possible way to express this without changing the format:

Oh wow, didn't think of that. That would work just fine too, thanks! Maybe you could add this to the example in the app?

I do have another question now: is it possible to have something like this?

{
  "activityGroups": {
    "Exercise": [
      "Outdoor",
      "Indoor"
    ],
    "Outdoor": [
      "Hiking",
      "Lifting"
    ],
    "Indoor": [
      "Yoga",
      "Lifting"
    ]
  }
}

Just an example, but it is about having 2 same things in different places, so you could do both (Exercise::)Outdoor::Lifting and (Exercise::)Indoor::Lifting. Would something like this be possible?

Thank you for replying so quickly, sorry that I replied so late.

M2WZ avatar Jan 12 '22 21:01 M2WZ