Skip to content

Commit 5e2fc76

Browse files
committed
pbek/QOwnNotes#3163 ai-text-tool: use textDiffDialog
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent eff3b5b commit 5e2fc76

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ai-text-tool/ai-text-tool.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Script {
4545

4646
const aiResult = script.aiComplete(aiPrompt + ":\n\n" + text);
4747

48-
dialogResult = script.inputDialogGetMultiLineText("AI Text Tool", "Resulting text", aiResult);
48+
dialogResult = script.textDiffDialog("AI Text Tool", "Resulting text", text, aiResult);
4949

5050
if (dialogResult === '') {
5151
return;

ai-text-tool/info.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"script": "ai-text-tool.qml",
55
"authors": ["@pbek"],
66
"platforms": ["linux", "macos", "windows"],
7-
"version": "0.1.0",
8-
"minAppVersion": "24.5.7",
9-
"description" : "This script allows some options to use the AI completer to replace the selected text."
7+
"version": "0.2.0",
8+
"minAppVersion": "24.11.4",
9+
"description" : "This script allows some options to use the AI completer to replace the selected text, but showing the differences first."
1010
}

0 commit comments

Comments
 (0)