yamlfix icon indicating copy to clipboard operation
yamlfix copied to clipboard

Support configuration option for mapping style format

Open dsayling opened this issue 2 years ago • 0 comments

Description

It would be great to have a feature like that of export YAMLFIX_SEQUENCE_STYLE="flow_style", but for mappings.

Possibly, export YAMLFIX_MAPPING_STYLE="flow_style"

Possible Solution

Set to true (flow-style):

---
map: { key: val, other: item }

Set to false (block-style):

---
map:
  key: val
  other: item

Additional context

Other possibilities include whatever this style is

---
map:
  {
    key: val
    other: item
  }

Related Issue

None that I could see

dsayling avatar Jan 31 '24 15:01 dsayling