diff --git a/src/App.tsx b/src/App.tsx index 3a4d14b..77e60e8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3008,13 +3008,43 @@ export default function App() { ) : null} - {customPromptOpen ? ( + {pendingAiScopeChoice ? (
-
setCustomPromptOpen(false)} /> +
setPendingAiScopeChoice(null)} /> +
+
AI Edit Scope
+
+ A text selection is active. Do you want to edit the whole text or just the selected part? +
+
+ {pendingAiScopeChoice.selection.text} +
+
+ + + +
+
+
+ ) : null} + + {customPromptState ? ( +
+
setCustomPromptState(null)} />
Custom Prompt
- Tell the AI what it should do with the current text. + Tell the AI what it should do with the current{" "} + {customPromptState.scope === "selection" ? "selection" : "text"}.