This plugin can create input fields inside your notes and bind them to metadata fields.
I am currently working on new docs for this plugin. https://mprojectscode.github.io/obsidian-meta-bind-plugin-docs
To create an input field you have to write an inline code block or normal code block starting with INPUT
. Then in square brackets the type of input field, in round brackets arguments and finally behind a colon the metadata field to bind to.
INPUT[toggle]
will create an unbound toggleINPUT[slider:rating]
will create a slider bound to the metadata fieldrating
of this noteINPUT[text:task#completedOn]
will create a text input bound to the metadata fieldcompletedOn
of the note with the nametask
The plugin also allows further customization with arguments. So the complete syntax looks like this:
INPUT[input_type(argument_name(argument_value), argument_name_2, ...):file_name_or_path#metadata_field]
For more examples see the exampleVault
folder.
slider
a slider from 0 to 100 (custom ranges can be set usingminValue
andmaxValue
, see below)toggle
a toggle elementtext
a text fieldtext_area
a bigger text fieldselect
a select input field, only for code blocksmulti_select
a multi-select input field, only for code blocksdate
a date input field
class(class_name)
adds a css class to the input fieldaddLabels
only for slider, adds labels for the min and max valuesminValue(value)
only for slider, sets the min valuemaxValue(value)
only for slider, sets the max valueoption(value)
only for (multi-)selects, adds an option to the selecttitle(value)
only for (multi-)selects, adds a title to the select input
You must manually download the zip archive from the latest release here on GitHub.
After downloading, extract the archive into the .obsidian/plugins
folder in your vault.
The folder structure should look like this:
[path to your vault]
|_ .obsidian
|_ plugins
|_ obsidian-meta-bind-plugin
|_ main.js
|_ manifest.json
|_ styles.css
You are more than welcome to open an issue on GitHub.
This is intentional. To reduce the load on your hard drive the plugin ony syncs about 5 times a second. There is a setting to change the sync interval, but I don't recommend changing it.
Thank you for wanting to contribute to this project.
Contributions are always welcome. If you have an idea, feel free to open a feature request under the issue tab or even create a pull request.