From 7490303a8797af29927a1c9450569e006401ed29 Mon Sep 17 00:00:00 2001 From: Simon Yang Date: Mon, 13 Mar 2023 22:13:32 +1100 Subject: [PATCH] Fix command ID --- main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 153d5c0..ef84d0e 100644 --- a/main.ts +++ b/main.ts @@ -65,6 +65,8 @@ export default class AICommanderPlugin extends Plugin { } const messages = []; + + console.log(contextPrompt); if (contextPrompt) { messages.push({ @@ -382,7 +384,7 @@ export default class AICommanderPlugin extends Plugin { }); this.addCommand({ - id: 'prompt-text', + id: 'pdf-text', name: 'Generate text from prompt in context of the above PDF', editorCallback: (editor: Editor, view: MarkdownView) => { const onSubmit = (prompt: string) => { @@ -403,7 +405,7 @@ export default class AICommanderPlugin extends Plugin { }); this.addCommand({ - id: 'prompt-text-selected', + id: 'pdf-text-selected', name: 'Generate text from the selected text in context of the above PDF', editorCallback: (editor: Editor, view: MarkdownView) => { const selectedText = editor.getSelection();