darren-project800 downloadsAdds a key-value store. Use it to store and retrieve key-value pairs in your vault.
This plugin adds a key-value store to Obsidian, allowing you to store and retrieve key-value pairs in your vault.
Settings > Third-party plugin.Safe mode is off.Browse and search for "KV Store".Install.Once the plugin is installed and enabled, you can access the key-value store from the settings page.
Settings > KV Store.The data should be in JSON format, like this:
{
"key1": "value1",
"key2": "value2",
"key3": "value3"
}
To add a new key-value pair, simply add a new line with your key and value, like this:
{
"key1": "value1",
"key2": "value2",
"key3": "value3",
"key4": "value4"
}
To modify a value, change the value next to the key, like this:
{
"key1": "value1",
"key2": "value2",
"key3": "new value"
}
To delete a key-value pair, remove the line with the key and value, like this:
{
"key1": "value1",
"key2": "value2"
}
After making changes, the plugin will automatically save your data. If your data is not valid JSON, the plugin will show an error message.
kv.set(name: string, value: any, position: number)
// Position is from 0 to the last item number -1
// If your object has 7 keys, the last item number is 6
// Maximum limit is last object
kv.get(name: string)
kv.delete(name: string)
kv.has(name: string)
kv.keys()
kv.values()
kv.entries()
If you encounter any issues or have any questions about this plugin, please open an issue on the GitHub repository.
This plugin is licensed under the Apache License. See the LICENSE file for more information.