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:
parent
c0bac8f83f
commit
f4f278db6f
1 changed files with 7 additions and 0 deletions
7
main.ts
7
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<void> {
|
||||
|
|
Loading…
Reference in a new issue