Allow it to be a command as well

Can keybind it this way

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-12-10 19:23:46 +05:30
parent c0bac8f83f
commit f4f278db6f
Signed by: baalajimaestro
GPG Key ID: F93C394FE9BBAFD5

View File

@ -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<void> {