State Switcher

by Lijyze
5
4
3
2
1
Score: 48/100

Description

Category: Note Enhancements

The State Switcher plugin is a game-changer for Obsidian users who frequently work with YAML front matter. This plugin provides an intuitive way to update and manage your YAML fields without having to manually edit the code. With State Switcher, you can quickly update individual fields or bulk update multiple fields at once using simple commands in the command palette. The plugin also supports customizable array formatting and allows you to assign hotkeys for added convenience. Whether you're working with key-value pairs or arrays, State Switcher simplifies the process of managing your YAML front matter, saving you time and reducing errors.

Reviews

No reviews yet.

Stats

45
stars
12,065
downloads
1
forks
1,438
days
1,387
days
1,410
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
13
total issues
3
open issues
10
closed issues
0
commits

Latest Version

4 years ago

Changelog

Bug fixed:

  1. A bug that cause user can't reach key-value update modal if one don't update config.

README file from

Github

Obsidian Yaml Manager

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

Demo

demo

Usage

  • Update single field
    • select Yaml Manager: key-value update in command palette to update key-value field.
    • select 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.
    • Select field name and field value in order.
  • Bulk update
    • select 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;

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

  1. 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 vault VaultFolder/.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.

  1. Key-array structure supported
  2. Add return option to sub menu

Donating