lijyze12k downloadsKeep you away from directly operating YAML frontmatter.
Keey you away from directly operating yaml front matter, so you won't make mistake.

Yaml Manager: key-value update in command palette to update key-value field.Yaml Manager: key-array insert or Yaml Manager: key-array remove to insert item to key-array field or remove item from key-array field.Yaml Manager: bulk update in command palette, you will understand the rest.These command only available in edit mode!!!
You can assign hotkeys to these commands for conviences;
This plugin only switch value of field which is placed in yaml front matter, if no front matter was founded, it will create one then insert the key-value pair just selected into it.
main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/obsidian-state-switcher/.The formation of yaml array is customizable(- item or [item])!
Now you can update multiple fields in one time!
You may need to reset hotkey to call this plugin if you have set ever.