obsidian-state-switcher
obsidian-state-switcher copied to clipboard
Plugin name already rename to `Yaml Manager`. Keep you away from directly operating yaml front matter.
Obsidian Yaml Manager
Keey you away from directly operating yaml front matter, so you won't make mistake.
Demo
Usage
- Update single field
- select
Yaml Manager: key-value update
in command palette to updatekey-value
field. - select
Yaml Manager: key-array insert
orYaml Manager: key-array remove
to insert item tokey-array
field or remove item fromkey-array
field. - Select field name and field value in order.
- select
- Bulk update
- select
Yaml Manager: bulk update
in command palette, you will understand the rest.
- select
These command only available in edit mode!!!
You can assign hotkeys to these commands for conviences;
Notice
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.
Working on
- Make it support more data structure, such as key-object(still no clue and not sure if it's necessary).
Manually installing the plugin
- Copy over
main.js
,styles.css
,manifest.json
to your vaultVaultFolder/.obsidian/plugins/obsidian-state-switcher/
.
Release
1.3.0
The formation of yaml array is customizable(- item
or [item]
)!
1.2.0
Now you can update multiple fields in one time!
1.1.0
You may need to reset hotkey to call this plugin if you have set ever.
- Key-array structure supported
- Add return option to sub menu