diff --git a/main.ts b/main.ts index 4e8d750..50e6805 100644 --- a/main.ts +++ b/main.ts @@ -4,8 +4,18 @@ export default class ExoPlugin extends Plugin { async onload() { this.addRibbonIcon('dice', 'Exo', () => { - new Notice('This is Exocortex!'); + this.showModal(); }); + + this.addCommand({ + id: 'exo-first-notice', + name: 'Shows simple Notice', + callback: () => {this.showModal()} + }) + } + + async showModal(): Promise { + new Notice('This is Exocortex!'); } onunload() { diff --git a/manifest.json b/manifest.json index 6801139..9fdae40 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "Exocortex", "version": "0.0.1", "minAppVersion": "0.15.0", - "description": "prototype plugin implementing the Exocortex concept", + "description": "Prototype plugin implementing the Exocortex concept", "author": "kitelev", "authorUrl": "https://t.me/kitelev", "fundingUrl": "https://buymeacoffee.com/kitelev",