Expose obsidian plugin api and allow saving/loading

This commit is contained in:
Idrees Hassan
2025-11-13 18:14:44 -05:00
parent d94e321b66
commit c312500f19
9 changed files with 41 additions and 34 deletions

View File

@@ -161,8 +161,9 @@ mkdirSync(OBSIDIAN_DIR, { recursive: true });
// Wrap birb.js with plugin boilerplate
const obsidianPlugin = `
const { Plugin, Notice } = require('obsidian');
module.exports = class MyPlugin extends Plugin {
module.exports = class PocketBird extends Plugin {
onload() {
const OBSIDIAN_PLUGIN = this;
${birbJs}
}