Skip to content

Commit e56e0b3

Browse files
committed
update readme and bump version
1 parent 2d67a5a commit e56e0b3

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This plugin can create input fields inside your notes and bind them to metadata
55
This plugin is not yet finished.
66

77
### How to use
8-
To create an input field you have to write an inline code block starting with `INPUT`. Then in square brackets the type of input field and what metadata field to bind to.
8+
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.
99

10-
Examples:
10+
#### Examples:
1111
- `INPUT[toggle]` will create an unbound toggle
1212
- `INPUT[slider:rating]` will create a slider bound to the metadata field `rating` of this note
1313
- `INPUT[text:task#completedOn]` will create a text input bound to the metadata field `completedOn` of the note with the name `task`
@@ -22,12 +22,17 @@ INPUT[input_type(argument_name(argument_value), argument_name_2, ...):file_name_
2222
- `toggle` a toggle element
2323
- `text` a text field
2424
- `text_area` a bigger text field
25+
- `select` a select input field, only for code blocks
26+
- `multi-select` a multi-select input field, only for code blocks
27+
- `date` a date input field
2528

2629
#### Arguments
2730
- `class(class_name)` adds a css class to the input field
2831
- `addLabels` only for slider, adds labels for the min and max values
2932
- `minValue(value)` only for slider, sets the min value
3033
- `maxValue(value)` only for slider, sets the max value
34+
- `option(value)` only for (multi-)selects, adds an option to the select
35+
- `title(value)` only for (multi-)selects, adds a title to the select input
3136

3237
### How to install
3338
This plugin is still in **beta**.
@@ -47,11 +52,12 @@ The folder structure should look like this:
4752
```
4853

4954
### Problems, unexpected behavior or improvement suggestions?
50-
#### The sync seems laggy
51-
This is intentional. To reduce the load on your hard drive the plugin ony syncs about 5 times a second.
52-
5355
You are more than welcome to open an issue on [GitHub](https://github.com/mProjectsCode/obsidian-meta-bind-plugin/issues).
5456

57+
#### The sync seems laggy
58+
This is intentional. To reduce the load on your hard drive the plugin ony syncs about 5 times a second.
59+
There is a setting to change the sync interval, but I don't recommend changing it.
60+
5561
### Contributions
5662
Thank you for wanting to contribute to this project.
5763

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-meta-bind-plugin",
33
"name": "Meta Bind Plugin",
4-
"version": "0.1.6",
4+
"version": "0.1.7",
55
"minAppVersion": "0.14.0",
66
"description": "This plugin can create input fields inside your notes and bind them to metadata fields.",
77
"author": "Moritz Jung",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-meta-bind-plugin",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "This plugin can create input fields inside your notes and bind them to metadata fields.",
55
"main": "main.js",
66
"scripts": {

styles.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
}
4343

4444
.meta-bind-plugin-select-input-header {
45-
margin: 5px 5px 10px 5px;
45+
margin: 5px 5px 5px 5px;
46+
font-weight: bold;
4647
}
4748

4849
.meta-bind-plugin-select-input-element {

0 commit comments

Comments
 (0)