From 5e2fc769b3e663b88a010d434b9a2d83d0bdf2df Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Tue, 26 Nov 2024 19:41:00 +0100 Subject: [PATCH] pbek/QOwnNotes#3163 ai-text-tool: use textDiffDialog Signed-off-by: Patrizio Bekerle --- ai-text-tool/ai-text-tool.qml | 2 +- ai-text-tool/info.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ai-text-tool/ai-text-tool.qml b/ai-text-tool/ai-text-tool.qml index 1bab810..59e7a11 100644 --- a/ai-text-tool/ai-text-tool.qml +++ b/ai-text-tool/ai-text-tool.qml @@ -45,7 +45,7 @@ Script { const aiResult = script.aiComplete(aiPrompt + ":\n\n" + text); - dialogResult = script.inputDialogGetMultiLineText("AI Text Tool", "Resulting text", aiResult); + dialogResult = script.textDiffDialog("AI Text Tool", "Resulting text", text, aiResult); if (dialogResult === '') { return; diff --git a/ai-text-tool/info.json b/ai-text-tool/info.json index a280fe9..472d768 100644 --- a/ai-text-tool/info.json +++ b/ai-text-tool/info.json @@ -4,7 +4,7 @@ "script": "ai-text-tool.qml", "authors": ["@pbek"], "platforms": ["linux", "macos", "windows"], - "version": "0.1.0", - "minAppVersion": "24.5.7", - "description" : "This script allows some options to use the AI completer to replace the selected text." + "version": "0.2.0", + "minAppVersion": "24.11.4", + "description" : "This script allows some options to use the AI completer to replace the selected text, but showing the differences first." }