From 6db02ad7308aa536ec586598ce76cd90d68ccdfb Mon Sep 17 00:00:00 2001 From: Simon Yang Date: Wed, 15 Mar 2023 11:28:03 +1100 Subject: [PATCH] Fix missing command --- main.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.ts b/main.ts index bc5d875..4add001 100644 --- a/main.ts +++ b/main.ts @@ -397,7 +397,7 @@ export default class AICommanderPlugin extends Plugin { }); this.addCommand({ - id: 'img-line', + id: 'text-line', name: 'Generate text from the current line', editorCallback: (editor: Editor, view: MarkdownView) => { const position = editor.getCursor(); @@ -417,7 +417,7 @@ export default class AICommanderPlugin extends Plugin { }); this.addCommand({ - id: 'prompt-text-selected', + id: 'text-selected', name: 'Generate text from the selected text', editorCallback: (editor: Editor, view: MarkdownView) => { const selectedText = editor.getSelection(); @@ -478,7 +478,6 @@ export default class AICommanderPlugin extends Plugin { command = command.trim(); if (command == null || command == undefined || command.length < 1) continue; const cid = command.toLowerCase().replace(/ /g, '-'); - console.log(cid); this.addCommand({ id: cid, name: command, @@ -495,7 +494,6 @@ export default class AICommanderPlugin extends Plugin { command = command.trim(); if (command == null || command == undefined || command.length < 1) continue; const cid = command.toLowerCase().replace(/ /g, '-'); - console.log(cid); this.addCommand({ id: cid, name: command,