Skip to content

Commit baea2a0

Browse files
committed
even more fixes to things
1 parent afc0c25 commit baea2a0

29 files changed

+105
-83
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Obsidian Meta Bind Plugin
22

3-
A plugin for [Obsidian](https://obsidian.md/) to make your notes interactive with inline input fields, metadata displays, and buttons.
3+
A plugin for [Obsidian](https://obsidian.md/) to make your notes interactive with inline **input fields**, **metadata displays (view fields)**, and **buttons**.
44

55
Meta Bind allows you to create input and view fields inside your notes.
66
Those input and view fields can then be bound to frontmatter properties, which keeps them in sync those frontmatter properties.
@@ -11,6 +11,9 @@ When you click the toggle, the `done` property will switch between `true` and `f
1111

1212
To learn more, check out the [docs](https://mprojectscode.github.io/obsidian-meta-bind-plugin-docs).
1313

14+
> [!WARNING]
15+
> The next plugin version will probably be 1.0.0, which will include breaking changes to the plugins JavaScript API.
16+
1417
### Demo
1518

1619
![](https://github.com/mProjectsCode/obsidian-meta-bind-plugin/raw/master/images/meta-bind-plugin-demo-3-gif.gif)
@@ -24,11 +27,6 @@ The plugin provides an offline FAQ/Help page as well, which can be accessed via
2427

2528
You are more than welcome to open an issue on [GitHub](https://github.com/mProjectsCode/obsidian-meta-bind-plugin/issues).
2629

27-
#### The sync seems laggy / It takes half a second for the changes to sync
28-
29-
This is intentional. To reduce the load on your hard drive the plugin ony syncs about 5 times a second.
30-
There is a setting to change the sync interval, but I don't recommend changing it.
31-
3230
### Contributions
3331

3432
Thank you for wanting to contribute to this project.
@@ -38,7 +36,7 @@ Contributions are always welcome. If you have an idea, feel free to open a featu
3836
#### Notes for Contributors
3937

4038
The plugin uses [Bun](https://bun.sh/) instead of Node.js/NPM to manage dependencies.
41-
To install the dependencies, run `bun install` in the root directory of the project.
39+
To install the dependencies, run `bun install` and `bun run pack:i` in the root directory of the project.
4240

4341
- `bun run dev` will build the plugin in dev mode and watch for changes. The plugin builds directly into the example vault inside of this repo.
4442
- `bun run build` will build the plugin in production mode. The plugin builds into the root of this repo.

automation/installScript.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ import config from './config.json';
33

44
async function installScript() {
55
for (const corePackage of config.corePackages) {
6-
await $('bun i', `packages/${corePackage}`, Verboseness.NORMAL);
6+
await $('rm -rf "node_modules"', `packages/${corePackage}`, Verboseness.VERBOSE);
7+
await $('rm "bun.lockb"', `packages/${corePackage}`, Verboseness.VERBOSE);
8+
await $('bun i', `packages/${corePackage}`, Verboseness.VERBOSE);
79
}
810

911
for (const nonCorePackage of config.packages) {
12+
await $('rm -rf "node_modules"', `packages/${nonCorePackage}`, Verboseness.VERBOSE);
13+
await $('rm "bun.lockb"', `packages/${nonCorePackage}`, Verboseness.VERBOSE);
1014
await $('bun i', `packages/${nonCorePackage}`, Verboseness.NORMAL);
1115
}
1216
}

esbuild.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const build = await esbuild.build({
5252
},
5353
plugins: [
5454
esbuildSvelte({
55-
compilerOptions: { css: 'injected' },
55+
compilerOptions: { css: 'injected', dev: false, sveltePath: 'svelte' },
5656
preprocess: sveltePreprocess(),
5757
filterWarnings: warning => {
5858
// we don't want warnings from node modules that we can do nothing about

esbuild.dev.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const context = await esbuild.context({
6262
],
6363
}),
6464
esbuildSvelte({
65-
compilerOptions: { css: 'injected' },
65+
compilerOptions: { css: 'injected', dev: true, sveltePath: 'svelte' },
6666
preprocess: sveltePreprocess(),
6767
filterWarnings: warning => {
6868
// we don't want warnings from node modules that we can do nothing about

exampleVault/Button Example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ style: primary
1111
label: Open Meta Bind FAQ
1212
action:
1313
type: command
14-
command: obsidian-meta-bind-plugin:mb-open-faq
14+
command: obsidian-meta-bind-plugin:open-faq
1515
```
1616

1717
And custom JS buttons as well

exampleVault/Examples.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ nested:
1414
object: test
1515
number1: 2
1616
number2: 10
17+
time:
1718
---
1819

1920
## Fields Work Everywhere

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545
"prettier": "^3.2.5",
4646
"prettier-plugin-svelte": "^3.2.1",
4747
"string-argv": "^0.3.2",
48-
"svelte": "^4.2.11",
4948
"svelte-preprocess": "^5.1.3",
5049
"tslib": "2.6.2",
5150
"typescript": "^5.3.3"
5251
},
5352
"dependencies": {
5453
"@codemirror/legacy-modes": "^6.3.3",
5554
"@lemons_dev/parsinom": "^0.0.12",
55+
"svelte": "^4.2.11",
5656
"itertools-ts": "^1.27.0",
5757
"mathjs": "^12.0.0",
5858
"zod": "^3.22.4",

packages/core/bun.lockb

-7.94 KB
Binary file not shown.

packages/core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "meta-bind-core",
33
"main": "src/index.ts",
4-
"devDependencies": {
5-
"svelte": "^4.2.11",
4+
"dependencies": {
65
"@lemons_dev/parsinom": "^0.0.12",
76
"zod": "^3.22.4"
87
}

packages/core/src/api/InternalAPI.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ export abstract class InternalAPI<Plugin extends IPlugin> {
245245
}),
246246
{
247247
title: 'Meta Bind Image Suggester',
248+
classes: ['mb-image-suggester-modal'],
248249
},
249250
).open();
250251
}

0 commit comments

Comments
 (0)