Skip to content

Commit

Permalink
pbek/QOwnNotes#3163 ai-text-tool: use textDiffDialog
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
  • Loading branch information
pbek committed Nov 26, 2024
1 parent eff3b5b commit 5e2fc76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ai-text-tool/ai-text-tool.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions ai-text-tool/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}

0 comments on commit 5e2fc76

Please sign in to comment.