Skip to content

Commit

Permalink
feat: add add card command
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Jul 15, 2024
1 parent 42ab26c commit 07b6eb0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/commands.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import BetterRecallPlugin from './main';
import { AddCardModal } from './ui/modals/card-modal/add-card-modal';

export function registerCommands(plugin: BetterRecallPlugin): void {
plugin.addCommand({
Expand All @@ -8,4 +9,11 @@ export function registerCommands(plugin: BetterRecallPlugin): void {
plugin.openRecallView();
},
});
plugin.addCommand({
id: 'better-recall-add-card',
name: 'Add Card',
callback: () => {
new AddCardModal(plugin).open();
},
});
}

0 comments on commit 07b6eb0

Please sign in to comment.