Skip to content

Commit 76c748e

Browse files
committed
last fixes and bump version
1 parent 94f6382 commit 76c748e

File tree

13 files changed

+39
-53
lines changed

13 files changed

+39
-53
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Obsidian Meta Bind Changelog
22

3-
# 0.6.0 - UNRELEASED
3+
# 0.6.0
44

55
New Features
66

exampleVault/Input Fields/Date and Time.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
time: 14:12
3-
date2: Tuesday, September 12th 2023
3+
date2:
44
date1: 2023-06-08
55
---
66

@@ -14,6 +14,10 @@ INPUT[date(showcase):date1]
1414
INPUT[date_picker(showcase):date2]
1515
```
1616

17+
```meta-bind
18+
INPUT[datePicker(showcase):date2]
19+
```
20+
1721
### Time
1822
```meta-bind
1923
INPUT[time(showcase):time]

exampleVault/Input Fields/Image Suggester.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
image: Other/Images/img_flower.webp
2+
image: Other/Images/img_frozen_branch.jpg
33
---
44

55
```meta-bind

exampleVault/Input Fields/Inline Select.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
---
2-
select: b
2+
select: a
33
select2: "2"
44
---
55

6-
`INPUT[inlineSelect(option(a), option(b), showcase):select]`
6+
```meta-bind
7+
INPUT[inlineSelect(option(a), option(b), showcase):select]
8+
```
9+
10+
```meta-bind
11+
INPUT[inlineSelect(option(1, a), option(2, b), showcase):select2]
12+
```
713

8-
`INPUT[inlineSelect(option(1, a), option(2, b), showcase):select2]`

exampleVault/Meta Bind JS.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

exampleVault/Other/templater test.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

exampleVault/View Fields/JS View Field.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
number1: 22
3-
number2: 1
2+
number1: 23
3+
number2: 5
44
---
55
`INPUT[number:number1]`
66
`INPUT[number:number2]`

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.5.1",
4+
"version": "0.6.0",
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.5.1",
3+
"version": "0.6.0",
44
"description": "This plugin can create input fields inside your notes and bind them to metadata fields.",
55
"main": "main.js",
66
"scripts": {

src/api/InputFieldAPI.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,12 @@ export class InputFieldAPI {
9090

9191
public setBindTargetMetadataField(
9292
unvalidatedDeclaration: UnvalidatedInputFieldDeclaration,
93-
bindTargetMetadataField: string[]
93+
bindTargetMetadataField: string | string[]
9494
): UnvalidatedInputFieldDeclaration {
95+
if (typeof bindTargetMetadataField === 'string') {
96+
bindTargetMetadataField = [bindTargetMetadataField];
97+
}
98+
9599
if (unvalidatedDeclaration.bindTarget) {
96100
unvalidatedDeclaration.bindTarget.path = bindTargetMetadataField.map(x => ({ value: x }));
97101
} else {

0 commit comments

Comments
 (0)