From f4f278db6ff12898d490e226bb83c6cdc08fc49c Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sat, 10 Dec 2022 19:23:46 +0530 Subject: [PATCH] Allow it to be a command as well Can keybind it this way Signed-off-by: baalajimaestro --- main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.ts b/main.ts index c37c8ea..4902f54 100644 --- a/main.ts +++ b/main.ts @@ -27,6 +27,13 @@ export default class MyPlugin extends Plugin { }); }) ); + this.addCommand({ + id: "new-paste", + name: "Create a new paste", + callback: () => { + this.createpaste(); + }, + }); } async createpaste(): Promise {