Skip to content

Commit

Permalink
add EASY and HARD review commands
Browse files Browse the repository at this point in the history
  • Loading branch information
st3v3nmw committed Apr 14, 2021
1 parent 73161ff commit 3be20ce
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions main.ts
Expand Up @@ -118,6 +118,26 @@ export default class SRPlugin extends Plugin {
},
});

this.addCommand({
id: "note-review-easy",
name: "Review note as easy",
callback: () => {
const openFile = this.app.workspace.getActiveFile();
if (openFile.extension == "md")
this.saveReviewResponse(openFile, true);
}
});

this.addCommand({
id: "note-review-hard",
name: "Review note as hard",
callback: () => {
const openFile = this.app.workspace.getActiveFile();
if (openFile.extension == "md")
this.saveReviewResponse(openFile, false);
}
});

this.addSettingTab(new SRSettingTab(this.app, this));

this.app.workspace.onLayoutReady(() => {
Expand Down

0 comments on commit 3be20ce

Please sign in to comment.