jbhaywood/sidebar-infobox

Support For Nested YAML

Closed this issue · 3 comments

Will there be support for nested YAML properties?

I hadn't thought about it, but what would you expect that look like?

at simplest just having it in the dot notation that a lot of other plugins use ("name.given" for example) to signify nested data. but maybe having the top level row be highlighted or bolded in some way and then a dropdown arrow next to the key that reveals/hides the values underneath

something visually similar to this is what I was thinking

Stat Value
fileClass Character
> name
given John
familyName Doe
familyGroup Doe
description an unidentified male

I uploaded an update that just does the simple thing of using a dot separator (or any character you want, as defined in the settings).