Add command
This commit is contained in:
parent
5eb4e42702
commit
cd96ed0bf2
12
main.ts
12
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<void> {
|
||||
new Notice('This is Exocortex!');
|
||||
}
|
||||
|
||||
onunload() {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue