diff --git a/src/main.ts b/src/main.ts index acfa564..aac7cd3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -43,6 +43,15 @@ export default class FormfirePlugin extends Plugin { callback: () => this.activateSidebar(), }); + this.addCommand({ + id: 'open-settings', + name: 'Open settings', + callback: () => { + (this.app as any).setting.open(); + (this.app as any).setting.openTabById('formfire'); + }, + }); + // Dynamic per-form commands this.registerDynamicCommands(); }